Skip to content
This repository was archived by the owner on May 11, 2023. It is now read-only.

Commit 771d994

Browse files
authored
Merge pull request #1 from paynl/feature/PLUG-1661
PLUG-1661 - Added Multple Payment Methods
2 parents 9d6eecd + 4f9cd51 commit 771d994

113 files changed

Lines changed: 1030 additions & 59 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Pay/Controller/Payment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function startTransaction() {
7777
$apiStart->setDescription($order_info['order_id']);
7878
$apiStart->setExtra1($order_info['order_id']);
7979
$phpVersion = substr(phpversion(), 0, 3);
80-
$apiStart->setObject(substr('opencart1 3.4.8 | ' . VERSION . ' | ' . $phpVersion, 0, 64));
80+
$apiStart->setObject(substr('opencart1 3.5.0 | ' . VERSION . ' | ' . $phpVersion, 0, 64));
8181

8282
// Klantdata verzamelen en meesturen
8383
$strAddress = $order_info['shipping_address_1'] . ' ' . $order_info['shipping_address_2'];
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
$dir = dirname(dirname(dirname(dirname(__FILE__))));
4+
$autoload = $dir . '/Pay/Autoload.php';
5+
6+
require_once $autoload;
7+
8+
class ControllerPaymentPaynlBiercheque extends Pay_Controller_Admin
9+
{
10+
protected $_paymentOptionId = 2622;
11+
protected $_paymentMethodName = 'paynl_biercheque';
12+
protected $_defaultLabel = 'Biercheque';
13+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
$dir = dirname(dirname(dirname(dirname(__FILE__))));
4+
$autoload = $dir . '/Pay/Autoload.php';
5+
6+
require_once $autoload;
7+
8+
class ControllerPaymentPaynlBiller extends Pay_Controller_Admin
9+
{
10+
protected $_paymentOptionId = 2931;
11+
protected $_paymentMethodName = 'paynl_biller';
12+
protected $_defaultLabel = 'Biller';
13+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
$dir = dirname(dirname(dirname(dirname(__FILE__))));
4+
$autoload = $dir . '/Pay/Autoload.php';
5+
6+
require_once $autoload;
7+
8+
class ControllerPaymentPaynlBioscoopbon extends Pay_Controller_Admin
9+
{
10+
protected $_paymentOptionId = 2133;
11+
protected $_paymentMethodName = 'paynl_bioscoopbon';
12+
protected $_defaultLabel = 'Bioscoopbon';
13+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
$dir = dirname(dirname(dirname(dirname(__FILE__))));
4+
$autoload = $dir . '/Pay/Autoload.php';
5+
6+
require_once $autoload;
7+
8+
class ControllerPaymentPaynlBlik extends Pay_Controller_Admin
9+
{
10+
protected $_paymentOptionId = 2856;
11+
protected $_paymentMethodName = 'paynl_blik';
12+
protected $_defaultLabel = 'Blik';
13+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
$dir = dirname(dirname(dirname(dirname(__FILE__))));
4+
$autoload = $dir . '/Pay/Autoload.php';
5+
6+
require_once $autoload;
7+
8+
class ControllerPaymentPaynlBloemencadeaukaart extends Pay_Controller_Admin
9+
{
10+
protected $_paymentOptionId = 2607;
11+
protected $_paymentMethodName = 'paynl_bloemencadeaukaart';
12+
protected $_defaultLabel = 'Bloemen Cadeaukaart';
13+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
$dir = dirname(dirname(dirname(dirname(__FILE__))));
4+
$autoload = $dir . '/Pay/Autoload.php';
5+
6+
require_once $autoload;
7+
8+
class ControllerPaymentPaynlBoekenbon extends Pay_Controller_Admin
9+
{
10+
protected $_paymentOptionId = 2838;
11+
protected $_paymentMethodName = 'paynl_boekenbon';
12+
protected $_defaultLabel = 'Boekenbon';
13+
}

admin/controller/payment/paynl_clickandbuy.php

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
$dir = dirname(dirname(dirname(dirname(__FILE__))));
4+
$autoload = $dir . '/Pay/Autoload.php';
5+
6+
require_once $autoload;
7+
8+
class ControllerPaymentPaynlDecadeaukaart extends Pay_Controller_Admin
9+
{
10+
protected $_paymentOptionId = 2601;
11+
protected $_paymentMethodName = 'paynl_decadeaukaart';
12+
protected $_defaultLabel = 'De Cadeaukaart';
13+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
$dir = dirname(dirname(dirname(dirname(__FILE__))));
4+
$autoload = $dir . '/Pay/Autoload.php';
5+
6+
require_once $autoload;
7+
8+
class ControllerPaymentPaynlDinerbon extends Pay_Controller_Admin
9+
{
10+
protected $_paymentOptionId = 2670;
11+
protected $_paymentMethodName = 'paynl_dinerbon';
12+
protected $_defaultLabel = 'Dinerbon';
13+
}

0 commit comments

Comments
 (0)