Secure Payments API GET Credit Card

General

Getting a credit card token is one of the credit card options available through the Secure Payments (formerly PCI Wallet) API.

How To

To get an existing credit card details you have to have the credit card token given to you when you created the credit card as a payment method. Send a GET request to the endpoint: credit-card/{token}

Request:

curl -X GET --header 'Accept: application/json' --header 'secret: your-secret' --header 'authorization: your-token' 'https://pciwallet.simnang.com/api/credit-card/CiCVDqG5QNK%2BZhpBI3fNrwHkwiWdtqO5Nb1OQctzK3SzhRKnAQEBAwB4lQ6huUDSvmYaQSN3za8B5MIlnbajuTW9TkHLcyt0s4UAAAB%2BMHwGCSqGSIb3DQEHBqBvMG0CAQAwaAYJKoZIhvcNAQcBMB4GCWCGSAFlAwQBLjARBAwncgs%2FWX4X2NKs%2FgYCARCAO2tZFeqyjkH%2BIvHQqX0XT7z0QtJupvGVYNinIBzUCDa1tQpUruRLZlpTwh5exQahFLbO3lXnP%2F6%2BGW9d.eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJ1cGRhdGVkIjoxNDQ5ODU1NzE2LCJjcmVhdGVkIjoxNDQ5ODU1NzE2LCJ6aXBjb2RlIjoiODMxNDUiLCJpZCI6MiwidXNlcl9pZCI6NSwiY291bnRyeSI6IlVTQSJ9.w1n3XoJ754oZrUGHzxJPA8unC-yVvewzk8NfSnXvEas'

Response:

{
"card_number": "XXXXXXXXXXXX1111",
"type": "VISA",
"address": "255 valencia rd",
"city": "tucson",
"state": "AZ",
"zipcode": "85476",
"country": "USA"
}

A masked card number will be returned with only the last four digits visible.


How did we do?


Powered by HelpDocs (opens in a new tab)