Tags/topics: 
2
Answers
Vote up!
0
Vote down!

Payment module, success and fail url

I'm writing a module to use the off site payment system of an italian bank.
I must submit to the gateway the "success url" and the "fail url" to have a response in my site. Which are?

Thanks!

Asked by: Amnesiac
on June 7, 2012

2 Answers

Vote up!
1
Vote down!

Success URL: checkout/ORDER_ID/payment/return/ORDER_PAYMENT_REDIRECT_KEY

Fail URL: checkout/ORDER_ID/payment/back/ORDER_PAYMENT_REDIRECT_KEY

You can get the redirect key using:

$redirect_key = $order->data['payment_redirect_key'];

This key is generated by the commerce_payment module.

Answer by: exeapps
Posted: Aug 24, 2012
Vote up!
0
Vote down!

I think "MYSITE/checkout/ORDERNUMBER/complete" is the success url

Answer by: Amnesiac
Posted: Jun 7, 2012