Merge pull request #998 from DaveLegg/patch-1

Update RefundCapture.php
This commit is contained in:
Jay
2017-11-25 12:16:46 -06:00
committed by GitHub

View File

@@ -13,6 +13,12 @@ use PayPal\Api\RefundRequest;
// ### 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 = "<your authorization id here>";