diff --git a/sample/payments/RefundCapture.php b/sample/payments/RefundCapture.php index 3a7a8d9..9d9218d 100644 --- a/sample/payments/RefundCapture.php +++ b/sample/payments/RefundCapture.php @@ -13,6 +13,8 @@ use PayPal\Api\RefundRequest; // ### Refund // Create a refund object indicating // refund amount and call the refund method +$refundRequest = new RefundRequest(); +$refundRequest->setAmount($amt); // Replace $captureId with any static Id you might already have. $captureId = "";