Skip to content

Commit

Permalink
Merge pull request #7 from max-geraci/master
Browse files Browse the repository at this point in the history
Add payment method KlarnaKP, static image URL's and change public name voor Billink and in3
  • Loading branch information
Wouter Jonker authored Nov 8, 2019
2 parents 095c6fc + 95639ce commit 98dd3d0
Show file tree
Hide file tree
Showing 15 changed files with 56 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ With this plug-in by Pay.nl you can easily add all desired payment methods to yo
Bank Payments | Creditcards | Gift cards & Vouchers | Pay by invoice | Others |
:-----------: | :-----------: | :-----------: | :-----------: | :-----------: |
iDEAL + QR |Visa | VVV Cadeaukaart | AfterPay | PayPal |
Bancontact + QR | Mastercard | Webshop Giftcard | Billink | WeChatPay |
Bancontact + QR | Mastercard | Webshop Giftcard | Achteraf betalen via Billink | WeChatPay |
Giropay |American Express | FashionCheque |Focum AchterafBetalen.nl | AmazonPay |
MyBank | Carte Bancaire | Podium Cadeaukaart | Capayable Achteraf Betalen | Cashly |
SOFORT | PostePay | Gezondheidsbon | Capayable Gespreid betalen | Pay Fixed Price (phone) |
SOFORT | PostePay | Gezondheidsbon | in3 keer betalen, 0% rente | Pay Fixed Price (phone) |
Maestro | Dankort | Fashion Giftcard | Klarna | Instore Payments (POS) |
Bank Transfer | Cartasi | GivaCard | SprayPay | Przelewy24 |
| Tikkie | | YourGift | Creditclick | Apple Pay |
Expand Down
2 changes: 1 addition & 1 deletion upload/Pay/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public function getMethod($address = false, $total = false)
$icon = "";
if ($this->config->get('payment_' . $this->_paymentMethodName . '_display_icon') != '') {
$iconSize = $this->config->get('payment_' . $this->_paymentMethodName . '_display_icon') ;
$icon = "<img class='paynl_icon' src=\"https://www.pay.nl/images/payment_profiles/$iconSize/$this->_paymentOptionId.png\"> ";
$icon = "<img class='paynl_icon' src=\"https://static.pay.nl/payment_profiles/$iconSize/$this->_paymentOptionId.png\"> ";
}
$data = array(
'code' => $this->_paymentMethodName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ class ControllerExtensionPaymentPaynlBillink extends Pay_Controller_Admin
protected $_paymentOptionId = 1672;
protected $_paymentMethodName = 'paynl_billink';

protected $_defaultLabel = 'Billink';
protected $_defaultLabel = 'Achteraf betalen via Billink';
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ class ControllerExtensionPaymentPaynlCapayableGespreid extends Pay_Controller_Ad
protected $_paymentOptionId = 1813;
protected $_paymentMethodName = 'paynl_capayablegespreid';

protected $_defaultLabel = 'Capayable Gespreid Betalen';
protected $_defaultLabel = 'in3 keer betalen, 0% rente';
}
13 changes: 13 additions & 0 deletions upload/admin/controller/extension/payment/paynl_klarnakp.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 ControllerExtensionPaymentPaynlKlarnakp extends Pay_Controller_Admin
{
protected $_paymentOptionId = 2265;
protected $_paymentMethodName = 'paynl_klarnakp';

protected $_defaultLabel = 'KlarnaKP';
}
3 changes: 2 additions & 1 deletion upload/admin/language/en-gb/extension/payment/paynl3.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

$_['text_extension'] = 'Pay.nl';

$paynl_logo = '<a href="https://www.pay.nl" target="paynl"><img src="view/image/payment/paynl.png" alt="Pay.nl" title="Pay.nl" /></a>';
$paynl_logo = '<a href="https://www.pay.nl" target="paynl"><img src="https://static.pay.nl/generic/images/50x50/logo.png" alt="Pay.nl" title="Pay.nl" /></a>';

$arrPaymentMethods = array(
'afterpay',
Expand All @@ -62,6 +62,7 @@
'givacard',
'ideal',
'incasso',
'klarnakp',
'maestro',
'mistercash',
'mybank',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
include 'paynl3.php';
// Heading
$_['heading_title'] = 'Pay.nl - Billink';
$_['heading_title'] = 'Pay.nl - Achteraf betalen via Billink';
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
include 'paynl3.php';
// Heading
$_['heading_title'] = 'Pay.nl - Capayable Pay in Installments';
$_['heading_title'] = 'Pay.nl - in3 keer betalen, 0% rente';
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php
include 'paynl3.php';
// Heading
$_['heading_title'] = 'Pay.nl - KlarnaKP';
3 changes: 2 additions & 1 deletion upload/admin/language/nl-nl/extension/payment/paynl3.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

$_['text_extension'] = 'Pay.nl';

$paynl_logo = '<a href="https://www.pay.nl" target="paynl"><img src="view/image/payment/paynl.png" alt="Pay.nl" title="Pay.nl" /></a>';
$paynl_logo = '<a href="https://www.pay.nl" target="paynl"><img src="https://static.pay.nl/generic/images/50x50/logo.png" alt="Pay.nl" title="Pay.nl" /></a>';

$arrPaymentMethods = array(
'afterpay',
Expand All @@ -64,6 +64,7 @@
'givacard',
'ideal',
'incasso',
'klarnakp',
'maestro',
'mistercash',
'mybank',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
include 'paynl3.php';
// Heading
$_['heading_title'] = 'Pay.nl - Billink';
$_['heading_title'] = 'Pay.nl - Achteraf betalen via Billink';
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
include 'paynl3.php';
// Heading
$_['heading_title'] = 'Pay.nl - Capayable Gespreid Betalen';
$_['heading_title'] = 'Pay.nl - in3 keer betalen, 0% rente';
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php
include 'paynl3.php';
// Heading
$_['heading_title'] = 'Pay.nl - KlarnaKP';
11 changes: 11 additions & 0 deletions upload/catalog/controller/extension/payment/paynl_klarnakp.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 ControllerExtensionPaymentPaynlKlarnakp extends Pay_Controller_Payment
{
protected $_paymentOptionId = 2265;
protected $_paymentMethodName = 'paynl_klarnakp';
}
11 changes: 11 additions & 0 deletions upload/catalog/model/extension/payment/paynl_klarnakp.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 ModelExtensionPaymentPaynlKlarnakp extends Pay_Model
{
protected $_paymentOptionId = 2265;
protected $_paymentMethodName = 'paynl_klarnakp';
}

0 comments on commit 98dd3d0

Please sign in to comment.