Page 1 of 1

Payment status updated in batch job

Posted: 19 May 2022, 21:33
by krzysiekp
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 ?

Re: Payment status updated in batch job

Posted: 20 May 2022, 09:27
by aimeos
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.

Re: Payment status updated in batch job

Posted: 20 May 2022, 15:09
by krzysiekp
I don't think updateBatch() method exists.

Maybe updateAsync() ?

Re: Payment status updated in batch job

Posted: 21 May 2022, 20:38
by aimeos
Sorry, yes it's name is updateAsync()