Skip to content

Commit

Permalink
Added Apply Pay
Browse files Browse the repository at this point in the history
  • Loading branch information
Wouter0100 committed May 27, 2019
1 parent e356f9c commit c285729
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mollie/lang/dutch.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@
$_GATEWAYLANG['payWithGiropay'] = 'Betaal met Giropay';
$_GATEWAYLANG['payWithInghomepay'] = 'Betaal met ING Home\'Pay';
$_GATEWAYLANG['payWithKbc'] = 'Betaal met KBC/CBC-betaalknop';
$_GATEWAYLANG['payWithPrzelewy24'] = 'Betaal met Przelewy24';
$_GATEWAYLANG['payWithApplepay'] = 'Betaal met Apple Pay';
2 changes: 2 additions & 0 deletions src/mollie/lang/english.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@
$_GATEWAYLANG['payWithGiropay'] = 'Pay with Giropay';
$_GATEWAYLANG['payWithInghomepay'] = 'Pay with ING Home\'Pay';
$_GATEWAYLANG['payWithKbc'] = 'Pay with KBC/CBC Payment Button';
$_GATEWAYLANG['payWithPrzelewy24'] = 'Pay with Przelewy24';
$_GATEWAYLANG['payWithApplepay'] = 'Pay with Apple Pay';
22 changes: 22 additions & 0 deletions src/mollieapplepay_devapp.php
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);
}

1 comment on commit c285729

@DAThosting
Copy link

@DAThosting DAThosting commented on c285729 Jun 5, 2019

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.

Please sign in to comment.