Reversing a payment
The user can choose to remove an up-front payment from a job. This action credits the payment on the payment
gateway. Similarly to processing a payment, PolicyCenter uses a Gosu object that implements the
PaymentInformation interface to hold information about the up-front payment to reverse.
Implement the refundFullAmountForTransaction plugin method to credit the previous payment. This
method takes an object that implements the PaymentInformation interface as an argument and
returns an object that implements the PaymentGatewayResponse interface. If the credit request
succeeds, the response processor removes the UpFrontPayment entity instance for the payment and
updates the set of up-front payments on the job.
