PayGate: add support for refund

Closes #1486