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.

Parameter
Data Type
M/O/C
Description

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.

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.

Parameter
Data Type
M/O/C
Description

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.

Last updated