Secure Payments API – Add Card to Customer
General
Adding customer cards is one of the customer options available through the Secure Payments API.
How To
Send a PUT request to this endpoint:
PUT https://securepayments.loanpro.io/api/customers/{id}/add-card
Be sure to replace {id} with the ID of the specific customer you want to add a card to.
After you have created a credit card token, you can use the token to associate the 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://securepayments.loanpro.io/api/customers/1/add-card'