-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
18 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,13 +27,16 @@ | |
* | ||
* See: https://docs.mollie.com/reference/v2/client-links-api/create-client-link | ||
*/ | ||
$response = $mollie->send(new CreateClientLinkRequest(new CreateClientLinkPayload( | ||
new Owner('[email protected]', 'foo', 'bar', 'nl_NL'), | ||
'Foo Company', | ||
new OwnerAddress('NL', 'Keizersgracht 313', '1016 EE', 'Amsterdam'), | ||
'30204462', | ||
'NL123456789B01', | ||
))); | ||
$response = $mollie | ||
->send( | ||
new CreateClientLinkRequest(new CreateClientLinkPayload( | ||
new Owner('[email protected]', 'foo', 'bar', 'nl_NL'), | ||
'Foo Company', | ||
new OwnerAddress('NL', 'Keizersgracht 313', '1016 EE', 'Amsterdam'), | ||
'30204462', | ||
'NL123456789B01', | ||
)) | ||
); | ||
|
||
$clientLink = $response->toResource(); | ||
|
||
|
@@ -53,7 +56,7 @@ | |
* Send the customer off to finalize the organization creation. | ||
* This request should always be a GET, thus we enforce 303 http response code | ||
*/ | ||
header('Location: '.$redirectUrl, true, 303); | ||
header('Location: ' . $redirectUrl, true, 303); | ||
} catch (\Mollie\Api\Exceptions\ApiException $e) { | ||
echo 'API call failed: '.htmlspecialchars($e->getMessage()); | ||
echo 'API call failed: ' . htmlspecialchars($e->getMessage()); | ||
} |
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
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