Payment Return Url

Hi everyone,
I am setting up a custom payment gateway.
My payment gateways doesn't support response urls with params.
Eg :
This doesnt work
https://www.example.com/index.php?dispatch=payment_notification.process&payment=knet
This will work
https://www.example.com/response.php
If I set return url as https://www.example.com/app/payments/knet.php
It comes to access denied because of .httaccess rule.
whats the correct way to implement such gateways ?
regds,
Shikhar

Hi everyone,
I am setting up a custom payment gateway.
My payment gateways doesn't support response urls with params.
Eg :
This doesnt work
This will work
It 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.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…
}

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!