Reverses a previously authorized transaction.
public void Reverse();
Public Sub Reverse()
To reverse a transaction, you need the following information from the original authorization:
Instead of setting these properties by hand, it is preferred that you can ParseAggregate with the XML aggregate returned from the authorizing component's GetDetailRecord method.
Then simply set the ReversalType, ReversalCode, and the new SettlementAmount, and then call Reverse. If the reversal was successful the Code field will be "00". All of the other Response fields 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.