Magento
To integrate the Pay Solutions payment gateway with Magento, you will need a sandbox account or a test account.
caution
Support for Magento 2 Framework, version 2.1.x, version 2.2.x, version 2.3.x, version 2.4.x
Step 1: Installation
- Download the Pay Solutions module files here.
- Unzip the downloaded files.
- Copy the files to a directory under your Magento application.
Step 2: Configuration
To run Magento-2 commands, make sure that:
- PHP Dependency Manager - Composer is installed on your machine.
- The Pay Solutions module files have been copied to the app\code folder.
- Access the command prompt as an administrator.
- Go to your Magento-2 installation directory and run the following command:
php bin/magento cache:flush
php bin/magento setup:upgrade
php -d memory_limit=-1 bin/magento setup:di:compile
php -d memory_limit=-1 bin/magento setup:static-content:deploy en_US th_TH -f
php -d memory_limit=-1 bin/magento indexer:reindex
php bin/magento cache:clean
- Go to Stores > Configuration
- Select Sales > Payment Methods from the sidebar.
- To enable the Pay Solutions module and configure the different attributes, refer to the guide below.
- Enabled : Yes
- Title : The text that shows the name of the payment on the payment page.
- New Order Status : Default Order Status
- Merchant ID : Merchant ID from Pay Solutions
- Mode : Live / Test
- Auto Create invoice when payment success? : Yes / No
- Language : Preferred language displayed on payment page in PaySolution
- Set Return parameter in https://controls.paysolutions.asia/
- Go to Merchant Setting > Return Parameter
- Enter the below data for setting page. and press Sumbit changes button.
- Post back URL : https://yoursite.com/?wc-api=WC_amdev_Paysolutions
- Return URL : https://yoursite.com/
- by changing yoursite to the your website
Interface
After enabling the module, Pay Solutions will be one of the payment options available for customers.
To proceed with payment, customers will be redirected to Pay Solutions's payment page.