Transaction API
PAY Operation
Sample Request
PUT https://openhacking.me/transaction.php?order={orderId}&transaction={txnId}
Content-Type: application/json
Payload:
{
"apiOperation": "PAY",
"order": {
"amount": "1.00",
"currency": "USD"
},
"session": {
"id": "SESSION0000000000000000000000"
},
"sourceOfFunds": {
"type": "CARD"
},
"transaction": {
"frequency": "SINGLE"
}
}
Response
Content-Type: application/json
Payload:
{
"apiVersion": "49",
"gatewayResponse": {
"authorizationResponse": { ... },
"gatewayEntryPoint": "WEB_SERVICES_API",
"merchant": "TESTBARISTACOLKR",
"order": { ... },
"response": { ... },
"result": "SUCCESS",
"sourceOfFunds": { ... },
"timeOfRecord": "2017-01-01T00:00:00.000Z",
"transaction": { ... },
"version": "49"
}
}