Sale-EncryptedCard

API Explorer
loading...
POST
/sale-encryptedcard

Submits a payment transaction request using encrypted card data or alternative tokens.

Header Parameters

token*string

Authentication token generated using the API Key and Secret Key. Required for all API requests.

Request Body

application/json

Response Body

application/json

application/json

curl -X POST "https://example.com" \  -H "token: string" \  -H "Content-Type: application/json" \  -d '{    "merchantAuthentication": {      "merchantId": "",      "transactionReferenceId": ""    },    "preferences": {      "eReceipt": false,      "customerName": "",      "customerEmail": "",      "customerMobile": "",      "requestCardToken": true    },    "transactionRequest": {      "amount": "",      "transactionType": 1,      "encryptedCardData": "",      "applySteamSettingTipFeeTax": false    },    "avs": {      "StreetNo": "",      "Zip": ""    }  }'
{
  "iposhpresponse": {
    "responseCode": "200",
    "responseMessage": "success",
    "errResponseCode": "",
    "errResponseMessage": "",
    "transactionReferenceId": "",
    "transactionType": "1",
    "transactionId": "",
    "amount": "",
    "responseApprovalCode": "",
    "rrn": "",
    "transactionNumber": "",
    "batchNumber": "",
    "customFee": "",
    "totalAmount": ""
  }
}
{
  "errors": [
    {
      "field": "IPOS_REQ_001",
      "message": "Invalid Payload Request"
    }
  ]
}