Secure Payments API Credit Card Validation

General

This article covers card data validation. You can also verify the card address.

Credit Card Validation

Secure Payments (formerly PCI Wallet) supports the verification of certain types of credit card data. Specifically, PCI-Wallet can provide information about processing fees, funds availability, and address verification.

POST /processors/credit-card/card-data

This endpoint returns data about a credit card. The amount is used to determine fees for that amount on the given card.

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'authorization: YOUR AUTH' --header 'secret: YOUR SECRET' -d '{ \
"transaction": { \
"amount": 1.00, \
"funds-direction": "FromCustomer" \
}, \
"card": { \
"token": PAYMENT PROFILE TOKEN \
}, \
"metadata": {} \
}' 'https://pciwallet.simnang.com/api/processors/credit-card/card-data'

Response:

{
"card-details": {
"SC": 200,
"EC": "0",
"card": {
"pull": {
"enabled": true,
"network": "Visa",
"type": "Debit",
"regulated": false,
"currency": "840",
"country": "840"
},
"push": {
"enabled": true,
"network": "Visa",
"type": "Debit",
"availability": "Immediate",
"regulated": false,
"currency": "840",
"country": "840"
}
},
"fees": {
"pull": {
"interchange": "0.01",
"network": "0.00",
"tabapay": "0.01"
},
"push": {
"interchange": "0.10",
"network": "0.10",
"tabapay": "0.25"
}
}
}
}

  • The card attribute response option returns general information about the card.
  • The fees attribute response option returns information about card fees for the amount specified in the payload.


How did we do?


Powered by HelpDocs (opens in a new tab)