FILTER BY TAG

Generate Payment Credentials for Digital Commerce Authentication Program

This section describes how to create payment credentials with data for the Digital Commerce Authentication Program (DCAP).
The Digital Commerce Authentication Program (DCAP), provides you with a way to enhance the security and reliability of card-not-present transactions by providing enhanced data without adding complexity in checkout. DCAP helps the clients that use network tokenization to provide more information to issuers when purchases are made using network tokens.
DCAP does not require the token to be an authenticated payment credential. Instead, you can include additional fields in the transaction request that are sent to the issuer and are used in risk scoring. This enables issuers to make a more informed authorization decision.
You can use the payment credentials API to retrieve the payment credentials for an existing customer, payment instrument, instrument identifier or tokenized card. For information about these token types, see these topics:

Endpoint

Test:
POST
https://api.smartpayfuse-test.barclaycard
/tms/v2/tokens/
{tokenId}/
payment-credentials
Production:
POST
https://api.smartpayfuse.barclaycard
/tms/v2/tokens/
{tokenId}/
payment-credentials
The
{tokenId}
is the identifier of the tokenized card.

Required Fields for Generating Payment Credentials for DCAP

deviceInformation.id
deviceInformation.ipAddress
orderInformation.billTo.address1
orderInformation.billTo.address2
Required in the US.
orderInformation.billTo.administrativeArea
orderInformation.billTo.country
orderInformation.billTo.email
Required when
orderInformation.billTo.phoneNumber
is not included in the request. either if not in US
orderInformation.billTo.firstName
orderInformation.billTo.lastName
orderInformation.billTo.locality
orderInformation.billTo.phoneNumber
Required in the US.
orderInformation.billTo.postalCode
paymentCredentialType
Set to one of these values: add to request
  • CRYPTOGRAM
  • NETWORK_TOKEN
  • SECURITY_CODE
transactionType

REST Example: Generating Payment Credentials for DCAP

Request
{ "paymentCredentialType": "CRYPTOGRAM", "transactionType": "ECOM", "orderInformation": { "billTo": { "firstName": "John", "lastName": "Doe", "address1": "1 Market St", "locality": "San Francisco", "administrativeArea": "CA", "postalCode": "94105", "country": "US", "email": "test@cybs.com" "phoneNumber": "123-456-7890" } }, "deviceInformation": { "id": "1234567890", "ipAddress": "127.0.0.1" } }
Response to a Successful Request
{ "_links": { "self": { "href": "/tms/v2/tokens/7010000000016241111/payment-credentials" } }, "tokenizedCard": { "state": "ACTIVE", "enrollmentId": "c2d1b36fad46aed1ca8318dca5ed1e02", "tokenReferenceId": "168661ada5115ca3589b1ba3dabdb102", "number": "X895370016750801", "expirationMonth": "12", "expirationYear": "2023", "type": "visa", "cryptogram": "AwAAAADggP/Ce5+ZciCXQUUAAAA=", "eci": "05", "requestorId": "40010052236", "card": { "suffix": "0394", "expirationMonth": "12", "expirationYear": "2023" } }, "card": { "number": "411111XXXXXX1111" }, "issuer": { "paymentAccountReference": "V0010013022298169667504231315" }, "processingInformation": { "authorizationOptions": { "initiator": { "merchantInitiatedTransaction": { "previousTransactionId": "123456789619999" } } }, "commerceIndicator": "vbv" } }