Skip to content

Commit

Permalink
Updated for v2.1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
sandervanhooft committed Jul 30, 2018
1 parent 3d13bb3 commit 03c0e5f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 03c0e5f

Please sign in to comment.