diff --git a/CHANGELOG.md b/CHANGELOG.md index 97f791a..18d291f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,5 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. -## [2.0.0 beta 1] - 2018-06-27 -Version 2.0.0 beta is here! See the [migration instructions](docs/migration_instructions_v1_to_v2.md) on how to upgrade from v1. +## 2.0.0 - 2018-07-09 +Version 2.0.0 is here! See the [migration instructions](docs/migration_instructions_v1_to_v2.md) on how to upgrade from v1. + +This release leverages the V2 mollie-api-php client. diff --git a/README.md b/README.md index 1fdc7c8..d842512 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Fresh install? Continue with the installation guide below. Add Laravel-Mollie to your composer file via the `composer require` command: ```bash -$ composer require mollie/laravel-mollie:2.0.* +$ composer require mollie/laravel-mollie:^2.0 ``` Or add it to `composer.json` manually: @@ -66,7 +66,7 @@ $payment = Mollie::api()->payments()->create([ 'value' => '10.00', // You must send the correct number of decimals, thus we enforce the use of strings ], "description" => "My first API payment", - "redirectUrl" => "https://webshop.example.org/order/12345/", + 'webhookUrl' => route('webhooks.mollie'), ]); $payment = Mollie::api()->payments()->get($payment->id); diff --git a/docs/recurring_and_direct_charge.md b/docs/recurring_and_direct_charge.md index bbdbc7e..070f047 100644 --- a/docs/recurring_and_direct_charge.md +++ b/docs/recurring_and_direct_charge.md @@ -29,6 +29,7 @@ $payment = Mollie::api()->payments()->create([ 'sequenceType' => 'first', 'description' => 'My Initial Payment', 'redirectUrl' => 'https://domain.com/return', + 'webhookUrl' => route('webhooks.mollie'), ]); ``` @@ -52,6 +53,7 @@ If any of the mandates is valid, charging the user is a piece of cake. Make sure 'customerId' => $customer->id, 'sequenceType' => 'recurring', 'description' => 'Direct Charge', + 'webhookUrl' => route('webhooks.mollie'), ]); ``` diff --git a/docs/webhook.md b/docs/webhook.md index 0df5a8c..11db45b 100644 --- a/docs/webhook.md +++ b/docs/webhook.md @@ -13,7 +13,7 @@ $payment = Mollie::api()->payments()->create([ ], "description" => "My first API payment", "redirectUrl" => "https://webshop.example.org/order/12345/", - 'webhookUrl' => 'https://domain.com/webhooks/mollie', + 'webhookUrl' => route('webhooks.mollie'), ]); ```