Get Card Details

Sometimes as a Merchant you may want to display the card details for your customers while they pay for the services or products you are offering on your site.

Having this in mind, Since we do not recommend to store the card details on your own, You may always opt to check out if your customer has saved their card information with us prior to the current transaction.

In order to be able to use this endpoint make sure you have already sent the Card Checkout Request to the Gateway and you have received the Order id from the Gateway.

You can then use this Order Id to query the gateway for the user Card information.

Request Url

{{base_url}}/get-customer-card-details

Sample Request

{
    "order_id" : "CST172432052046"
}

if the user did save their Card information with us, then you shall receive a masked card response otherwise you will just get a generic error stating that the record requested is not available.
You should handle this case however you deem appropriate.