Skip to main content

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

  1. Download the Pay Solutions module files here.
  2. Unzip the downloaded files.
  3. 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.
  1. Access the command prompt as an administrator.
  2. 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
  1. Go to Stores > Configuration

Magento

  1. Select Sales > Payment Methods from the sidebar.

Magento

  1. 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

Magento

  1. Set Return parameter in https://controls.paysolutions.asia/
  2. Go to Merchant Setting > Return Parameter
  3. Enter the below data for setting page. and press Sumbit changes button.

Magento

Interface

After enabling the module, Pay Solutions will be one of the payment options available for customers.

Magento

To proceed with payment, customers will be redirected to Pay Solutions's payment page.

Magento