how do i change payment status and Order status after redirect from external gateway

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
hruvalcaba wrote:
Tnx
But what is correct callBacUrl??
Can you provide me more code/detail??

Firs you need add a method in your controller, in this method you control your CallBack requests. On Paypal plugin this method call PDTHandler.

then you need implement an IRouteProvider to register a new URL (see source code of PayPalStandard plugin > RouteProvider class).

And that's it all! Now you have a callbak URL and when your payment service will do a request to this URL you can process the answer (in this case you can register or not the payment)

Thank you for replay
Sorry for re-answer :
How it mark order as paid or pending??
I dont find anything in paypalStandardPayment
6 years ago
At Controller PaymentPayPalStandardController

you can to see PDTHandler, this method is used to process CallBacks Requests

also you can see IPNHandler method but this is not a callback URL is more like a webhook listener. If you lost PDTHandler resquets for any reason paypal send you request to IPNHandler URL to tell you about the status of your payment request
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.