Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
adriaanmol committed May 3, 2016
1 parent f5e3f08 commit 898c4ed
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,23 @@ This will create a `config/mollie.php` file in your app that you can modify to s

Here you can see an example of just how simple this package is to use.

### Mollie API

```php
$payment = Mollie::api()->payments()->create([
"amount" => 10.00,
"description" => "My first API payment",
"redirectUrl" => "https://webshop.example.org/order/12345/",
]);

$payment = Mollie::api()->payments->get($payment->id);

if ($payment->isPaid())
{
echo "Payment received.";
}
```

### Mollie Connect with Laravel Socialite

```php
Expand All @@ -71,23 +88,6 @@ Route::get('login_callback', function () {
});
```

### Mollie API

```php
$payment = Mollie::api()->payments()->create([
"amount" => 10.00,
"description" => "My first API payment",
"redirectUrl" => "https://webshop.example.org/order/12345/",
]);

$payment = Mollie::api()->payments->get($payment->id);

if ($payment->isPaid())
{
echo "Payment received.";
}
```

## License

[BSD (Berkeley Software Distribution) License](http://www.opensource.org/licenses/bsd-license.php). Copyright (c) 2016, Mollie B.V.
Expand Down

0 comments on commit 898c4ed

Please sign in to comment.