updateSync Function Route Address

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Kappa.yahyya
Posts: 9
Joined: 14 Jun 2021, 05:59

updateSync Function Route Address

Post by Kappa.yahyya » 21 Jun 2021, 13:07

Hi



Iam working on aimeos/laravel version (on php 7.4).



I need to verify payments on web application after SCA payment is done by client(ReactJs).
So I have to call a Webservice to tell Aimeos to change the payment status .

Aimeos has a function called updateSync on payment providers for this .



But my problem is I could not find a Route Address or a Function calling it.
I don’t know how should i call it .

 Searched docs but did't help.

Much appreciated your time and if this is not Aimeos related - please feel free to point out at the concept or relevant documentation.

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

Re: updateSync Function Route Address

Post by aimeos » 22 Jun 2021, 07:33

The updatePush() method might be more suitable as there's a route for that. The updateSync() method is automatically called if the user opens the checkout confirmation page in his browser.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

akropivko
Posts: 19
Joined: 20 Jan 2021, 12:49

Re: updateSync Function Route Address

Post by akropivko » 24 Jun 2021, 09:07

aimeos wrote: 22 Jun 2021, 07:33 The updatePush() method might be more suitable as there's a route for that.
Could you please clarify what route is for the updatePush() method?
To be more clear, what URL I can use to call the updatePush() of my service decorator?

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

Re: updateSync Function Route Address

Post by aimeos » 26 Jun 2021, 06:57

Here's the route for the checkout update component that will call updatePush():
https://github.com/aimeos/aimeos-larave ... #L140-L150

You can use this to generate the URL for this route:

Code: Select all

route('aimeos_shop_update')
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply