3D Secure
Some payment acquirers demand use of 3D secure and Áskell tries to make that as simple as possible. There are a couple of things to keep in mind when using Áskell with a payment acquirer that is 3D Secure. Áskell supports Saltpay and Valitorpay as 3D secure payment acquirers.
Roughly speaking the process works like this:
When accepting a payment by card, a new
TemporaryPaymentMethod
needs to generated by callingPOST /api/temporarypaymentmethod/
. The answer from Áskell contains two variables,token
andcard_verification_url
.The user needs to see a iframe or modal window with
card_verification_url
so they can enter the code that they get via, for example, text from the card issuer.At the same time the status of
token
needs to be checked by callingGET /api/temporarypaymentmethod/{token}/
. Accepted statuses areinitial
tokencreated
failed
When the status
tokencreated
is achieved, the iframe or modal window can be closed.Finally, there are two options available to confirm the payment card so it can be charged.
Add the card to an existing customer.
In this case the API call
POST /api/customers/paymentmethod/
is usedAdding a new subscription to a customer.
In this case the API call
POST /api/subscriptions/multi/
is used