Skip to content

Commit

Permalink
MAG2-333 - Removed outdated payment methods
Browse files Browse the repository at this point in the history
  • Loading branch information
FatchipRobert committed Jan 20, 2025
1 parent 302d452 commit 5aee586
Show file tree
Hide file tree
Showing 36 changed files with 13 additions and 1,474 deletions.
6 changes: 0 additions & 6 deletions Helper/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,11 @@ class Payment extends \Payone\Core\Helper\Base
PayoneConfig::METHOD_ADVANCE_PAYMENT,
PayoneConfig::METHOD_INVOICE,
PayoneConfig::METHOD_OBT_SOFORTUEBERWEISUNG,
#PayoneConfig::METHOD_OBT_GIROPAY,#Giropay has been disabled, Paydirekt is now Giropay
PayoneConfig::METHOD_OBT_EPS,
PayoneConfig::METHOD_OBT_POSTFINANCE_EFINANCE,
PayoneConfig::METHOD_OBT_POSTFINANCE_CARD,
PayoneConfig::METHOD_OBT_IDEAL,
PayoneConfig::METHOD_OBT_PRZELEWY,
PayoneConfig::METHOD_BARZAHLEN,
PayoneConfig::METHOD_PAYDIREKT,
PayoneConfig::METHOD_SAFE_INVOICE,
PayoneConfig::METHOD_PAYOLUTION_INVOICE,
Expand All @@ -70,7 +68,6 @@ class Payment extends \Payone\Core\Helper\Base
PayoneConfig::METHOD_KLARNA_INSTALLMENT,
PayoneConfig::METHOD_WECHATPAY,
PayoneConfig::METHOD_RATEPAY_INVOICE,
PayoneConfig::METHOD_TRUSTLY,
PayoneConfig::METHOD_APPLEPAY,
PayoneConfig::METHOD_BANCONTACT,
PayoneConfig::METHOD_BNPL_INVOICE,
Expand All @@ -90,7 +87,6 @@ class Payment extends \Payone\Core\Helper\Base
PayoneConfig::METHOD_ADVANCE_PAYMENT => 'vor',
PayoneConfig::METHOD_INVOICE => 'rec',
PayoneConfig::METHOD_OBT_SOFORTUEBERWEISUNG => 'sb',
PayoneConfig::METHOD_OBT_GIROPAY => 'sb',
PayoneConfig::METHOD_OBT_EPS => 'sb',
PayoneConfig::METHOD_OBT_POSTFINANCE_EFINANCE => 'sb',
PayoneConfig::METHOD_OBT_POSTFINANCE_CARD => 'sb',
Expand All @@ -99,7 +95,6 @@ class Payment extends \Payone\Core\Helper\Base
PayoneConfig::METHOD_PAYPAL => 'wlt',
PayoneConfig::METHOD_PAYPALV2 => 'wlt',
PayoneConfig::METHOD_PAYDIREKT => 'wlt',
PayoneConfig::METHOD_BARZAHLEN => 'csh',
PayoneConfig::METHOD_SAFE_INVOICE => 'rec',
PayoneConfig::METHOD_PAYOLUTION_INVOICE => 'fnc',
PayoneConfig::METHOD_PAYOLUTION_DEBIT => 'fnc',
Expand All @@ -113,7 +108,6 @@ class Payment extends \Payone\Core\Helper\Base
PayoneConfig::METHOD_KLARNA_INSTALLMENT => 'wlt',
PayoneConfig::METHOD_WECHATPAY => 'wlt',
PayoneConfig::METHOD_RATEPAY_INVOICE => 'fnc',
PayoneConfig::METHOD_TRUSTLY => 'sb',
PayoneConfig::METHOD_APPLEPAY => 'wlt',
PayoneConfig::METHOD_BANCONTACT => 'sb',
];
Expand Down
2 changes: 0 additions & 2 deletions Model/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,11 @@ protected function getPayoneConfig()
'availableApplePayTypes' => $this->paymentHelper->getAvailableApplePayTypes(),
'fieldConfig' => $this->hostedIframeHelper->getHostedFieldConfig(),
'sepaCountries' => $this->countryHelper->getEnabledCountries(PayoneConfig::METHOD_DEBIT),
'trustlyCountries' => $this->countryHelper->getEnabledCountries(PayoneConfig::METHOD_TRUSTLY),
'hostedRequest' => $this->requestHelper->getHostedIframeRequest(),
'mandateManagementActive' => $this->paymentHelper->isMandateManagementActive(),
'checkCvc' => (bool)$this->paymentHelper->isCheckCvcActive(),
'ccMinValidity' => $this->requestHelper->getConfigParam('min_validity_period', PayoneConfig::METHOD_CREDITCARD, 'payone_payment'),
'requestBic' => (bool)$this->requestHelper->getConfigParam('request_bic', PayoneConfig::METHOD_DEBIT, 'payone_payment'),
'trustlyRequestBic' => (bool)$this->requestHelper->getConfigParam('request_bic', PayoneConfig::METHOD_TRUSTLY, 'payone_payment'),
'validateBankCode' => (bool)$this->requestHelper->getConfigParam('check_bankaccount', PayoneConfig::METHOD_DEBIT, 'payone_payment'),
'disableSafeInvoice' => (bool)$this->requestHelper->getConfigParam('disable_after_refusal', PayoneConfig::METHOD_SAFE_INVOICE, 'payone_payment'),
'bankaccountcheckRequest' => $this->requestHelper->getBankaccountCheckRequest(),
Expand Down
93 changes: 0 additions & 93 deletions Model/Methods/Barzahlen.php

This file was deleted.

2 changes: 1 addition & 1 deletion Model/Methods/BaseMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ abstract class BaseMethod extends AbstractMethod

/**
* Determines if payment type can use partial captures
* Is true for all PAYONE Payment Methods except Barzahlen
* Is true for all PAYONE Payment Methods
*
* @var bool
*/
Expand Down
87 changes: 0 additions & 87 deletions Model/Methods/OnlineBankTransfer/Giropay.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class OnlineBankTransferBase extends \Payone\Core\Model\Methods\PayoneMethod
{
/* Payment method sub types */
const METHOD_OBT_SUBTYPE_SOFORTUEBERWEISUNG = 'PNT';
const METHOD_OBT_SUBTYPE_GIROPAY = 'GPY';
const METHOD_OBT_SUBTYPE_EPS = 'EPS';
const METHOD_OBT_SUBTYPE_POSTFINANCE_EFINANCE = 'PFF';
const METHOD_OBT_SUBTYPE_POSTFINANCE_CARD = 'PFC';
Expand Down
1 change: 0 additions & 1 deletion Model/Methods/Payolution/Installment.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ class Installment extends PayolutionBase

/**
* Returns authorization-mode
* Barzahlen only supports preauthorization
*
* @return string
*/
Expand Down
100 changes: 0 additions & 100 deletions Model/Methods/Trustly.php

This file was deleted.

3 changes: 0 additions & 3 deletions Model/PayoneConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,12 @@ abstract class PayoneConfig
const METHOD_PAYPAL = 'payone_paypal';
const METHOD_PAYPALV2 = 'payone_paypalv2';
const METHOD_OBT_SOFORTUEBERWEISUNG = 'payone_obt_sofortueberweisung';
const METHOD_OBT_GIROPAY = 'payone_obt_giropay';
const METHOD_OBT_EPS = 'payone_obt_eps';
const METHOD_OBT_POSTFINANCE_EFINANCE = 'payone_obt_postfinance_efinance';
const METHOD_OBT_POSTFINANCE_CARD = 'payone_obt_postfinance_card';
const METHOD_OBT_IDEAL = 'payone_obt_ideal';
const METHOD_OBT_PRZELEWY = 'payone_obt_przelewy';
const METHOD_KLARNA = 'payone_klarna'; // method was deleted but constant is still useful for unit tests
const METHOD_BARZAHLEN = 'payone_barzahlen';
const METHOD_PAYDIREKT = 'payone_paydirekt';
const METHOD_SAFE_INVOICE = 'payone_safe_invoice';
const METHOD_PAYOLUTION_INVOICE = 'payone_payolution_invoice';
Expand All @@ -94,7 +92,6 @@ abstract class PayoneConfig
const METHOD_RATEPAY_INVOICE = 'payone_ratepay_invoice';
const METHOD_RATEPAY_INSTALLMENT = 'payone_ratepay_installment';
const METHOD_RATEPAY_DEBIT = 'payone_ratepay_debit';
const METHOD_TRUSTLY = 'payone_trustly';
const METHOD_APPLEPAY = 'payone_applepay';
const METHOD_BANCONTACT = 'payone_bancontact';
const METHOD_BNPL_INVOICE = 'payone_bnpl_invoice';
Expand Down
1 change: 0 additions & 1 deletion Model/Source/CreditcardTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ class CreditcardTypes implements ArrayInterface
'americanexpress' => array('name' => 'American Express', 'cardtype' => 'A', 'cvc_length' => 4),
'dinersclub' => array('name' => 'Diners Club', 'cardtype' => 'D', 'cvc_length' => 3),
'jcb' => array('name' => 'JCB', 'cardtype' => 'J', 'cvc_length' => 3),
'maestroint' => array('name' => 'Maestro International', 'cardtype' => 'O', 'cvc_length' => 3),
'cartebleue' => array('name' => 'Carte Bleue', 'cardtype' => 'B', 'cvc_length' => 3),
];

Expand Down
Loading

0 comments on commit 5aee586

Please sign in to comment.