From 5fcdb2195df83f44f64f447a78b90cd70625ce6a Mon Sep 17 00:00:00 2001 From: Dave Legg Date: Fri, 24 Nov 2017 15:42:42 +0000 Subject: [PATCH] Update RefundCapture.php Restored removed refundRequest code to make sample functional again --- sample/payments/RefundCapture.php | 2 ++ 1 file changed, 2 insertions(+) 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 = "";