Quick start
Integrate the Show API on your web page.
1. Get a transactionId
transactionId
Start with requesting a transactionId
by calling the Show API from your server. Insert the tokens you wish to be revealed in the payload.
Example
curl --request POST \
--url 'https://api.sandbox.datatrans.com/v1/transactions/secureFields/show' \
--header 'Authorization: Basic {{basicAuth}}' \
--header 'Content-Type: application/json' \
--data '{
"alias": "rN5IABEiAAEAAAGB8QcMWHYu8SeGACOZ",
"aliasCVV": "qOr2SX3sQm2e8SazhFNssOkJ"
}'
{
"transactionId": "pY8Pt-lWIpkDECioNQVFJvNifCeM"
}
You can send alias
or aliasCVV
each alone, if you only need to reveal one of those values.
2. Integrate Secure Fields
👀
Show API (Secure Fields)
Open Recipe
Example
The following example is based on this GitHub repository.
Updated almost 2 years ago