-
Notifications
You must be signed in to change notification settings - Fork 2
Refund a Payment
James Goodwin edited this page Mar 24, 2017
·
2 revisions
var receipt = result as PaymentReceiptModel;
var paymentService = new ServiceFactory().GetPaymentService(BuildJudo());
var refundResult = await paymentService.Refund(new RefundModel()
{
Amount = receipt.Amount,
ReceiptId = receipt.ReceiptId
});
if ("Success".Equals(refundResult.Response.Result))
{
// handle successful refund
}