jeta
October 19, 2018, 12:00am
1
Hello,
I am integrating onlne payments in my website and a request is to provide :
-Return Url : OK
-Return Url : Faild
Does this mean i have to create two pages that will redirect the client when the payment its succesfully done and another one when the payment its declined?
Thanks in advance!
Hello Jeta
I file app/addons/your_addon/payments/your_addon.php
you should have section
if( defined('PAYMENT_NOTIFICATION') ) {
if($mode == 'return') {
} // end if
if($mode == 'cancel') {
} // end if
}
and your links OK is
https://your_shop/index.php?dispatch=payment_notification.return&payment=your_addon
https://your_shop/index.php?dispatch=payment_notification.cancel&payment=your_addon
Best regards
Robert.
Some payment systems do not support parameters in return URLs. In this case you should use direct links to payment script
https://your_shop/ app/addons/your_addon/payments/your_addon.php
and check transaction status from received response
jeta
October 22, 2018, 12:00am
4
Some payment systems do not support parameters in return URLs. In this case you should use direct links to payment script
https://your_shop/ app/addons/your_addon/payments/your_addon.php
and check transaction status from received response
your_addon.php is the integration file?
Hello
You should prepare this file. For example payyour.php or as the name your payment system.
Best regards
Robert.
For example, PayPal uses
http://domain.com/app/addons/paypal/payments/paypal_express.php
Note that .htaccess file is required in the payments directory in this case, You can also copy it from PayPal addon