Links

Gateway Tokens

If you are working with certain gateways such as BlueSnap, Authorize.net and PaySafe, you may wish or need to use a tokenized credit card number instead of a credit card number. Once you get the token from your gateway (see BlueSnap docs, or Authorize.net docs, or PaySafe docs), you need to pass it, along with the last 4 digits of the credit card, as part a PaymentToken object in a Splitit Create API call. See the code below (for Type make sure to specify AuthorizeNetProfileToken for Auth.net, BluesnapVaultedShopperToken for BlueSnap, and PaysafeIssuedCardID for PaySafe).
{
"PaymentToken": {
"Type": "AuthorizeNetProfileToken",
"Last4Digits": "0015",
"Token": "906699117"
},
"PlanApprovalEvidence": {
"AreTermsAndConditionsApproved": true
},
"ConsumerData": {
"FullName": "Jane Doe",
"Email": "[email protected]",
"PhoneNumber": "1-555-666-7777"
},
"BillingAddress": {
"State": "WA",
"Country": "US",
"Zip": "98660",
"City": "Vancouver",
"AddressLine": "125 22nd street"
},
"RequestHeader": {
"SessionId": "edc7f28504444a269c6f3216aac0300d-1",
"ApiKey": "4d274b41-425f-416a-8542-75fbc38aebad"
},
"PlanData": {
"Amount": {
"CurrencyCode": "USD",
"Value": 150.0
},
"AutoCapture": true,
"RefOrderNumber": "bb55b712-52fe-4e14-bc21-4d6f0c37c0b5",
"NumberOfInstallments": 4
}
}
{
"PaymentToken": {
"Type": "BluesnapVaultedShopperToken",
"Last4Digits": "0015",
"Token": "906699117"
},
"PlanApprovalEvidence": {
"AreTermsAndConditionsApproved": true
},
"ConsumerData": {
"FullName": "Jane Doe",
"Email": "[email protected]",
"PhoneNumber": "1-555-666-7777"
},
"BillingAddress": {
"State": "WA",
"Country": "US",
"Zip": "98660",
"City": "Vancouver",
"AddressLine": "125 22nd street"
},
"RequestHeader": {
"SessionId": "edc7f28504444a269c6f3216aac0300d-1",
"ApiKey": "4d274b41-425f-416a-8542-75fbc38aebad"
},
"PlanData": {
"Amount": {
"CurrencyCode": "USD",
"Value": 150.0
},
"AutoCapture": true,
"RefOrderNumber": "bb55b712-52fe-4e14-bc21-4d6f0c37c0b5",
"NumberOfInstallments": 4
}
}
{
"PaymentToken": {
"Type": "PaysafeIssuedCardID",
"Last4Digits": "0015",
"Token": "906699117"
},
"PlanApprovalEvidence": {
"AreTermsAndConditionsApproved": true
},
"ConsumerData": {
"FullName": "Jane Doe",
"Email": "[email protected]",
"PhoneNumber": "1-555-666-7777"
},
"BillingAddress": {
"State": "WA",
"Country": "US",
"Zip": "98660",
"City": "Vancouver",
"AddressLine": "125 22nd street"
},
"RequestHeader": {
"SessionId": "edc7f28504444a269c6f3216aac0300d-1",
"ApiKey": "4d274b41-425f-416a-8542-75fbc38aebad"
},
"PlanData": {
"Amount": {
"CurrencyCode": "USD",
"Value": 150.0
},
"AutoCapture": true,
"RefOrderNumber": "bb55b712-52fe-4e14-bc21-4d6f0c37c0b5",
"NumberOfInstallments": 4
}
}
Last modified 4mo ago