Validate Card Info

Description

The validateCardInfo endpoint is used to verify the validity and format of a provided card’s information. This API is used to identify the associated currency and performs the conversion to the target currency.

Request

Endpoint

/ui/v1/validateCardInfo

Method

POST
Content-Type: application/json
Authorization: Basic $TOKEN

Note

Replace $TOKEN in the request with the base64-encoded username/password combination in the format username:password.

Given a username of username and a password of password, the request header would appear as follows:

Content-Type: application/json
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=

Request Body

{
    "cardNumber": "1234123412341234",
    "subscriptionId": null,
    "paymentGateway": {
        "name": "CHASE_PAYMENTECH_ORBITAL"
    },
    "paymentMethod": "CREDIT_CARD",
    "response": "",
    "merchantId": "42",
    "channelId": "81",
    "currencyCode": "USD",
    "amount": "25.00"
}

Response

{
    "cardNumber": "1234123XXXXXXXXXX",
    "subscriptionId": null,
    "paymentGateway": {
        "value": "Chase Paymentech (Orbital)",
        "name": "CHASE_PAYMENTECH_ORBITAL"
    },
    "paymentMethod": "CREDIT_CARD",
    "response": "Y",
    "merchantId": 42,
    "channelId": 81,
    "currencyCode": "USD",
    "amount": 25,
    "rate": 1.39586,
    "alpha2CountryCode": "US",
    "binalpha2CountryCode": "CA",
    "bincurrencyAmount": 34.9,
    "bincurrencyCode": "CAD"
}

Updated As Of Version 6.7.2.1