This repository was archived by the owner on Apr 1, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
tests/Application/templates/bundles/SyliusAdminBundle/PaymentMethod Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,7 +112,10 @@ public function execute($request): void
112112 $ cartToken = $ paymentOptions ['cartToken ' ];
113113 $ saveCardInfo = $ paymentOptions ['saveCardInfo ' ];
114114 $ useSavedCards = $ paymentOptions ['useSavedCards ' ];
115- $ selectedIssuer = PaymentMethod::IDEAL === $ paymentMethod ? $ paymentOptions ['issuers ' ]['id ' ] : null ;
115+ $ selectedIssuer = null ;
116+ if (PaymentMethod::IDEAL === $ paymentMethod && null !== $ paymentOptions ['issuers ' ]) {
117+ $ selectedIssuer = $ paymentOptions ['issuers ' ]['id ' ];
118+ }
116119 }
117120
118121 /** @var MollieGatewayConfigInterface $method */
Original file line number Diff line number Diff line change @@ -29,10 +29,11 @@ public function prepend(ContainerBuilder $container): void
2929 return ;
3030 }
3131
32+ $ doctrineConfig = $ container ->getExtensionConfig ('doctrine_migrations ' );
3233 $ container ->prependExtensionConfig ('doctrine_migrations ' , [
33- 'migrations_paths ' => [
34+ 'migrations_paths ' => \array_merge ( \array_pop ( $ doctrineConfig )[ ' migrations_paths ' ] ?? [], [
3435 'SyliusMolliePlugin\Migrations ' => __DIR__ . '/../Migrations ' ,
35- ],
36+ ]) ,
3637 ]);
3738
3839 $ container ->prependExtensionConfig ('sylius_labs_doctrine_migrations_extra ' , [
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace SyliusMolliePlugin \Payments \Methods ;
4+
5+ use Mollie \Api \Types \PaymentMethod ;
6+
7+ final class KlarnaOne extends AbstractMethod
8+ {
9+ public function getMethodId (): string
10+ {
11+ return PaymentMethod::KLARNA_ONE ;
12+ }
13+
14+ public function getPaymentType (): string
15+ {
16+ return self ::ORDER_API ;
17+ }
18+ }
Original file line number Diff line number Diff line change 1919use SyliusMolliePlugin \Payments \Methods \Ideal ;
2020use SyliusMolliePlugin \Payments \Methods \In3 ;
2121use SyliusMolliePlugin \Payments \Methods \Kbc ;
22+ use SyliusMolliePlugin \Payments \Methods \KlarnaOne ;
2223use SyliusMolliePlugin \Payments \Methods \Klarnapaylater ;
2324use SyliusMolliePlugin \Payments \Methods \KlarnaPayNow ;
2425use SyliusMolliePlugin \Payments \Methods \Klarnasliceit ;
@@ -43,6 +44,7 @@ interface MethodsInterface
4344 Giropay::class,
4445 Ideal::class,
4546 Kbc::class,
47+ KlarnaOne::class,
4648 Klarnapaylater::class,
4749 Klarnasliceit::class,
4850 KlarnaPayNow::class,
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ public static function getLogLevels(): array
7272 public static function getOnlyOrderAPIMethods (): array
7373 {
7474 return [
75+ PaymentMethod::KLARNA_ONE ,
7576 PaymentMethod::KLARNA_PAY_NOW ,
7677 PaymentMethod::KLARNA_PAY_LATER ,
7778 PaymentMethod::KLARNA_SLICE_IT ,
Original file line number Diff line number Diff line change 11{% set mealvouchersId = constant (' SyliusMolliePlugin\\Payments\\Methods\\MealVoucher::MEAL_VOUCHERS' ) %}
22{% set applePay = constant (' Mollie\\Api\\Types\\PaymentMethod::APPLEPAY' ) %}
3+ {% set klarnaOne = constant (' Mollie\\Api\\Types\\PaymentMethod::KLARNA_ONE' ) %}
34{% set klarnaPayLater = constant (' Mollie\\Api\\Types\\PaymentMethod::KLARNA_PAY_LATER' ) %}
45{% set klarnaSliceIt = constant (' Mollie\\Api\\Types\\PaymentMethod::KLARNA_SLICE_IT' ) %}
56{% set billie = constant (' Mollie\\Api\\Types\\PaymentMethod::BILLIE' ) %}
133134 <div class =" twelve wide field" >
134135 {% if
135136 methodForm .vars .value .methodId == mealvouchersId or
137+ methodForm .vars .value .methodId == klarnaOne or
136138 methodForm .vars .value .methodId == klarnaPayLater or
137139 methodForm .vars .value .methodId == klarnaSliceIt or
138140 methodForm .vars .value .methodId == billie or
You can’t perform that action at this time.
0 commit comments