Update payment status after redirection from payment gateway

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
ujackson
Posts: 6
Joined: 29 Jun 2015, 16:36

Update payment status after redirection from payment gateway

Post by ujackson » 16 May 2017, 23:28

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.

User avatar
aimeos
Administrator
Posts: 7889
Joined: 01 Jan 1970, 00:00

Re: Update payment status after redirection from payment gat

Post by aimeos » 17 May 2017, 19:19

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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply