From 03c0e5f349648cbb4f45016700898de1c2439190 Mon Sep 17 00:00:00 2001 From: Sander van Hooft Date: Mon, 30 Jul 2018 13:38:25 +0200 Subject: [PATCH] Updated for v2.1.0 release --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index a5ac88a..4769b76 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,17 @@ if ($payment->isPaid()) } ``` +### Global helper method +For your convencience we've added the global `mollie()` helper function. It's an easy shortcut to the `Mollie::api()` facade accessor. + +```php +// Using facade accessor +$payment = Mollie::api()->payments()->get($payment_id); + +// Using global helper function +$payment = mollie()->payments()->get($payment_id); +``` + ## Other examples - [Process realtime status updates with a webhook](docs/webhook.md)