-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from max-geraci/master
Added payment method Apple Pay
- Loading branch information
Showing
8 changed files
with
46 additions
and
1 deletion.
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
13 changes: 13 additions & 0 deletions
13
upload/admin/controller/extension/payment/paynl_applepay.php
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,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'; | ||
} |
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 |
---|---|---|
|
@@ -45,6 +45,7 @@ | |
'afterpay', | ||
'afterpayem', | ||
'amex', | ||
'applepay', | ||
'billink', | ||
'bitcoin', | ||
'capayable', | ||
|
4 changes: 4 additions & 0 deletions
4
upload/admin/language/en-gb/extension/payment/paynl_applepay.php
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,4 @@ | ||
<?php | ||
include 'paynl3.php'; | ||
// Heading | ||
$_['heading_title'] = 'Pay.nl - Apple Pay'; |
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 |
---|---|---|
|
@@ -47,6 +47,7 @@ | |
'afterpay', | ||
'afterpayem', | ||
'amex', | ||
'applepay', | ||
'billink', | ||
'bitcoin', | ||
'capayable', | ||
|
4 changes: 4 additions & 0 deletions
4
upload/admin/language/nl-nl/extension/payment/paynl_applepay.php
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,4 @@ | ||
<?php | ||
include 'paynl3.php'; | ||
// Heading | ||
$_['heading_title'] = 'Pay.nl - Apple Pay'; |
11 changes: 11 additions & 0 deletions
11
upload/catalog/controller/extension/payment/paynl_applepay.php
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,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'; | ||
} |
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,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'; | ||
} |