Page 1 of 1

Update payment status after redirection from payment gateway

Posted: 16 May 2017, 23:28
by ujackson
Hi, thanks for the awesome package.
I created a custom aimeos payment service provider.
I am able to send the request to the external gateway using the "process" function.

After payment is processed by gateway, it redirects to a success url page with the transaction reference which I'll use to query the payment gateway before updating payment status values.
In this case my success url is: $this->getConfigValue( array( 'payment.url-success' ) ) and is returned like this:
http://store.dev/confirm?code=card_paym ... ference=65

How can I update the payment status values from the "payment.url-success" after redirecting from the payment gateway.

Re: Update payment status after redirection from payment gat

Posted: 17 May 2017, 19:19
by aimeos
Great to hear that! :D

You have to implement the updateSync() method to update the payment status:
https://aimeos.org/docs/Developers/Libr ... ate_status