Passed
Push — master ( a383a5...8bc95e )
by
unknown
02:43 queued 12s
created
Model/Source/CreditcardTypes.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,13 +39,13 @@
 block discarded – undo
39 39
      * @var array
40 40
      */
41 41
     protected static $aTypes = [
42
-        'visa'              => array('name' => 'Visa',                  'cardtype' => 'V', 'cvc_length' => 3),
43
-        'mastercard'        => array('name' => 'Mastercard',            'cardtype' => 'M', 'cvc_length' => 3),
44
-        'americanexpress'   => array('name' => 'American Express',      'cardtype' => 'A', 'cvc_length' => 4),
45
-        'dinersclub'        => array('name' => 'Diners Club',           'cardtype' => 'D', 'cvc_length' => 3),
46
-        'jcb'               => array('name' => 'JCB',                   'cardtype' => 'J', 'cvc_length' => 3),
42
+        'visa'              => array('name' => 'Visa', 'cardtype' => 'V', 'cvc_length' => 3),
43
+        'mastercard'        => array('name' => 'Mastercard', 'cardtype' => 'M', 'cvc_length' => 3),
44
+        'americanexpress'   => array('name' => 'American Express', 'cardtype' => 'A', 'cvc_length' => 4),
45
+        'dinersclub'        => array('name' => 'Diners Club', 'cardtype' => 'D', 'cvc_length' => 3),
46
+        'jcb'               => array('name' => 'JCB', 'cardtype' => 'J', 'cvc_length' => 3),
47 47
         'maestroint'        => array('name' => 'Maestro International', 'cardtype' => 'O', 'cvc_length' => 3),
48
-        'cartebleue'        => array('name' => 'Carte Bleue',           'cardtype' => 'B', 'cvc_length' => 3),
48
+        'cartebleue'        => array('name' => 'Carte Bleue', 'cardtype' => 'B', 'cvc_length' => 3),
49 49
     ];
50 50
 
51 51
     /**
Please login to merge, or discard this patch.
Model/Plugins/MethodList.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
     protected function removeBannedPaymentMethods($aPaymentMethods, Quote $oQuote)
206 206
     {
207 207
         $aBannedMethos = $this->getBannedPaymentMethods($oQuote);
208
-        for($i = 0; $i < count($aPaymentMethods); $i++) {
208
+        for ($i = 0; $i < count($aPaymentMethods); $i++) {
209 209
             $sCode = $aPaymentMethods[$i]->getCode();
210 210
             if (array_key_exists($sCode, $aBannedMethos) !== false) {
211 211
                 $iBannedUntil = strtotime($aBannedMethos[$sCode]);
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
         $aWhitelist = $this->checkoutSession->getPayonePaymentWhitelist();
229 229
         if (!empty($aWhitelist)) {
230 230
             $iCount = count($aPaymentMethods);
231
-            for($i = 0; $i < $iCount; $i++) {
231
+            for ($i = 0; $i < $iCount; $i++) {
232 232
                 if (array_search($aPaymentMethods[$i]->getCode(), $aWhitelist) === false) {
233 233
                     unset($aPaymentMethods[$i]);
234 234
                 }
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
      */
246 246
     public function removeAmazonPay($aPaymentMethods)
247 247
     {
248
-        for($i = 0; $i < count($aPaymentMethods); $i++) {
248
+        for ($i = 0; $i < count($aPaymentMethods); $i++) {
249 249
             if (isset($aPaymentMethods[$i]) && $aPaymentMethods[$i]->getCode() == PayoneConfig::METHOD_AMAZONPAY) {
250 250
                 unset($aPaymentMethods[$i]);
251 251
             }
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
             PayoneConfig::METHOD_KLARNA_DEBIT,
269 269
             PayoneConfig::METHOD_KLARNA_INSTALLMENT
270 270
         ];
271
-        for($i = 0; $i < count($aPaymentMethods); $i++) {
271
+        for ($i = 0; $i < count($aPaymentMethods); $i++) {
272 272
             if (isset($aPaymentMethods[$i])) {
273 273
                 if ($aPaymentMethods[$i]->getCode() == PayoneConfig::METHOD_KLARNA_BASE) {
274 274
                     $iKeyKlarna = $i;
Please login to merge, or discard this patch.
Service/V1/KlarnaHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
                 if ($aResponse['status'] == 'OK') {
110 110
                     $oResponse->setData('clientToken', $aResponse['add_paydata[client_token]']);
111 111
                     $blSuccess = true;
112
-                } elseif($aResponse['status'] == 'ERROR') {
112
+                } elseif ($aResponse['status'] == 'ERROR') {
113 113
                     if ($aResponse['errorcode'] == '981') {
114 114
                         $oResponse->setData('errormessage', __('Payment method is not available anymore'));
115 115
                     } else {
Please login to merge, or discard this patch.
Setup/Tables/RatepayProfileConfig.php 1 patch
Spacing   +59 added lines, -59 removed lines patch added patch discarded remove patch
@@ -43,65 +43,65 @@
 block discarded – undo
43 43
     protected static $aTableData = [
44 44
         'title' => self::TABLE_RATEPAY_PROFILE_CONFIG,
45 45
         'columns' => [
46
-            'shop_id'                               => ['type' => Table::TYPE_INTEGER,  'length' => null,   'option' => ['identity' => true, 'unsigned' => true, 'nullable' => false, 'primary' => true]],
47
-            'profile_id'                            => ['type' => Table::TYPE_TEXT,     'length' => 32,     'option' => ['nullable' => true, 'default' => NULL]],
48
-            'merchant_name'                         => ['type' => Table::TYPE_TEXT,     'length' => 32,     'option' => ['nullable' => true, 'default' => NULL]],
49
-            'merchant_status'                       => ['type' => Table::TYPE_INTEGER,  'length' => 2,      'option' => ['nullable' => true, 'default' => NULL]],
50
-            'shop_name'                             => ['type' => Table::TYPE_TEXT,     'length' => 32,     'option' => ['nullable' => true, 'default' => NULL]],
51
-            'name'                                  => ['type' => Table::TYPE_TEXT,     'length' => 32,     'option' => ['nullable' => true, 'default' => NULL]],
52
-            'currency'                              => ['type' => Table::TYPE_TEXT,     'length' => 32,     'option' => ['nullable' => true, 'default' => NULL]],
53
-            'type'                                  => ['type' => Table::TYPE_TEXT,     'length' => 32,     'option' => ['nullable' => true, 'default' => NULL]],
54
-            'activation_status_elv'                 => ['type' => Table::TYPE_INTEGER,  'length' => 2,      'option' => ['nullable' => true, 'default' => NULL]],
55
-            'activation_status_installment'         => ['type' => Table::TYPE_INTEGER,  'length' => 2,      'option' => ['nullable' => true, 'default' => NULL]],
56
-            'activation_status_invoice'             => ['type' => Table::TYPE_INTEGER,  'length' => 2,      'option' => ['nullable' => true, 'default' => NULL]],
57
-            'activation_status_prepayment'          => ['type' => Table::TYPE_INTEGER,  'length' => 2,      'option' => ['nullable' => true, 'default' => NULL]],
58
-            'amount_min_longrun'                    => ['type' => Table::TYPE_DECIMAL,  'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
59
-            'b2b_pq_full'                           => ['type' => Table::TYPE_INTEGER,  'length' => 1,      'option' => ['nullable' => true, 'default' => NULL]],
60
-            'b2b_pq_light'                          => ['type' => Table::TYPE_INTEGER,  'length' => 1,      'option' => ['nullable' => true, 'default' => NULL]],
61
-            'b2b_elv'                               => ['type' => Table::TYPE_INTEGER,  'length' => 1,      'option' => ['nullable' => true, 'default' => NULL]],
62
-            'b2b_installment'                       => ['type' => Table::TYPE_INTEGER,  'length' => 1,      'option' => ['nullable' => true, 'default' => NULL]],
63
-            'b2b_invoice'                           => ['type' => Table::TYPE_INTEGER,  'length' => 1,      'option' => ['nullable' => true, 'default' => NULL]],
64
-            'b2b_prepayment'                        => ['type' => Table::TYPE_INTEGER,  'length' => 1,      'option' => ['nullable' => true, 'default' => NULL]],
65
-            'country_code_billing'                  => ['type' => Table::TYPE_TEXT,     'length' => 32,     'option' => ['nullable' => true, 'default' => NULL]],
66
-            'country_code_delivery'                 => ['type' => Table::TYPE_TEXT,     'length' => 32,     'option' => ['nullable' => true, 'default' => NULL]],
67
-            'delivery_address_pq_full'              => ['type' => Table::TYPE_INTEGER,  'length' => 1,      'option' => ['nullable' => true, 'default' => NULL]],
68
-            'delivery_address_pq_light'             => ['type' => Table::TYPE_INTEGER,  'length' => 1,      'option' => ['nullable' => true, 'default' => NULL]],
69
-            'delivery_address_elv'                  => ['type' => Table::TYPE_INTEGER,  'length' => 1,      'option' => ['nullable' => true, 'default' => NULL]],
70
-            'delivery_address_installment'          => ['type' => Table::TYPE_INTEGER,  'length' => 1,      'option' => ['nullable' => true, 'default' => NULL]],
71
-            'delivery_address_invoice'              => ['type' => Table::TYPE_INTEGER,  'length' => 1,      'option' => ['nullable' => true, 'default' => NULL]],
72
-            'delivery_address_prepayment'           => ['type' => Table::TYPE_INTEGER,  'length' => 1,      'option' => ['nullable' => true, 'default' => NULL]],
73
-            'device_fingerprint_snippet_id'         => ['type' => Table::TYPE_TEXT,     'length' => 32,     'option' => ['nullable' => true, 'default' => NULL]],
74
-            'eligibility_device_fingerprint'        => ['type' => Table::TYPE_INTEGER,  'length' => 1,      'option' => ['nullable' => true, 'default' => NULL]],
75
-            'eligibility_ratepay_elv'               => ['type' => Table::TYPE_INTEGER,  'length' => 1,      'option' => ['nullable' => true, 'default' => NULL]],
76
-            'eligibility_ratepay_installment'       => ['type' => Table::TYPE_INTEGER,  'length' => 1,      'option' => ['nullable' => true, 'default' => NULL]],
77
-            'eligibility_ratepay_invoice'           => ['type' => Table::TYPE_INTEGER,  'length' => 1,      'option' => ['nullable' => true, 'default' => NULL]],
78
-            'eligibility_ratepay_pq_full'           => ['type' => Table::TYPE_INTEGER,  'length' => 1,      'option' => ['nullable' => true, 'default' => NULL]],
79
-            'eligibility_ratepay_pq_light'          => ['type' => Table::TYPE_INTEGER,  'length' => 1,      'option' => ['nullable' => true, 'default' => NULL]],
80
-            'eligibility_ratepay_prepayment'        => ['type' => Table::TYPE_INTEGER,  'length' => 1,      'option' => ['nullable' => true, 'default' => NULL]],
81
-            'interest_rate_merchant_towards_bank'   => ['type' => Table::TYPE_DECIMAL,  'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
82
-            'interestrate_default'                  => ['type' => Table::TYPE_DECIMAL,  'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
83
-            'interestrate_max'                      => ['type' => Table::TYPE_DECIMAL,  'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
84
-            'interestrate_min'                      => ['type' => Table::TYPE_DECIMAL,  'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
85
-            'min_difference_dueday'                 => ['type' => Table::TYPE_INTEGER,  'length' => 2,      'option' => ['nullable' => true, 'default' => NULL]],
86
-            'month_allowed'                         => ['type' => Table::TYPE_TEXT,     'length' => 32,     'option' => ['nullable' => true, 'default' => NULL]],
87
-            'month_longrun'                         => ['type' => Table::TYPE_INTEGER,  'length' => 2,      'option' => ['nullable' => true, 'default' => NULL]],
88
-            'month_number_max'                      => ['type' => Table::TYPE_INTEGER,  'length' => 2,      'option' => ['nullable' => true, 'default' => NULL]],
89
-            'month_number_min'                      => ['type' => Table::TYPE_INTEGER,  'length' => 2,      'option' => ['nullable' => true, 'default' => NULL]],
90
-            'payment_amount'                        => ['type' => Table::TYPE_DECIMAL,  'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
91
-            'payment_firstday'                      => ['type' => Table::TYPE_INTEGER,  'length' => 2,      'option' => ['nullable' => true, 'default' => NULL]],
92
-            'payment_lastrate'                      => ['type' => Table::TYPE_DECIMAL,  'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
93
-            'rate_min_longrun'                      => ['type' => Table::TYPE_DECIMAL,  'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
94
-            'rate_min_normal'                       => ['type' => Table::TYPE_DECIMAL,  'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
95
-            'service_charge'                        => ['type' => Table::TYPE_DECIMAL,  'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
96
-            'tx_limit_elv_max'                      => ['type' => Table::TYPE_DECIMAL,  'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
97
-            'tx_limit_elv_min'                      => ['type' => Table::TYPE_DECIMAL,  'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
98
-            'tx_limit_installment_max'              => ['type' => Table::TYPE_DECIMAL,  'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
99
-            'tx_limit_installment_min'              => ['type' => Table::TYPE_DECIMAL,  'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
100
-            'tx_limit_invoice_max'                  => ['type' => Table::TYPE_DECIMAL,  'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
101
-            'tx_limit_invoice_min'                  => ['type' => Table::TYPE_DECIMAL,  'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
102
-            'tx_limit_prepayment_max'               => ['type' => Table::TYPE_DECIMAL,  'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
103
-            'tx_limit_prepayment_min'               => ['type' => Table::TYPE_DECIMAL,  'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
104
-            'valid_payment_firstdays'               => ['type' => Table::TYPE_TEXT,     'length' => 32,     'option' => ['nullable' => true, 'default' => NULL]],
46
+            'shop_id'                               => ['type' => Table::TYPE_INTEGER, 'length' => null, 'option' => ['identity' => true, 'unsigned' => true, 'nullable' => false, 'primary' => true]],
47
+            'profile_id'                            => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => ['nullable' => true, 'default' => NULL]],
48
+            'merchant_name'                         => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => ['nullable' => true, 'default' => NULL]],
49
+            'merchant_status'                       => ['type' => Table::TYPE_INTEGER, 'length' => 2, 'option' => ['nullable' => true, 'default' => NULL]],
50
+            'shop_name'                             => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => ['nullable' => true, 'default' => NULL]],
51
+            'name'                                  => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => ['nullable' => true, 'default' => NULL]],
52
+            'currency'                              => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => ['nullable' => true, 'default' => NULL]],
53
+            'type'                                  => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => ['nullable' => true, 'default' => NULL]],
54
+            'activation_status_elv'                 => ['type' => Table::TYPE_INTEGER, 'length' => 2, 'option' => ['nullable' => true, 'default' => NULL]],
55
+            'activation_status_installment'         => ['type' => Table::TYPE_INTEGER, 'length' => 2, 'option' => ['nullable' => true, 'default' => NULL]],
56
+            'activation_status_invoice'             => ['type' => Table::TYPE_INTEGER, 'length' => 2, 'option' => ['nullable' => true, 'default' => NULL]],
57
+            'activation_status_prepayment'          => ['type' => Table::TYPE_INTEGER, 'length' => 2, 'option' => ['nullable' => true, 'default' => NULL]],
58
+            'amount_min_longrun'                    => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
59
+            'b2b_pq_full'                           => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]],
60
+            'b2b_pq_light'                          => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]],
61
+            'b2b_elv'                               => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]],
62
+            'b2b_installment'                       => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]],
63
+            'b2b_invoice'                           => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]],
64
+            'b2b_prepayment'                        => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]],
65
+            'country_code_billing'                  => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => ['nullable' => true, 'default' => NULL]],
66
+            'country_code_delivery'                 => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => ['nullable' => true, 'default' => NULL]],
67
+            'delivery_address_pq_full'              => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]],
68
+            'delivery_address_pq_light'             => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]],
69
+            'delivery_address_elv'                  => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]],
70
+            'delivery_address_installment'          => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]],
71
+            'delivery_address_invoice'              => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]],
72
+            'delivery_address_prepayment'           => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]],
73
+            'device_fingerprint_snippet_id'         => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => ['nullable' => true, 'default' => NULL]],
74
+            'eligibility_device_fingerprint'        => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]],
75
+            'eligibility_ratepay_elv'               => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]],
76
+            'eligibility_ratepay_installment'       => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]],
77
+            'eligibility_ratepay_invoice'           => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]],
78
+            'eligibility_ratepay_pq_full'           => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]],
79
+            'eligibility_ratepay_pq_light'          => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]],
80
+            'eligibility_ratepay_prepayment'        => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]],
81
+            'interest_rate_merchant_towards_bank'   => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
82
+            'interestrate_default'                  => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
83
+            'interestrate_max'                      => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
84
+            'interestrate_min'                      => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
85
+            'min_difference_dueday'                 => ['type' => Table::TYPE_INTEGER, 'length' => 2, 'option' => ['nullable' => true, 'default' => NULL]],
86
+            'month_allowed'                         => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => ['nullable' => true, 'default' => NULL]],
87
+            'month_longrun'                         => ['type' => Table::TYPE_INTEGER, 'length' => 2, 'option' => ['nullable' => true, 'default' => NULL]],
88
+            'month_number_max'                      => ['type' => Table::TYPE_INTEGER, 'length' => 2, 'option' => ['nullable' => true, 'default' => NULL]],
89
+            'month_number_min'                      => ['type' => Table::TYPE_INTEGER, 'length' => 2, 'option' => ['nullable' => true, 'default' => NULL]],
90
+            'payment_amount'                        => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
91
+            'payment_firstday'                      => ['type' => Table::TYPE_INTEGER, 'length' => 2, 'option' => ['nullable' => true, 'default' => NULL]],
92
+            'payment_lastrate'                      => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
93
+            'rate_min_longrun'                      => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
94
+            'rate_min_normal'                       => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
95
+            'service_charge'                        => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
96
+            'tx_limit_elv_max'                      => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
97
+            'tx_limit_elv_min'                      => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
98
+            'tx_limit_installment_max'              => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
99
+            'tx_limit_installment_min'              => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
100
+            'tx_limit_invoice_max'                  => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
101
+            'tx_limit_invoice_min'                  => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
102
+            'tx_limit_prepayment_max'               => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
103
+            'tx_limit_prepayment_min'               => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]],
104
+            'valid_payment_firstdays'               => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => ['nullable' => true, 'default' => NULL]],
105 105
         ],
106 106
         'comment' => 'Ratepay profile configuration'
107 107
     ];
Please login to merge, or discard this patch.
Observer/Transactionstatus/Appointed.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
         }
128 128
 
129 129
         // preauthorization-orders and advance payment should not create an invoice
130
-        if ($oOrder->getPayoneAuthmode() !== 'authorization' || $oOrder->getPayment()->getMethodInstance()->getCode() === PayoneConfig::METHOD_ADVANCE_PAYMENT || !$oOrder->canInvoice()){
130
+        if ($oOrder->getPayoneAuthmode() !== 'authorization' || $oOrder->getPayment()->getMethodInstance()->getCode() === PayoneConfig::METHOD_ADVANCE_PAYMENT || !$oOrder->canInvoice()) {
131 131
             return;
132 132
         }
133 133
 
Please login to merge, or discard this patch.
Model/Api/Invoice.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 
163 163
         if ($aPositions === false || $blFirstCapture === true || $blDebit === true) {
164 164
             $this->addShippingItem($oOrder, $aPositions, $blDebit, $dShippingCosts); // add shipping invoice params to request
165
-            $this->addGiftCardItem($oOrder);  // add gift card invoice params to request
165
+            $this->addGiftCardItem($oOrder); // add gift card invoice params to request
166 166
             $this->addDiscountItem($oOrder, $aPositions, $blDebit); // add discount invoice params to request
167 167
             $this->addAmastyGiftcards($oOrder, $aPositions, $blDebit); // add amasty giftcard invoice params to request
168 168
         }
@@ -203,11 +203,11 @@  discard block
 block discarded – undo
203 203
     {
204 204
         $giftCards = json_decode($oOrder->getData('gift_cards'), true);
205 205
 
206
-        if(empty($giftCards) || !is_array($giftCards)) {
206
+        if (empty($giftCards) || !is_array($giftCards)) {
207 207
             return;
208 208
         }
209 209
 
210
-        foreach($giftCards as $giftCard) {
210
+        foreach ($giftCards as $giftCard) {
211 211
             $giftCardAmount = $this->getGiftCardAmount($giftCard);
212 212
             $this->addInvoicePosition($giftCard['c'], $giftCardAmount, 'voucher', 1, 'Giftcard', 0);
213 213
         }
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
     {
371 371
         if (fmod(floatval($dItemAmount), 1.0) > 0) { // input does not represent an integer
372 372
             $sErrorMessage = "Unable to use floating point values for item amounts! Parameter was: ";
373
-            throw new \InvalidArgumentException($sErrorMessage . strval($dItemAmount), 1);
373
+            throw new \InvalidArgumentException($sErrorMessage.strval($dItemAmount), 1);
374 374
         } else { // return the integer value
375 375
             return intval($dItemAmount);
376 376
         }
Please login to merge, or discard this patch.
Model/Api/Payolution/PrivacyDeclaration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
     protected function getAcceptanceTextFromPayolution($sCompany)
136 136
     {
137 137
         $sUrl = $this->sAcceptanceBaseUrl.'?mId='.base64_encode($sCompany).'&lang='.$this->shopHelper->getLocale();
138
-        $cacheKey = 'PAYONE_ACCEPTANCE_TEXT_' . sha1($sUrl);
138
+        $cacheKey = 'PAYONE_ACCEPTANCE_TEXT_'.sha1($sUrl);
139 139
         $cache = $this->cache->load($cacheKey);
140 140
 
141 141
         if ($cache !== false) {
Please login to merge, or discard this patch.
Model/Source/ApplePayTypes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@
 block discarded – undo
37 37
      * @var array
38 38
      */
39 39
     protected static $aTypes = [
40
-        ['value' => 'visa',       'label' => 'Visa'],
40
+        ['value' => 'visa', 'label' => 'Visa'],
41 41
         ['value' => 'masterCard', 'label' => 'Mastercard'],
42
-        ['value' => 'girocard',   'label' => 'Girocard']
42
+        ['value' => 'girocard', 'label' => 'Girocard']
43 43
     ];
44 44
 
45 45
     /**
Please login to merge, or discard this patch.
Model/ApplePay/SessionHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      *
33 33
      * @var string
34 34
      */
35
-    protected $applePaySessionUrl =  "https://apple-pay-gateway-cert.apple.com/paymentservices/startSession";
35
+    protected $applePaySessionUrl = "https://apple-pay-gateway-cert.apple.com/paymentservices/startSession";
36 36
 
37 37
     /**
38 38
      * Constructor
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 
124 124
         $sKeyPass = $this->shopHelper->getConfigParam("private_key_password", PayoneConfig::METHOD_APPLEPAY, "payment");
125 125
         if (!empty($sKeyPass)) {
126
-            $this->curl->setOption( CURLOPT_KEYPASSWD, $sKeyPass);
126
+            $this->curl->setOption(CURLOPT_KEYPASSWD, $sKeyPass);
127 127
         }
128 128
 
129 129
         $this->curl->post($this->applePaySessionUrl, json_encode($aRequest));
Please login to merge, or discard this patch.