rajanikant
rajanikant

Reputation:

Integration with payment gateway

if transaction fails on paypal page or ccavenue page then how can i rollback all processing in php

Upvotes: 2

Views: 881

Answers (2)

kentos
kentos

Reputation: 63

I think most gateways will make a callback if the payment went through. I usually assume that the payment isnt made until I get the callback. This means that the order is not verified until the callback.

Upvotes: 1

Dasha Salo
Dasha Salo

Reputation: 5169

If you enable IPN posts in the PayPal settings you will get a notification with transaction status. If it fails you can rollback your changes.

Have a look here - https://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/ipn-techview-outside

Upvotes: 2

Related Questions