Refund
The Refund API allows a terminal to initiate a transaction that returns funds to a customer for a previous payment. It securely processes the refund through the Payment Orchestration layer, ensuring accurate transaction updates and return of funds.
Key Parameters:
MsgType.REFUND: Indicates a refund.amount: Amount value to refund.
What a Refund Transaction API Does
1
Initiates Refund After Authorization
Begins the refund for a transaction that was authorized but not yet settled, ensuring the customer’s funds are not captured.
2
Identifies the Original Transaction
Uses key identifiers like transaction ID, authorization code, and timestamp to locate and reverse the original payment.
3
Communicates with Payment Orchestration
Sends the refund request to the Payment Orchestration layer, which updates records across processors and issuers.
4
Generates Receipt and Audit Logs
Produces a refund receipt and updates transaction logs for reconciliation and compliance tracking.
5
Streamlines Merchant Operations
Enables quick correction of payment errors without requiring a separate refund workflow, improving customer satisfaction.
1
2
3
4
5
6
7
8
9
10
11
12
Button.onClick {
val parsedAmount = parseAmount(amount) ?: return@onClick
val parsedStan = parseStan(stan) ?: return@onClick
val requestMsg = RequestMsg(
msgType = MsgType.REFUND,
invoiceNbr = "10120304",
amount = 1500, // $15.00
currency = "USD",
readerType = ReaderType.INSERT_CLESS_SWIPE
)
sdk.sendRequestMessage(requestMsg)
}