Note: A merchant must be of express type.
Please go to “Developer” page (in ‘Related Links’ of footer) and click on ‘Express’ tab to get details on how to integrate express payment gateway in other websites.
Please see screenshots below:-
1) Click on ‘developer’ link.
2) Click on ‘express’ tab.
a) First download the sdk.
b) Go to php-sdk/src/PayMoney/Rest/Connection.php, then change BASE_URL value to your domain name.
c) MUST place the client_id and client_secret in the setCredentials function.
d) Set your other site success and cancel location in setSuccessUrl and setCancelUrl functions respectively.
4) If you don’t see changes after configuring and extracting SDK, go to your SDK root and run the commands below:-
If you want to change the namespace/path from ‘PayMoney’ in example.php after downloading the paymoney sdk to your desired name, i.e. (use PayMoney\Api\Amount; to use MyDomain\Api\Amount;), then