diff --git a/sample/payments/RefundCapture.php b/sample/payments/RefundCapture.php index 3a7a8d9a..0c288fc2 100644 --- a/sample/payments/RefundCapture.php +++ b/sample/payments/RefundCapture.php @@ -13,6 +13,12 @@ // ### Refund // Create a refund object indicating // refund amount and call the refund method +$amount = new Amount(); +$amount->setCurrency("USD") + ->setTotal(20); + +$refundRequest = new RefundRequest(); +$refundRequest->setAmount($amount); // Replace $captureId with any static Id you might already have. $captureId = "";