Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Oct 29, 2024
1 parent 7beb895 commit 3a8f447
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion documentation/Plugin-API-Functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ use function Mollie\WooCommerce\Inc\Api\mollie_refund_order;
add_action('init', function () {
$order_id = 123;
$order = wc_get_order($order_id);
mollie_refund_order($order);
$refund = mollie_refund_order($order, 10.00, 'Refund reason');
// $refund is an instance of Mollie\Api\Resources\Refund
});
```

Expand Down

0 comments on commit 3a8f447

Please sign in to comment.