Payum icon indicating copy to clipboard operation
Payum copied to clipboard

[building gateway] how to save the status in CaptureAction ?

Open vitoo opened this issue 6 years ago • 1 comments

Hello,

i'm building a payum gateway (with payum/skeleton) for a payment provider, that has only one URL to do the payment.

So in CaptureAction => i'm doing a POST request, and i get the payment status (success or fail) in the response of this request.

When i'm redirected to the "Done" i have no way to get the status (no other URL from the provider).

How can i save the status directly in the CaptureAction of my gateway ? I don't have access to the storage in the CaptureAction, so i can't persist the model

Thanks for your help !

vitoo avatar Jun 27 '19 07:06 vitoo

it is automatically persisted by payum. see : \Payum\Core\Extension\StorageExtension::onPostExecute

bruno-ds avatar Jul 25 '19 12:07 bruno-ds