-
Notifications
You must be signed in to change notification settings - Fork 15
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
1 parent
e356f9c
commit c285729
Showing
3 changed files
with
26 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
require_once __DIR__ . '/mollie/mollie.php'; | ||
|
||
function mollieapplepay_devapp_config() | ||
{ | ||
$config = mollie_config(); | ||
|
||
$config = array_merge($config, array( | ||
'FriendlyName' => array( | ||
'Type' => 'System', | ||
'Value' => 'Mollie Apple Pay' | ||
) | ||
)); | ||
|
||
return $config; | ||
} | ||
|
||
function mollieapplepay_devapp_link($params) | ||
{ | ||
return mollie_link($params, \Mollie\Api\Types\PaymentMethod::APPLEPAY); | ||
} |
c285729
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ApplePay run into the following error:
[WHMCS Application] ERROR: Error: Undefined class constant 'APPLEPAY' in modules/gateways/mollieapplepay_devapp.php:16
//EDIT:
Just update the PHP Mollie Api in vendor folder.