Secure Payments API – Process TabaPay Payment
General
This article covers how to process payments using a TabaPay processor through the Secure Payments API. For information on creating a TabaPay processor, take a look at our Secure Payments API – Create TabaPay Processor article.
How To
To process a TabaPay payment, send a POST request to this endpoint:
https://securepayments.loanpro.io/api/processors/tabapay/process/{id}
Here's a sample JSON payload:
{
"transaction": {
"amount": 1.00,
"funds-direction": "FromCustomer"
},
"card": {
"token": CUSTOMER CHECKING TOKEN
},
"metadata": {}
}
And the same payload as a cURL request:
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'authorization: YOUR AUTH' --header 'secret: YOUR SECRET' -d '{ \
"transaction": { \
"amount": 1.00, \
"funds-direction": "FromCustomer" \
}, \
"card": { \
"token": CUSTOMER CHECKING TOKEN \
}, \
"metadata": {} \
}' 'https://securepayments.loanpro.io/api/processors/tabapay/process/1'
Here's a sample response:
{
"transaction": {
"amount": 1,
"raw_response": "{\"SC\":200}",
"operation": "process",
"operation_success": true,
"created": "2018-2-19 19:00:32",
"token": TOKEN,
"status": "submitted",
"id": 15311,
"sec_code": "",
"raw_http_code": 200,
"processor": "sample_tabapay",
"metadata": "{}",
"customer_name": "John Q. Customer",
"customer_id": 18816
},
"processor": {
"id": 13,
"name": "sample_tabapay",
"client_id": "Encrypted value",
"bearer_token": "Encrypted value",
"settlement_account": "Encrypted value"
}
}