Cancel transaction is a process to cancel transaction which is already submit to Faspay system
Transaction with status paid can't be cancel using this API
Endpoint URL Cancel Transaction
Endpoint URL is used as a feedback URL that will process the data in the inquiry from the merchant system. There are two URLs that needs to be used, namely Production and Development. For the implementation of the testing or UAT can use the URL development.
Request Parameter Cancel Transaction
Transaction cancel the request parameters are parameters that must be provided by the merchant system to be able to cancel the transaction into the system inquiry Faspay.
<faspay> <request>Canceling Payment</request> <trx_id>3100440033666278</trx_id> <merchant_id>31004</merchant_id> <merchant>Sophia Store</merchant> <bill_no>31004001</bill_no> <payment_cancel>Item Out of Stock</payment_cancel> <signature>be8791ac5f10bb042834896598bfc6bb9aadcbf9</signature></faspay>
{"request":"Canceling Payment","trx_id":"9999970700002782","merchant_id":"99999","merchant":"Sophia Store","bill_no":"8226","payment_cancel":"Item Out of Stock","signature":"6d16537c525b0e8450cdf5d4e67fbc24b1ed41c5"}
Response Parameter Cancel Transaction
Response parameters are parameters that will be delivered by the system Faspay in response to the request parameters have been sent by the merchant system. If no parameters are not appropriate / value is incorrect, the transaction will be rejected in the system Faspay.
<faspay> <response>Canceling Payment</response> <trx_id>3100440033666278</trx_id> <merchant_id>31004</merchant_id> <merchant>Sophia Store</merchant> <bill_no>31004001</bill_no> <payment_cancel>Item Out of Stock</payment_cancel> <signature>be8791ac5f10bb042834896598bfc6bb9aadcbf9</signature></faspay>
{"response":"Canceling Payment","trx_id":"9999970700002782","merchant_id":"99999","merchant":"Sophia Store","bill_no":"8226","trx_status_code":"3","trx_status_desc":"Order Expired","payment_status_code":"7","payment_status_desc":"Payment Expired","payment_cancel_date": [],"payment_cancel":"Item Out of Stock","response_code":"54","response_desc":"Your Transaction has been Expired."}
Transaction ID (Issued/generated by Faspay (Media Indonusa)) Notes: Unique Transaction ID for 1 day or as long as it hasn't been paid and hasn't expired
merchant_id
Numeric (5)
M
Merchant Code
merchant
Alphanumeric (32)
O
Merchant Name
bill_no
Alphanumeric (32)
M
Order Number
payment_cancel
Alphanumeric (50)
M
Cancellation Description
signature
Alphanumeric
M
sha1(md5(user_id+
password+bill_no))
response
Alphanumeric (50)
O
Request Description
trx_id
Numeric (16)
M
Transaction ID (Issued/generated by Faspay (Media Indonusa)) Notes: Unique Transaction ID for 1 day or as long as it hasn't been paid and hasn't expired