The diagram below shows the payment flow for requesting a recommendation before authorisation. This integration allows us to help you decide which transactions to send to 3D Secure, as well as avoid the cost of authorisation transactions that we recommend preventing.
In order to score before authentication and authorisation, the pspBeforeAuth checkpoint should be called (by adding a parameter of ?checkpoint=pspBeforeAuth) as you send your transaction data to the transaction endpoint.
%%{
init: {
'theme': 'base',
'themeVariables': {
'primaryColor': '#ececff'
}
}
}%%
sequenceDiagram autonumber
participant PAYMENT_PAGE as Payment page
participant PSP_BACKEND as PSP backend
participant RAVELIN as Ravelin
participant CARD_SCHEMES as Card schemes
PAYMENT_PAGE ->> PSP_BACKEND: Attempt payment
PSP_BACKEND ->> CARD_SCHEMES: Attempt authorisation
CARD_SCHEMES ->> PSP_BACKEND: Authorisation response
opt If Authorisation is successul
PSP_BACKEND ->> RAVELIN: Request recommendation
RAVELIN ->> PSP_BACKEND: Recommendation response
opt If Allow recommendation
PSP_BACKEND ->> CARD_SCHEMES: Attempt capture
CARD_SCHEMES ->> PSP_BACKEND: Capture response
end
opt If Prevent recommendation
PSP_BACKEND ->> PSP_BACKEND: Stop processing
end
PSP_BACKEND ->> PAYMENT_PAGE: Payment response
end
Transaction updates
It is important that you update us on the outcome of all authentication and authorisation attempts, as well as any other updates to the transaction lifecycle. This includes capture and refund events. The transaction.type field can be used to help specify which transaction lifecycle event the update is for.
Obtaining previous scores
If you need to request scoring data for a previously scored transaction, you can do so by calling our score endpoint. You will need to send the transaction ID used for the original scoring request, as well as the score ID returned in the score response.
Feedback
Was this page helpful?
Thanks for the feedback.
If you'd like to provide more detail, please email support@ravelin.com.