forked from LiveCarta/PayPal-PHP-SDK
@@ -13,6 +13,12 @@ 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
|
||||||
|
$amount = new Amount();
|
||||||
|
$amount->setCurrency("USD")
|
||||||
|
->setTotal(20);
|
||||||
|
|
||||||
|
$refundRequest = new RefundRequest();
|
||||||
|
$refundRequest->setAmount($amount);
|
||||||
|
|
||||||
// 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>";
|
||||||
|
|||||||
Reference in New Issue
Block a user