Hi everyone,I am setting up a custom payment gateway.My payment gateways doesn't support response urls with params.Eg :This doesnt workThis will workIf I set return url as https://www.example.com/app/payments/knet.phpIt comes to access denied because of .httaccess rule.whats the correct way to implement such gateways ?regds,Shikhar
This URL is correct
https://www.example.com/app/payments/knet.php
In the knet.php use the following code
use Tygh\Http;
use Tygh\Registry;if (!defined(‘BOOTSTRAP’)) {
require ‘./init_payment.php’;
… CODE TO PROCESS PAYMENT RESPONSE …
} else {
… CODE TO CREATE PAYMENT REQUEST…
}
This URL is correct
https://www.example.com/app/payments/knet.phpIn the knet.php use the following code
use Tygh\Http;
use Tygh\Registry;if (!defined(‘BOOTSTRAP’)) {
require ‘./init_payment.php’;
… CODE TO PROCESS PAYMENT RESPONSE …
} else {
… CODE TO CREATE PAYMENT REQUEST…
}
Thanks ecom,
Do I need to modify .htaccess or it will work without any modifications ?
Thanks ecom,
Do I need to modify .htaccess or it will work without any modifications ?
Many integrated with Cs-Cart payment systems use the same way of processing response. So you do not need to add any changes to .htaccess file.
Many integrated with Cs-Cart payment systems use the same way of processing response. So you do not need to add any changes to .htaccess file.
Thanks eComLabs,
This worked :)
You are welcome!