Skip to content

Commit

Permalink
Transaction refund
Browse files Browse the repository at this point in the history
  • Loading branch information
seunex17 committed Nov 7, 2023
1 parent 934fee3 commit 2fd6a32
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 1 deletion.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,18 @@ In the redrected page (method) add this below code to verify you payment.
}
```

### Refund a transaction

Whenever your customer pay you, it is advisable to store the transaction information return by flutterwave.
To create a refund we needed the amount paid and flutterwave references (flw_ref).

```php
$flutterwaveRef = "FLW-MOCK-a728cc7f95ecff4bc92388a2f1f69cc3";
$amount = 500;

Transaction::refund($flutterwaveRef, $amount);
```

<a id="contribution-guidelines"></a>

## Contribution guidelines
Expand Down
Loading

0 comments on commit 2fd6a32

Please sign in to comment.