-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update webhook.md * Update README.md * Update recurring_and_direct_charge.md * Update webhook.md
- Loading branch information
1 parent
85ef2f3
commit 84df194
Showing
3 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,8 @@ First of all you need to [create a new customer](https://docs.mollie.com/payment | |
|
||
```php | ||
$customer = Mollie::api()->customers()->create([ | ||
"name" => "John Doe", | ||
"email" => "[email protected]", | ||
'name' => 'John Doe', | ||
'email' => '[email protected]', | ||
]); | ||
``` | ||
|
||
|
@@ -23,12 +23,12 @@ After creating the user, you can [start a payment](https://docs.mollie.com/payme | |
$payment = Mollie::api()->payments()->create([ | ||
'amount' => [ | ||
'currency' => 'EUR', | ||
'value' => '25.00', // You must send the correct number of decimals, thus we enforce the use of strings | ||
'value' => '25.00', // You must send the correct number of decimals, thus we enforce the use of strings | ||
], | ||
'customerId' => $customer->id, | ||
'customerId' => $customer->id, | ||
'sequenceType' => 'first', | ||
'description' => 'My Initial Payment', | ||
'redirectUrl' => 'https://domain.com/return', | ||
'description' => 'My Initial Payment', | ||
'redirectUrl' => 'https://domain.com/return', | ||
'webhookUrl' => route('webhooks.mollie'), | ||
]); | ||
|
||
|
@@ -51,11 +51,11 @@ If any of the mandates is valid, charging the user is a piece of cake. Make sure | |
$payment = Mollie::api()->payments()->create([ | ||
'amount' => [ | ||
'currency' => 'EUR', | ||
'value' => '25.00', // You must send the correct number of decimals, thus we enforce the use of strings | ||
'value' => '25.00', // You must send the correct number of decimals, thus we enforce the use of strings | ||
], | ||
'customerId' => $customer->id, | ||
'customerId' => $customer->id, | ||
'sequenceType' => 'recurring', | ||
'description' => 'Direct Charge', | ||
'description' => 'Direct Charge', | ||
'webhookUrl' => route('webhooks.mollie'), | ||
]); | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters