Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Update RefundCapture.php #998

Merged
merged 2 commits into from
Nov 25, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions sample/payments/RefundCapture.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
// ### 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>";
Expand Down