Better gateway error handling during refund creation

Provides admins with a better idea of what happened when a gateway error occurs during a refund/reimbursement.
Avoid using {...} for multi-line blocks.