Skip to content

Commit

Permalink
Merge pull request #61 from sandervanhooft/master
Browse files Browse the repository at this point in the history
Updated readme for v2.1.0 release
  • Loading branch information
sandervanhooft authored Jul 30, 2018
2 parents 78584e9 + 03c0e5f commit ac17009
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 ac17009

Please sign in to comment.