Payum
Payum copied to clipboard
[building gateway] how to save the status in CaptureAction ?
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 !
it is automatically persisted by payum.
see : \Payum\Core\Extension\StorageExtension::onPostExecute