File tree Expand file tree Collapse file tree 4 files changed +23
-0
lines changed
tests/Application/templates/bundles/SyliusAdminBundle/PaymentMethod Expand file tree Collapse file tree 4 files changed +23
-0
lines changed 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 19
19
use SyliusMolliePlugin \Payments \Methods \Ideal ;
20
20
use SyliusMolliePlugin \Payments \Methods \In3 ;
21
21
use SyliusMolliePlugin \Payments \Methods \Kbc ;
22
+ use SyliusMolliePlugin \Payments \Methods \KlarnaOne ;
22
23
use SyliusMolliePlugin \Payments \Methods \Klarnapaylater ;
23
24
use SyliusMolliePlugin \Payments \Methods \KlarnaPayNow ;
24
25
use SyliusMolliePlugin \Payments \Methods \Klarnasliceit ;
@@ -43,6 +44,7 @@ interface MethodsInterface
43
44
Giropay::class,
44
45
Ideal::class,
45
46
Kbc::class,
47
+ KlarnaOne::class,
46
48
Klarnapaylater::class,
47
49
Klarnasliceit::class,
48
50
KlarnaPayNow::class,
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ public static function getLogLevels(): array
72
72
public static function getOnlyOrderAPIMethods (): array
73
73
{
74
74
return [
75
+ PaymentMethod::KLARNA_ONE ,
75
76
PaymentMethod::KLARNA_PAY_NOW ,
76
77
PaymentMethod::KLARNA_PAY_LATER ,
77
78
PaymentMethod::KLARNA_SLICE_IT ,
Original file line number Diff line number Diff line change 1
1
{% set mealvouchersId = constant (' SyliusMolliePlugin\\Payments\\Methods\\MealVoucher::MEAL_VOUCHERS' ) %}
2
2
{% set applePay = constant (' Mollie\\Api\\Types\\PaymentMethod::APPLEPAY' ) %}
3
+ {% set klarnaOne = constant (' Mollie\\Api\\Types\\PaymentMethod::KLARNA_ONE' ) %}
3
4
{% set klarnaPayLater = constant (' Mollie\\Api\\Types\\PaymentMethod::KLARNA_PAY_LATER' ) %}
4
5
{% set klarnaSliceIt = constant (' Mollie\\Api\\Types\\PaymentMethod::KLARNA_SLICE_IT' ) %}
5
6
{% set billie = constant (' Mollie\\Api\\Types\\PaymentMethod::BILLIE' ) %}
133
134
<div class =" twelve wide field" >
134
135
{% if
135
136
methodForm .vars .value .methodId == mealvouchersId or
137
+ methodForm .vars .value .methodId == klarnaOne or
136
138
methodForm .vars .value .methodId == klarnaPayLater or
137
139
methodForm .vars .value .methodId == klarnaSliceIt or
138
140
methodForm .vars .value .methodId == billie or
You can’t perform that action at this time.
0 commit comments