Reverse Method
Reverses a previously authorized transaction.
Syntax
tsysreversalcontrol.ReverseRemarks
To reverse a transaction, you need the following information from the original authorization:
- ApprovalCode
- CardholderId
- IndustryType
- RetrievalNumber
- ReturnedACI
- TotalAuthorizedAmount
- TransactionId
- TransactionDate
- TransactionTime
Instead of setting these properties by hand, it is preferred that you can ParseAggregate with the XML aggregate returned from the authorizing control's GetDetailRecord method.
Then simply set the ReversalType, ReversalCode, and the new SettlementAmount, and then call Reverse. If the reversal was successful the ResponseCode property will be "00". All of the other Response properties will be identical to the values submitted in the properties above.
NOTE: Reversal transactions are not to be entered into the batch settlement. If a transaction has been partially reversed, the original detail record must be updated with the new AuthorizedAmount and SettlementAmount. If the transaction has been completely reversed the original detail record MUST NOT be included in the batch settlement.