On This Page
Create Tokenized Card Payment Credentials with Device Signed JWS
This section describes how to create tokenized card
payment credentials with device signed JWS.
Endpoint
Test:
POST
https://apitest.visaacceptance.com
/tms/v2/tokens/{tokenId/payment-credentialsProduction:
POST
https://api.visaacceptance.com
/tms/v2/tokens/{tokenId}/payment-credentialsThe is the identifier of the tokenized
card.
{tokenId}
Required Fields for Creating a Tokenized Card Payment
Credentials with Device Signed JWS
- deviceInformation.ipAddress
- merchantInformation.merchantDescriptor.name
- merchantInformation.merchantDescriptor.url
- orderInformation.amountDetails.currency
- orderInformation.amountDetails.totalAmount
- orderInformation.billTo.address1
- orderInformation.billTo.administrativeArea
- orderInformation.billTo.country
- orderInformation.billTo.email
- orderInformation.billTo.firstName
- orderInformation.billTo.lastName
- orderInformation.billTo.locailty
- orderInformation.billTo.postalCode
- tokenInformation.tokenAuthenticationInformation.authenticatedIdentities.data
- tokenInformation.tokenAuthenticationInformation.authenticatedIdentities.provider
- tokenInformation.tokenAuthenticationInformation.authenticatedIdentities.userAuthenticationMethod
- Required whentokenInformation.tokenAuthenticationInformation.authenticatedIdentities.provideris set toCLIENT_DEVICE_CERT_JWS.
- tokenInformation.tokenAuthenticationInformation.clientCorrelationId
- transactionType
REST Example: Creating a Tokenized Card Payment Credentials
with Device Signed JWS
Request with
authenticatedIdentities
{ "clientReferenceInformation": { "code": "abc" }, "paymentInformation": { "customer": { "id": "<id in payment-credentials url>" } }, "orderInformation": { "amountDetails": { "totalAmount": "<orderInformation.amountDetails.totalAmount>", "currency": "<orderInformation.amountDetails.currency>" }, "billTo": { "firstName": "<orderInformation.billTo.firstName>", "lastName": "<orderInformation.billTo.lastName>", "address1": "<orderInformation.billTo.address1>", "locality": "<orderInformation.billTo.locality>", "administrativeArea": "<orderInformation.billTo.administrativeArea>", "postalCode": "<orderInformation.billTo.postalCode>", "country": "<orderInformation.billTo.country>", "email": "<orderInformation.billTo.email>", "phoneNumber": "<orderInformation.billTo.phoneNumber>" } }, "deviceInformation": { "ipAddress": "<deviceInformation.ipAddress>" }, "merchantInformation": { "merchantDescriptor": { "name": "<merchantInformation.merchantDescriptor.name>", "url": "<merchantInformation.merchantDescriptor.url>" } }, "tokenInformation": { "tokenAuthenticationInformation": { "clientCorrelationId": "<clientCorrelationId>", "authenticatedIdentities": [ { "data": "<authenticatedIdentities[].data>", "provider": "CLIENT_DEVICE_CERT_JWS", "userAuthenticationMethod": "<authenticatedIdentities[].userAuthenticationMethod>" } ] } } }
Request with Network Token & Cryptogram
{ "clientReferenceInformation": { "code": "abc" }, "paymentInformation": { "customer": { "id": "<id in payment-credentials url>" }, "tokenizedCard": { "number": "411111111111XXXX", "expirationMonth": "12", "expirationYear": "2031", "cryptogram": "AceY+igABPs3jdwNaDg3MAACAAA=", "transactionType": "3" } }, "orderInformation": { "amountDetails": { "totalAmount": "<orderInformation.amountDetails.totalAmount>", "currency": "<orderInformation.amountDetails.currency>" }, "billTo": { "firstName": "<orderInformation.billTo.firstName>", "lastName": "<orderInformation.billTo.lastName>", "address1": "<orderInformation.billTo.address1>", "locality": "<orderInformation.billTo.locality>", "administrativeArea": "<orderInformation.billTo.administrativeArea>", "postalCode": "<orderInformation.billTo.postalCode>", "country": "<orderInformation.billTo.country>", "email": "<orderInformation.billTo.email>", "phoneNumber": "<orderInformation.billTo.phoneNumber>" } }, "deviceInformation": { "ipAddress": "<deviceInformation.ipAddress>" }, "merchantInformation": { "merchantDescriptor": { "name": "<merchantInformation.merchantDescriptor.name>", "url": "<merchantInformation.merchantDescriptor.url>" } } }
Response to a Successful Request