@@ -43,65 +43,65 @@ |
||
| 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 | ]; |
@@ -127,7 +127,7 @@ |
||
| 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 | |
@@ -135,7 +135,7 @@ |
||
| 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) { |
@@ -37,9 +37,9 @@ |
||
| 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 | /** |
@@ -32,7 +32,7 @@ discard block |
||
| 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 |
||
| 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)); |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | $html = '<td class="value">'; |
| 72 | 72 | $html .= $this->_getElementHtml($element); |
| 73 | 73 | if ($element->getComment()) { |
| 74 | - $html .= '<span style="color: red;"><strong>' . $element->getComment() . '</strong></span>'; |
|
| 74 | + $html .= '<span style="color: red;"><strong>'.$element->getComment().'</strong></span>'; |
|
| 75 | 75 | } |
| 76 | 76 | $html .= '</td>'; |
| 77 | 77 | return $html; |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | private function addGenderField(&$jsLayout) |
| 111 | 111 | { |
| 112 | 112 | $options = $this->getGenderOptions() ?: []; |
| 113 | - $enabled = $this->isEnabled(); |
|
| 113 | + $enabled = $this->isEnabled(); |
|
| 114 | 114 | if (!empty($options) && $enabled) { |
| 115 | 115 | $jsLayout['gender'] = [ |
| 116 | 116 | 'component' => 'Magento_Ui/js/form/element/select', |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | */ |
| 140 | 140 | private function addBirthdayField(&$jsLayout) |
| 141 | 141 | { |
| 142 | - $enabled = $this->isEnabled(); |
|
| 142 | + $enabled = $this->isEnabled(); |
|
| 143 | 143 | if ($enabled) { |
| 144 | 144 | $jsLayout['dob'] = [ |
| 145 | 145 | 'component' => 'Magento_Ui/js/form/element/date', |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | |
| 197 | 197 | $attribute = $this->_getAttribute('gender'); |
| 198 | 198 | if ($attribute) { |
| 199 | - $options = $attribute->getOptions() ?: []; |
|
| 199 | + $options = $attribute->getOptions() ?: []; |
|
| 200 | 200 | |
| 201 | 201 | foreach ($options as $option) { |
| 202 | 202 | $optionsData[] = [ |
@@ -124,14 +124,14 @@ |
||
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | $this->addAddress($oAddress); |
| 127 | - if ($this->addressesChecked->wasAddressCheckedBefore($oAddress, $sType,true) === false) { |
|
| 127 | + if ($this->addressesChecked->wasAddressCheckedBefore($oAddress, $sType, true) === false) { |
|
| 128 | 128 | $aResponse = $this->send(); |
| 129 | 129 | if (isset($aResponse['score']) && $aResponse['score'] === 'U') { |
| 130 | 130 | $unknownDefault = $this->shopHelper->getConfigParam('unknown_value', 'creditrating', 'payone_protect'); |
| 131 | 131 | $aResponse['score'] = empty($unknownDefault) ? 'G' : $unknownDefault; |
| 132 | 132 | } |
| 133 | 133 | if ($aResponse['status'] == 'VALID') { |
| 134 | - $this->addressesChecked->addCheckedAddress($oAddress, $aResponse, $sType,true); |
|
| 134 | + $this->addressesChecked->addCheckedAddress($oAddress, $aResponse, $sType, true); |
|
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | return $aResponse; |
@@ -384,7 +384,7 @@ |
||
| 384 | 384 | { |
| 385 | 385 | if ($this->isBNPLActive()) { |
| 386 | 386 | return [ |
| 387 | - 'environment' => [ // "t" for TEST, "p" for PROD |
|
| 387 | + 'environment' => [// "t" for TEST, "p" for PROD |
|
| 388 | 388 | PayoneConfig::METHOD_BNPL_INVOICE => $this->requestHelper->getConfigParam('mode', PayoneConfig::METHOD_BNPL_INVOICE, 'payone_payment') == 'live' ? 'p' : 't', |
| 389 | 389 | PayoneConfig::METHOD_BNPL_INSTALLMENT => $this->requestHelper->getConfigParam('mode', PayoneConfig::METHOD_BNPL_INSTALLMENT, 'payone_payment') == 'live' ? 'p' : 't', |
| 390 | 390 | PayoneConfig::METHOD_BNPL_DEBIT => $this->requestHelper->getConfigParam('mode', PayoneConfig::METHOD_BNPL_DEBIT, 'payone_payment') == 'live' ? 'p' : 't', |