These are chat archives for Payum/Payum

30th
May 2017
Matthias Breddin
@lunetics
May 30 2017 15:46
@makasim can you support me on that matter?
Max Kotliar
@makasim
May 30 2017 17:12

also still unclear if the capture is meant to get the "response" from the psp

the capture is meant to guide you through the whole capture process. If it require to call several APIs then it has to do it.

The flow is based on the payment details and therefor could vary. If the first api returned an error the process goes to failed state immidiatly
Here's an example on how the paypal flow could look like (it's paypal's capture action) https://pvm-demo.forma-pro.com/paypal-express-checkout
Matthias Breddin
@lunetics
May 30 2017 17:14
so basically capture is the main process
Max Kotliar
@makasim
May 30 2017 17:15
I would not consider it main. There might be authorize, refund, void actions as well.
Matthias Breddin
@lunetics
May 30 2017 17:15
so first i need to "initialize / start a transaction"
Max Kotliar
@makasim
May 30 2017 17:15

the gateways transaction start returns an "url" which needs to get called..

Not sure I got it right

Matthias Breddin
@lunetics
May 30 2017 17:15
psp gives me back an url for the payment info
so now i have a "transactionrequestaction"
Max Kotliar
@makasim
May 30 2017 17:16
You can store it in payment details and use later in sync action
Matthias Breddin
@lunetics
May 30 2017 17:16
so every action should replace the model?
also that's a bit confusing, firstmodel, model and token
(in request)
it seems the values of the model decide the flow
so convertpaymentaction -> model to arrayaccess
transactionrequest (my own) -> sends to api and gets a url and transactionid back. that means i have to replace the whole model?
so there is also the httpredirect
psp supports server to server notify (like paypal). how can i fetch e.g. GET parameter from the url?
using ngrok btw
Auswahl_131.png
Matthias Breddin
@lunetics
May 30 2017 17:23
for me it's unclear when i should replace the model. what's the cause and the outcome is
Max Kotliar
@makasim
May 30 2017 17:52
You shouldn't replace. It is your payment context. you can put there whatever you want\need in the PSP specific format or the one you like.
Matthias Breddin
@lunetics
May 30 2017 18:04
okay but in multistep..
e.g. first step -> convert -> call api (transaction) -> receive special payment url from psp -> httpredirect -> notify -> returnurl
Max Kotliar
@makasim
May 30 2017 18:14
you can merge everything or introduce namespaces inside details
Matthias Breddin
@lunetics
May 30 2017 18:14
so when should something be replaced?
Max Kotliar
@makasim
May 30 2017 18:15
paypal for example always returns data in the same format so you can safely replace your local data with their one
Matthias Breddin
@lunetics
May 30 2017 18:19
ah okay
but as soon as more steps are involed, i should "build" a usable model