Secure Payments API – PUT Customers Add Card

General

Adding customer cards is one of the customer options available through the Secure Payments (formerly PCI Wallet) API.

How To

Send a PUT request to this endpoint:

PUT https://pciwallet.simnang.com/api/customers/{id}/add-card

Be sure to replace {id} with the ID of the specific customer you want to add a card to.

This associates a credit card token with a customer. After you have created a credit card token, you can associate that card with a customer. This will ensure that whenever a transaction is created there is a customer associated with it.

Sample payload:

{
"credit-card": {
"token": "CREDIT-CARD-TOKEN"
}
}

Sample cURL request:

curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'authorization: YOUR AUTH' --header 'secret: YOUR SECRET' -d '{ \
"credit-card": { \
"token": "CARD TOKEN" \
} \
}' 'https://pciwallet.simnang.com/api/customers/1/add-card'

You can try it out yourself in our ReadMe page: Add Card to Customer


How did we do?


Powered by HelpDocs (opens in a new tab)