Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into BP-3807-Add-iDEAL-…
Browse files Browse the repository at this point in the history
…fast-checkout-Shopware-6

# Conflicts:
#	composer.json
#	src/Resources/app/storefront/dist/storefront/js/buckaroo-payments/buckaroo-payments.js
#	src/Resources/public/administration/js/buckaroo-payments.js
#	src/Resources/views/storefront/component/buy-widget/buy-widget-form.html.twig
  • Loading branch information
gentiprenaj committed Dec 13, 2024
2 parents bf12da0 + e9542a6 commit f2b4912
Show file tree
Hide file tree
Showing 14 changed files with 87 additions and 227 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,4 +257,15 @@ Compatible from Shopware 6.5.0 up to 6.5.6.1
- BP-3614 Fix: Manual capture is not always working for Klarna (authorize/capture).

# 2.3.1
- Minor fixes
- Minor fixes

# 2.4.0

- Add support for Shopware 6.6.6.0
- Add support for Shopware 6.5.8.14
- BP-3629 Add payment method: Blik
- BP-3490 Add a Bancontact option to let consumer fill in card information in the Shopware checkout instead of the Buckaroo hosted payment page.
- BP-3629 Adjust the default Riverty | Afterpay name just to Riverty
- BP-3711 Adjust the Riverty | Afterpay logo to the new Riverty logo
- BP-3637 Fix Javascript error: Plugin "BuckarooPaymentValidateSubmit" is already registered
- BP-3785 Remove payment method Giropay (discontinued)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Start accepting payments within a few minutes.

To use the Buckaroo plugin, please be aware of the following minimum requirements:
- A Buckaroo account ([Dutch](https://www.buckaroo.nl/start) or [English](https://www.buckaroo.eu/solutions/request-form))
- Shopware 6.5.0 up to 6.6.3.0
- Shopware 6.5.0 up to 6.6.6.0
- PHP 8.1, 8.2, 8.3

### Installation
Expand Down
12 changes: 0 additions & 12 deletions src/Handlers/SofortPaymentHandler.php

This file was deleted.

2 changes: 0 additions & 2 deletions src/Helpers/GatewayHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use Buckaroo\Shopware6\PaymentMethods\Alipay;
use Buckaroo\Shopware6\PaymentMethods\Klarna;
use Buckaroo\Shopware6\PaymentMethods\Paypal;
use Buckaroo\Shopware6\PaymentMethods\Sofort;
use Buckaroo\Shopware6\PaymentMethods\Belfius;
use Buckaroo\Shopware6\PaymentMethods\Billink;
use Buckaroo\Shopware6\PaymentMethods\IdealQr;
Expand Down Expand Up @@ -45,7 +44,6 @@ class GatewayHelper
Creditcard::class,
Creditcards::class,
AfterPay::class,
Sofort::class,
Paypal::class,
Transfer::class,
ApplePay::class,
Expand Down
35 changes: 35 additions & 0 deletions src/Migration/Migration1733844659RemoveSofort.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php declare(strict_types=1);

namespace Buckaroo\Shopware6\Migration;

use Doctrine\DBAL\Connection;
use Shopware\Core\Framework\Migration\MigrationStep;

/**
* @internal
*/
class Migration1733844659RemoveSofort extends MigrationStep
{
public const HANDLER_IDENTIFIER = 'Buckaroo\\Shopware6\\Handlers\\SofortPaymentHandler';
public function getCreationTimestamp(): int
{
return 1733844659;
}

public function update(Connection $connection): void
{
$connection->executeStatement(
"DELETE FROM `payment_method`
WHERE `handler_identifier` = :handlerIdentifier",
['handlerIdentifier' => self::HANDLER_IDENTIFIER]
);
}
public function updateDestructive(Connection $connection): void
{
$connection->executeStatement(
"DELETE FROM `payment_method`
WHERE `handler_identifier` = :handlerIdentifier",
['handlerIdentifier' => self::HANDLER_IDENTIFIER]
);
}
}
77 changes: 0 additions & 77 deletions src/PaymentMethods/Sofort.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,6 @@ Component.register("buckaroo-payment-list", {
code: "afterpay",
logo: "afterpay.svg"
},
{
code: "sofortueberweisung",
logo: "sofort.svg"
},
{
code: "sepadirectdebit",
logo: "sepa-directdebit.svg"
Expand Down
61 changes: 0 additions & 61 deletions src/Resources/config/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -984,59 +984,6 @@
</input-field>
</card>

<card>
<title>Sofort</title>
<name>sofortueberweisung</name>
<input-field type="bool">
<name>sofortueberweisungEnabled</name>
<label lang="en-GB">Enabled</label>
<label lang="nl-NL">Ingeschakeld</label>
<label lang="de-DE">Aktiviert</label>
<label lang="fr-FR">Activé</label>
</input-field>

<input-field type="single-select">
<name>sofortueberweisungEnvironment</name>
<label lang="en-GB">Test or Live:</label>
<label lang="de-DE">Test oder Live:</label>
<label lang="nl-NL">Test of Live:</label>
<label lang="fr-FR">Tester ou Vivre:</label>
<defaultValue>test</defaultValue>
<options>
<option>
<id>test</id>
<name>Test</name>
</option>
<option>
<id>live</id>
<name>Live</name>
</option>
</options>
</input-field>

<input-field>
<name>sofortueberweisungLabel</name>
<label lang="en-GB">Frontend label</label>
<label lang="de-DE">Frontend-Label</label>
<label lang="nl-NL">Frontend label</label>
<label lang="fr-FR">Étiquette frontale</label>
<helpText lang="en-GB">This displays the payment method name entered in the checkout (Frontend label).</helpText>
<helpText lang="de-DE">Hier wird der im Checkout eingegebene Name der Zahlungsmethode (Frontend-Label) angezeigt.</helpText>
<helpText lang="nl-NL">Dit weergeeft de ingevoerde betaalmethode naam in de checkout (Frontend-label).</helpText>
<helpText lang="fr-FR">Cela affiche le nom du mode de paiement saisi lors du paiement (Étiquette frontale).</helpText>
<defaultValue>Sofort</defaultValue>
</input-field>

<input-field type="float">
<name>sofortueberweisungFee</name>
<min>0</min>
<max>1000</max>
<label lang="en-GB">Buckaroo Fee</label>
<label lang="nl-NL">Buckaroo betaaltoeslag</label>
<label lang="de-DE">Buckaroo Gebühr</label>
<label lang="fr-FR">Frais de buckaroo</label>
</input-field>
</card>

<card>
<title>PayPal</title>
Expand Down Expand Up @@ -1985,10 +1932,6 @@
<id>paypal</id>
<name>PayPal</name>
</option>
<option>
<id>sofortueberweisung</id>
<name>SOFORT</name>
</option>
<option>
<id>Przelewy24</id>
<name>Przelewy24</name>
Expand Down Expand Up @@ -2836,10 +2779,6 @@
<id>sepadirectdebit</id>
<name>SEPA Direct Debit</name>
</option>
<option>
<id>sofortueberweisung</id>
<name>Sofort Banking</name>
</option>
<option>
<id>belfius</id>
<name>Belfius</name>
Expand Down
20 changes: 8 additions & 12 deletions src/Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -227,18 +227,14 @@
<argument type="service" id="Buckaroo\Shopware6\Handlers\AfterPayOld" />
<tag name="shopware.payment.method.async" />
</service>

<service id="Buckaroo\Shopware6\Handlers\SofortPaymentHandler">
<argument type="service" id="Buckaroo\Shopware6\Service\AsyncPaymentService"/>
<tag name="shopware.payment.method.async" />
</service>


<service id="Buckaroo\Shopware6\Handlers\PaypalPaymentHandler">
<argument type="service" id="Buckaroo\Shopware6\Service\AsyncPaymentService"/>
<argument type="service" id="Buckaroo\Shopware6\Service\UpdateOrderWithPaypalExpressData" />
<tag name="shopware.payment.method.async" />
</service>

<service id="Buckaroo\Shopware6\Handlers\TransferPaymentHandler">
<argument type="service" id="Buckaroo\Shopware6\Service\AsyncPaymentService"/>
<tag name="shopware.payment.method.async" />
Expand All @@ -263,12 +259,12 @@
<argument type="service" id="Buckaroo\Shopware6\Service\AsyncPaymentService"/>
<tag name="shopware.payment.method.async" />
</service>

<service id="Buckaroo\Shopware6\Handlers\SepaDirectDebitPaymentHandler">
<argument type="service" id="Buckaroo\Shopware6\Service\AsyncPaymentService"/>
<tag name="shopware.payment.method.async" />
</service>

<service id="Buckaroo\Shopware6\Handlers\PayconiqPaymentHandler">
<argument type="service" id="Buckaroo\Shopware6\Service\AsyncPaymentService"/>
<tag name="shopware.payment.method.async" />
Expand All @@ -283,7 +279,7 @@
<argument type="service" id="Buckaroo\Shopware6\Service\AsyncPaymentService"/>
<tag name="shopware.payment.method.async" />
</service>

<service id="Buckaroo\Shopware6\Handlers\In3PaymentHandler">
<argument type="service" id="Buckaroo\Shopware6\Service\AsyncPaymentService"/>
<argument type="service" id="Buckaroo\Shopware6\Handlers\In3V2"/>
Expand Down Expand Up @@ -329,12 +325,12 @@
<argument type="service" id="Buckaroo\Shopware6\Service\AsyncPaymentService"/>
<tag name="shopware.payment.method.async" />
</service>

<service id="Buckaroo\Shopware6\Handlers\BillinkPaymentHandler">
<argument type="service" id="Buckaroo\Shopware6\Service\AsyncPaymentService"/>
<tag name="shopware.payment.method.async" />
</service>

<service id="Buckaroo\Shopware6\Handlers\BelfiusPaymentHandler">
<argument type="service" id="Buckaroo\Shopware6\Service\AsyncPaymentService"/>
<tag name="shopware.payment.method.async" />
Expand All @@ -345,7 +341,7 @@
<argument type="service" id="Buckaroo\Shopware6\Service\CustomerService"/>
<tag name="shopware.payment.method.async" />
</service>

<service id="Buckaroo\Shopware6\Handlers\PayPerEmailPaymentHandler">
<argument type="service" id="Buckaroo\Shopware6\Service\AsyncPaymentService"/>
<argument type="service" id="Buckaroo\Shopware6\Service\PayLinkService"/>
Expand Down
2 changes: 0 additions & 2 deletions src/Resources/public/administration/css/buckaroo-payments.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f2b4912

Please sign in to comment.