Skip to content

Commit

Permalink
Merge pull request #6 from max-geraci/master
Browse files Browse the repository at this point in the history
Added payment method Apple Pay
  • Loading branch information
max-geraci authored Sep 17, 2019
2 parents 6839e30 + 2c65bef commit 095c6fc
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ MyBank | Carte Bancaire | Podium Cadeaukaart | Capayable Achteraf Betalen | Cash
SOFORT | PostePay | Gezondheidsbon | Capayable Gespreid betalen | Pay Fixed Price (phone) |
Maestro | Dankort | Fashion Giftcard | Klarna | Instore Payments (POS) |
Bank Transfer | Cartasi | GivaCard | SprayPay | Przelewy24 |
| Tikkie | | YourGift | Creditclick | |
| Tikkie | | YourGift | Creditclick | Apple Pay |
| | | Paysafecard |


Expand Down
13 changes: 13 additions & 0 deletions upload/admin/controller/extension/payment/paynl_applepay.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php
$dir = dirname(dirname(dirname(dirname(dirname(__FILE__)))));
$autoload = $dir . '/Pay/Autoload.php';

require_once $autoload;

class ControllerExtensionPaymentPaynlApplepay extends Pay_Controller_Admin
{
protected $_paymentOptionId = 2277;
protected $_paymentMethodName = 'paynl_applepay';

protected $_defaultLabel = 'Apple Pay';
}
1 change: 1 addition & 0 deletions upload/admin/language/en-gb/extension/payment/paynl3.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'afterpay',
'afterpayem',
'amex',
'applepay',
'billink',
'bitcoin',
'capayable',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php
include 'paynl3.php';
// Heading
$_['heading_title'] = 'Pay.nl - Apple Pay';
1 change: 1 addition & 0 deletions upload/admin/language/nl-nl/extension/payment/paynl3.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
'afterpay',
'afterpayem',
'amex',
'applepay',
'billink',
'bitcoin',
'capayable',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php
include 'paynl3.php';
// Heading
$_['heading_title'] = 'Pay.nl - Apple Pay';
11 changes: 11 additions & 0 deletions upload/catalog/controller/extension/payment/paynl_applepay.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
$dir = dirname(dirname(dirname(dirname(dirname(__FILE__)))));
$autoload = $dir . '/Pay/Autoload.php';

require_once $autoload;

class ControllerExtensionPaymentPaynlApplepay extends Pay_Controller_Payment
{
protected $_paymentOptionId = 2277;
protected $_paymentMethodName = 'paynl_applepay';
}
11 changes: 11 additions & 0 deletions upload/catalog/model/extension/payment/paynl_applepay.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
$dir = dirname(dirname(dirname(dirname(dirname(__FILE__)))));
$autoload = $dir . '/Pay/Autoload.php';

require_once $autoload;

class ModelExtensionPaymentPaynlApplepay extends Pay_Model
{
protected $_paymentOptionId = 2277;
protected $_paymentMethodName = 'paynl_applepay';
}

0 comments on commit 095c6fc

Please sign in to comment.