Code Samples
Authorization and Capture
Authorization
POST /transaction/auth
- Payload
- curl
- C#
- Java
- PHP
- Node.js
- Ruby
- Go
{- "batchName": "AA-001",
- "token": "string",
- "encryptedAccountData": "string",
- "deviceAndPeripherals": {
- "deviceId": "A-10000",
- "peripheralId": [
- "ABC-101",
- "ABC-102",
- "ABC-103"
]
}, - "details": {
- "currencyCode": "USD",
- "amount": 1050.99
}, - "account": {
- "pan": "4111111111111111",
- "expiration": "1025",
- "cvv": "999",
- "trackData": ";1234567890123445=99011X10XXXXXXX00000?*",
- "firstName": "Leonard",
- "lastName": "Smith",
- "address": {
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state": "string",
- "zip": "string",
- "country": "USA"
}, - "phoneNumber": "string",
- "emailAddress": "string",
- "emvTlvData": "6F1A840E315041592E5359532E4444463031A5088801025F2D02656E",
- "emv": {
- "tag_DF79": "101A",
- "tag_DF78": "3G5h75Gd46F32R443",
- "tag_50": "F5545F3F4432",
- "tag_9F12": "CREDITO",
- "tag_9F40": "FF-80-F0-F0-01",
- "tag_9F02": "12345",
- "tag_9F03": "4000",
- "tag_9F06": "A0000000031010",
- "tag_82": "5C-00",
- "tag_9F36": "10",
- "tag_9F34": "A4-00-02",
- "tag_9F39": "07",
- "tag_9F33": "01-01-01",
- "tag_9F1A": "840",
- "tag_9F35": "22",
- "tag_95": "00-00-04-80-00",
- "tag_5F2A": "USD",
- "tag_9A": "20221012",
- "tag_9B": "48-00",
- "tag_9F21": "101505",
- "tag_9C": "00",
- "tag_9F37": "12345678",
- "tag_5F2D": "esenptfr",
- "tag_5F34": "00",
- "tag_84": "A0-00-00-00-03-10-10",
- "tag_5F20": "Lisa Smith",
- "tag_9F26": "8E-19-ED-4B-CA-5C-67-0A",
- "tag_9F27": "80",
- "tag_9F10": "01-0A-03-60-00-00",
- "tag_57": "4000340000000504=2225111123400001230",
- "tag_5A": "4111111111111111",
- "tag_4F": "A0-00-00-00-03-10-10",
- "tag_9F4C": "01-02-03-04",
- "tag_9F6B": 100,
- "tag_9F6E": "string",
- "tag_9F7C": "9F7C0412345678"
}
}, - "industry": {
- "industry": "card-not-present",
- "eci": "7",
- "purchaseId": "string",
- "market_specific_id": "h"
}, - "shipTo": {
- "description": "This is an example description",
- "firstName": "Leonard",
- "lastName": "Smith",
- "address": {
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state": "string",
- "zip": "string",
- "country": "USA"
}, - "emailAddress": "string",
- "phoneNumber": "string"
}, - "softDescriptor": {
- "merchantName": "PACESOFT",
- "merchantPhoneNumber": "800-555-1212",
- "merchantState": "NE"
}, - "userDefinedFields": {
- "custom_field1": "Custom value 1",
- "custom_field2": "Custom value 2"
}, - "echo": "Hello World"
}
Capture
POST /transaction/capture
- Payload
- curl
- C#
- Java
- PHP
- Node.js
- Ruby
- Go
{- "deviceAndPeripherals": {
- "deviceId": "A-10000",
- "peripheralId": [
- "ABC-101",
- "ABC-102",
- "ABC-103"
]
}, - "batchName": "AA-001",
- "transactionId": "2NQREPK134YN90W",
- "amount": 2050.99,
- "tipAmount": 15.45,
- "userDefinedFields": {
- "custom_field1": "Custom value 1",
- "custom_field2": "Custom value 2"
}, - "echo": "Hello World"
}