Update RefundCapture.php

Restored removed refundRequest code to make sample functional again
This commit is contained in:
Dave Legg
2017-11-24 15:42:42 +00:00
committed by GitHub
parent c463ab4949
commit 5fcdb2195d

View File

@@ -13,6 +13,8 @@ use PayPal\Api\RefundRequest;
// ### Refund // ### Refund
// Create a refund object indicating // Create a refund object indicating
// refund amount and call the refund method // refund amount and call the refund method
$refundRequest = new RefundRequest();
$refundRequest->setAmount($amt);
// Replace $captureId with any static Id you might already have. // Replace $captureId with any static Id you might already have.
$captureId = "<your authorization id here>"; $captureId = "<your authorization id here>";