From 3a8f4470e4f38b9276194919e2088f1196f82554 Mon Sep 17 00:00:00 2001 From: carmenmaymo Date: Tue, 29 Oct 2024 12:13:58 +0100 Subject: [PATCH] Update documentation --- documentation/Plugin-API-Functions.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/documentation/Plugin-API-Functions.md b/documentation/Plugin-API-Functions.md index e50220c3..be96422b 100644 --- a/documentation/Plugin-API-Functions.md +++ b/documentation/Plugin-API-Functions.md @@ -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 }); ```