Payment status updated in batch job

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!
krzysiekp
Posts: 85
Joined: 05 Nov 2021, 16:19

Payment status updated in batch job

Post by krzysiekp » 19 May 2022, 21:33

How to get status from payment gateway on batch job via API ? In doc are describe updateBatch updateSync and query method. Which and when is it used ?

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

Re: Payment status updated in batch job

Post by aimeos » 20 May 2022, 09:27

updateSync() is called on the checkout confirmation page (thank you page) while updateBatch() is called if you execute:

Code: Select all

php artian aimeos:jobs order/service/async
So updateBatch() can be used to update delivery/payment status from a file or an external batch API.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

krzysiekp
Posts: 85
Joined: 05 Nov 2021, 16:19

Re: Payment status updated in batch job

Post by krzysiekp » 20 May 2022, 15:09

I don't think updateBatch() method exists.

Maybe updateAsync() ?

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

Re: Payment status updated in batch job

Post by aimeos » 21 May 2022, 20:38

Sorry, yes it's name is updateAsync()
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply