updateSync Function Route Address
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- MattWoodward
- Posts: 20
- Joined: 03 Mar 2022, 04:15
Re: updateSync Function Route Address
If I try to send a POST request to this location I currently get a HTTP 419 Page Expired response.
- MattWoodward
- Posts: 20
- Joined: 03 Mar 2022, 04:15
Re: updateSync Function Route Address
For an external integration point I would anticipate being able to see the following details:
I'm currently using the latest Laravel distribution of Aimeos.
- Endpoint Address / URL - Where a request is sent to in your Aimeos instance
- Schema - How the data (e.g. Order ID) in the request should be formatted / structured for Aimeos to interpret it
- Authentication Mechanism - How the external system authenticates their request with Aimeos
I'm currently using the latest Laravel distribution of Aimeos.
Re: updateSync Function Route Address
I your case it's: <domain>/<site>/update, e.g. yourdomain.com/default/updateMattWoodward wrote: ↑17 Mar 2022, 05:35 Or am I reading this wrong, and the "update page" is actually at:
https:<site root>/shop/checkout/update
See here: https://github.com/aimeos/aimeos-larave ... s.php#L144
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: updateSync Function Route Address
By default (if you don't use another prefix in the routes section of your config/shop.php):MattWoodward wrote: ↑17 Mar 2022, 06:34
- Endpoint Address / URL - Where a request is sent to in your Aimeos instance
https://<domain>/update
This depends on what your service provider implementation expects. All service providers are called and you must test if the the required parameters are available, otherwise skip any code execution.MattWoodward wrote: ↑17 Mar 2022, 06:34
- Schema - How the data (e.g. Order ID) in the request should be formatted / structured for Aimeos to interpret it
That's also up to your service provider implemenation as e.g. payment gateways have very different means of authentication.MattWoodward wrote: ↑17 Mar 2022, 06:34
- Authentication Mechanism - How the external system authenticates their request with Aimeos
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
- MattWoodward
- Posts: 20
- Joined: 03 Mar 2022, 04:15
Re: updateSync Function Route Address
Thanks for the response! I've tried sending a few requests to that route address. I'm receiving the following response:
Does this talk to something I need to include in the service provider / config, or the HTTP request that gets sent to this address?
Code: Select all
No item found for conditions: Array ( [service.code] => )
- MattWoodward
- Posts: 20
- Joined: 03 Mar 2022, 04:15
Re: updateSync Function Route Address
Further to that, I'm looking at the incoming updatePush routine - so an external system passing orderId along with a status etc to Aimeos. So I'm trying to ascertain if the above error is becuase of the way the provider is currently configured or because Aimeos expects certain data to be passed when the HTTP call comes in from the external system.
- MattWoodward
- Posts: 20
- Joined: 03 Mar 2022, 04:15
Re: updateSync Function Route Address
Ok so another step closer - if I pass "code" to the url with the Code of the service provider this seems to be accepted? Is this the only variable required beyond any other data our provider requires?
Re: updateSync Function Route Address
Exactly
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
- MattWoodward
- Posts: 20
- Joined: 03 Mar 2022, 04:15
Re: updateSync Function Route Address
Thanks for confirming. I've added a PR for the docs at: https://github.com/aimeos/aimeos-docs/pull/43