Skip to content

Commit

Permalink
Merge pull request #160 from buckaroo-it/BP-3503-remove-payment-metho…
Browse files Browse the repository at this point in the history
…d-tinka-presta-shop

Bp 3503 remove payment method tinka presta shop
  • Loading branch information
vegimcarkaxhija authored Apr 12, 2024
2 parents a6d6a42 + c15c22f commit db4d531
Show file tree
Hide file tree
Showing 16 changed files with 56 additions and 345 deletions.
2 changes: 0 additions & 2 deletions api/paymentmethods/paymentrequestfactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ class PaymentRequestFactory
public const REQUEST_TYPE_PAYCONIQ = 'payconiq';
public const REQUEST_TYPE_PAYPEREMAIL = 'payperemail';
public const REQUEST_TYPE_PRZELEWY24 = 'przelewy24';
public const REQUEST_TYPE_TINKA = 'tinka';
public const REQUEST_TYPE_TRUSTLY = 'trustly';
public const REQUEST_TYPE_WECHATPAY = 'wechatpay';
public const REQUEST_TYPE_ALIPAY = 'alipay';
Expand Down Expand Up @@ -77,7 +76,6 @@ class PaymentRequestFactory
PaymentRequestFactory::REQUEST_TYPE_PAYCONIQ => 'Payconiq',
PaymentRequestFactory::REQUEST_TYPE_PAYPEREMAIL => 'PayPerEmail',
PaymentRequestFactory::REQUEST_TYPE_PRZELEWY24 => 'Przelewy24',
PaymentRequestFactory::REQUEST_TYPE_TINKA => 'Tinka',
PaymentRequestFactory::REQUEST_TYPE_TRUSTLY => 'Trustly',
PaymentRequestFactory::REQUEST_TYPE_WECHATPAY => 'Wechatpay',
PaymentRequestFactory::REQUEST_TYPE_ALIPAY => 'Alipay',
Expand Down
41 changes: 0 additions & 41 deletions api/paymentmethods/tinka/tinka.php

This file was deleted.

1 change: 0 additions & 1 deletion dev/lang/php_de.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@
"payment_methods.przelewy24": "Przelewy24",
"payment_methods.sepadirectdebit": "SEPA-Lastschrift",
"payment_methods.sofortueberweisung": "Sofort",
"payment_methods.tinka": "Tinka",
"payment_methods.transfer": "Überweisen",
"payment_methods.trustly": "Vertrauenswürdig",
"payment_methods.wechatpay": "WeChatPay",
Expand Down
1 change: 0 additions & 1 deletion dev/lang/php_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@
"payment_methods.przelewy24": "Przelewy24",
"payment_methods.sepadirectdebit": "SEPA Direct Debit",
"payment_methods.sofortueberweisung": "Sofort",
"payment_methods.tinka": "Tinka",
"payment_methods.transfer": "Transfer",
"payment_methods.trustly": "Trustly",
"payment_methods.wechatpay": "WeChatPay",
Expand Down
1 change: 0 additions & 1 deletion dev/lang/php_fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@
"payment_methods.przelewy24": "Przelewy24",
"payment_methods.sepadirectdebit": "Prélèvement SEPA",
"payment_methods.sofortueberweisung": "Sofort",
"payment_methods.tinka": "Tinka",
"payment_methods.transfer": "Transfert",
"payment_methods.trustly": "En toute confiance",
"payment_methods.wechatpay": "WeChatPay",
Expand Down
1 change: 0 additions & 1 deletion dev/lang/php_nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@
"payment_methods.przelewy24": "Przelewy24",
"payment_methods.sepadirectdebit": "SEPA Direct Debit",
"payment_methods.sofortueberweisung": "Sofort",
"payment_methods.tinka": "Tinka",
"payment_methods.transfer": "Transfer",
"payment_methods.trustly": "Trustly",
"payment_methods.wechatpay": "WeChatPay",
Expand Down
15 changes: 0 additions & 15 deletions dev/src/components/payments/TinkaPaymentConfig.vue

This file was deleted.

3 changes: 0 additions & 3 deletions dev/src/pages/PaymentMethods.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
<PayByBankPaymentConfig v-if="selectedPayment.name === 'paybybank'" />
<PayPerEmailPaymentConfig v-if="selectedPayment.name === 'payperemail'" :payments="payments" />
<TransferPaymentConfig v-if="selectedPayment.name === 'transfer'" />
<TinkaPaymentConfig v-if="selectedPayment.name === 'tinka'" />
<KlarnaPaymentConfig v-if="selectedPayment.name === 'klarna'" />
</DefaultPaymentConfig>
</div>
Expand All @@ -60,7 +59,6 @@ import IdealPaymentConfig from "../components/payments/IdealPaymentConfig.vue";
import PaymentMethodBlock from "../components/PaymentMethodBlock.vue";
import Loading from "../components/Loading.vue";
import PayPalPaymentConfig from "../components/payments/PayPalPaymentConfig.vue";
import TinkaPaymentConfig from "../components/payments/TinkaPaymentConfig.vue";
import KlarnaPaymentConfig from "../components/payments/KlarnaPaymentConfig.vue";
export default {
Expand All @@ -80,7 +78,6 @@ export default {
TransferPaymentConfig,
PayPerEmailPaymentConfig,
PaymentMethodBlock,
TinkaPaymentConfig,
KlarnaPaymentConfig
},
setup() {
Expand Down
2 changes: 0 additions & 2 deletions library/checkout/checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ abstract class Checkout
public const CHECKOUT_TYPE_PAYCONIQ = 'payconiq';
public const CHECKOUT_TYPE_PAYPEREMAIL = 'payperemail';
public const CHECKOUT_TYPE_PRZELEWY24 = 'przelewy24';
public const CHECKOUT_TYPE_TINKA = 'tinka';
public const CHECKOUT_TYPE_TRUSTLY = 'trustly';
public const CHECKOUT_TYPE_WECHATPAY = 'wechatpay';
public const CHECKOUT_TYPE_ALIPAY = 'alipay';
Expand Down Expand Up @@ -86,7 +85,6 @@ abstract class Checkout
Checkout::CHECKOUT_TYPE_PAYCONIQ => 'Payconiq',
Checkout::CHECKOUT_TYPE_PAYPEREMAIL => 'PayPerEmail',
Checkout::CHECKOUT_TYPE_PRZELEWY24 => 'Przelewy24',
Checkout::CHECKOUT_TYPE_TINKA => 'Tinka',
Checkout::CHECKOUT_TYPE_TRUSTLY => 'Trustly',
Checkout::CHECKOUT_TYPE_WECHATPAY => 'Wechatpay',
Checkout::CHECKOUT_TYPE_ALIPAY => 'Alipay',
Expand Down
194 changes: 0 additions & 194 deletions library/checkout/tinkacheckout.php

This file was deleted.

2 changes: 0 additions & 2 deletions src/Repository/RawPaymentMethodRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ private function insertConfiguration(string $paymentName, int $paymentMethodId):

switch ($paymentName) {
case 'klarna':
case 'tinka':
$configValue['financial_warning'] = true;
break;

Expand Down Expand Up @@ -142,7 +141,6 @@ private function getPaymentMethodsData()
['name' => 'przelewy24', 'label' => 'Przelewy24', 'icon' => 'Przelewy24.svg', 'template' => '', 'is_payment_method' => '1'],
['name' => 'payperemail', 'label' => 'PayPerEmail', 'icon' => 'PayPerEmail.svg', 'template' => 'payment_payperemail.tpl', 'is_payment_method' => '1'],
['name' => 'payconiq', 'label' => 'Payconiq', 'icon' => 'Payconiq.svg', 'template' => '', 'is_payment_method' => '1'],
['name' => 'tinka', 'label' => 'Tinka', 'icon' => 'Tinka.svg', 'template' => 'payment_tinka.tpl', 'is_payment_method' => '1'],
['name' => 'trustly', 'label' => 'Trustly', 'icon' => 'Trustly.svg', 'template' => '', 'is_payment_method' => '1'],
['name' => 'transfer', 'label' => 'Bank Transfer', 'icon' => 'SEPA-credittransfer.svg', 'template' => '', 'is_payment_method' => '1'],
['name' => 'wechatpay', 'label' => 'WeChatPay', 'icon' => 'WeChat Pay.svg', 'template' => '', 'is_payment_method' => '1'],
Expand Down
1 change: 0 additions & 1 deletion src/Service/BuckarooPaymentService.php
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,6 @@ public function paymentMethodsWithFinancialWarning()
'afterpay',
'billink',
'in3',
'tinka',
];
$methods = [];
foreach ($buyNowPayLaterMethods as $method) {
Expand Down
21 changes: 14 additions & 7 deletions api/paymentmethods/tinka/index.php → upgrade/upgrade-4.3.0.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,19 @@
* @copyright Copyright (c) Buckaroo B.V.
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');

header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
use Buckaroo\PrestaShop\Src\Repository\RawOrderingRepository;

header('Location: ../');
exit;
if (!defined('_PS_VERSION_')) {
exit;
}

/**
* @return mixed
* @throws Exception
*/
function upgrade_module_4_2_0($object)
{
Db::getInstance()->execute('DELETE FROM ' . _DB_PREFIX_ . 'bk_payment_methods WHERE name = "tinka"');
return true;
}
Loading

0 comments on commit db4d531

Please sign in to comment.