E-Payment Integrator 2020 Python Edition

Questions / Feedback?

refund Method

Refunds a previously captured transaction.

Syntax

def refund(transaction_id: str, refund_amount: str) -> None: ...

Remarks

This method refunds a transaction that has already been captured, or settled. If the transaction is still outstanding use the void_transaction method instead. The TransactionId parameter indicates to the gateway which transaction is to be refunded, and should contain the response_transaction_id from the original transaction. The RefundAmount parameter is the value to be refunded back to the customer, and can be all or part of the original transaction_amount

Please see the gateway information in the table of contents to determine if your gateway supports Refund transactions.

The gw3DSI gateway requires the following additional fields for Refund transactions:


class.AddSpecialField "UserId", "my 3DSI-assigned UserId" '(Different than merchant_login)
class.MerchantPassword = "my 3DSI-assigned Pwd"

The LinkPoint and PSIGateXML gateways require you send the response_invoice_number rather than the response_transaction_id.

Copyright (c) 2021 /n software inc. - All rights reserved.
E-Payment Integrator 2020 Python Edition - Version 20.0 [Build 7941]