At this point, the required 3DS values for the Sale API have been received either from:
The Get Result initialisation API response
...
The Auth API response
The Auth Get Result API response - if it is a frictionless transaction.
The required Sale 3DS fields
The required 3ds properties to go inside the Sale payload are
...
Code Block | ||
---|---|---|
| ||
function mapThreeDsVals(response){ const eci = response.threeDSProviderResponse.eci; const cavv = response.threeDSProviderResponse.cavv; const dsTransactionId = response.threeDSProviderResponse.threeDs2TransactionId; const version = response.threeDSProviderResponse.threeDsVersion; const threeDsVals = { dsTransactionId, eci, cavv, version }; return threeDsVals; } |
Create the Sale API request payload
To perform the SALE, read the API docs here.
...