Capture Transaction
Capture transaction means that the user approve / approve credit card transactions that have been verified bank (authorize transactions), the merchant then sends a request to capture the transaction to receive and collect the payments to customers who registered on the credit card used. Requests capture can only be made for transactions already in the authorize by the bank (field TXN_STATUS = A). In some banks already provide services for the automation of the capture process that can be set in accordance with merchant demand.
Request Parameter Capture Transaction
Request parameter capture the transaction is a parameter that must be provided by the merchant system to be able to capture transactions through the system Faspay.
transaction_type
Integer(2)
M
For capture transaction API, always used value ‘2’
merchant_id
Varchar(30)
M
Your Faspay Merchant ID.
merchant_tranid
Varchar(100)
M
Merchant’s unique transaction id as passed in from the payment request.
transaction_id
Varchar
O
Transaction ID generated by Faspay. Fill this parameter with transaction_id provided in return_url or callback_url when payment occur.
amount
Varchar(10)
M
Transaction amount as passed in from the payment request.
signature
Varchar(40)
M
Transaction signature of request for data integrity check.
{
"transaction_type" : 2,
"merchant_id": "auto_store",
"merchant_tranid": "AGS028",
"transaction_id": "477DC7E5-D26B-46C5-AF39-61D8B47310AB",
"amount": "20000.00",
"signature" : "56c4c92226047a620374f4829d8058a5f955d684"
}Response Parameter Capture Transaction
Response transaction capture parameters are parameters that will be delivered by the system in response to a request Faspay capture parameter transaction that has been submitted by the merchant system. If no parameters are not appropriate / value is incorrect, the transaction will be rejected in the system Faspay.
merchant_id
Varchar(30)
M
Your Faspay Merchant ID.
merchant_tranid
Varchar(100)
M
Merchant’s own assigned transaction id as passed in from the request.
tnx_status
Varchar(3)
Transaction status from Faspay. A – Authorized S – Sales C – Captured CF – Capture Failed F – Failed E – Error B – Blocked N – Pending V – Void
amount
Varchar(10)
M
Transaction amount as passed in from the request.
transaction_id
Varchar
M
Transaction ID generated by Faspay when payment occur-Occur.
signature
Varchar(40)
M
Transaction signature of request for data integrity check.
tran_date
Varchar(19)
C
Transaction date of when transaction is submitted to Faspay e-Payment. Date format in ‘DD-MM-YYYY hh:mm:ss’ e.g. 24-05-2024 08:24:23 In the event of error, this field may be empty.
response_code
String(7)
M
Response code.
{
"merchant_id": "auto_store",
"merchant_tranid": "AGS008",
"txn_status": "C",
"amount": "10000.00",
"transaction_id": "0AFEAC6A-7FA7-4F4C-B6EA-B1FD5D2D9161",
"signature": "09FB66982A1ED05122581951F9BDBAF7AC3B6CF9",
"tran_date": "2024-09-04 14:39:29",
"response_code": "00",
"response_message": "Success"
}Last updated