Skip to content

Commit

Permalink
Merge pull request #17 from logeecom/master
Browse files Browse the repository at this point in the history
PISYL-178 & PISYL-181: Twint and Blik implementation
  • Loading branch information
hwysoszynski authored Feb 27, 2024
2 parents 9613892 + 542c4f1 commit 22c6a3c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"php": "^7.4 || ^8.0",
"sylius/sylius": "~1.9.0 || ~1.10.0 || ~1.11.0 || ~1.12.0",
"symfony/messenger": "^4.4 || ^5.2 || ^6.0",
"mollie/mollie-api-php": "^2.64.0",
"mollie/mollie-api-php": "^v2.65.0",
"sylius/refund-plugin": "^1.0",
"sylius/admin-order-creation-plugin": "^0.12 || ^0.13 || v0.14",
"ext-json": "*",
Expand Down
18 changes: 18 additions & 0 deletions src/Payments/Methods/Blik.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace SyliusMolliePlugin\Payments\Methods;

use Mollie\Api\Types\PaymentMethod;

final class Blik extends AbstractMethod
{
public function getMethodId(): string
{
return PaymentMethod::BLIK;
}

public function getPaymentType(): string
{
return self::PAYMENT_API;
}
}
2 changes: 2 additions & 0 deletions src/Payments/MethodsInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use SyliusMolliePlugin\Payments\Methods\BankTransfer;
use SyliusMolliePlugin\Payments\Methods\Belfius;
use SyliusMolliePlugin\Payments\Methods\Billie;
use SyliusMolliePlugin\Payments\Methods\Blik;
use SyliusMolliePlugin\Payments\Methods\CreditCard;
use SyliusMolliePlugin\Payments\Methods\DirectDebit;
use SyliusMolliePlugin\Payments\Methods\Eps;
Expand Down Expand Up @@ -54,6 +55,7 @@ interface MethodsInterface
In3::class,
Billie::class,
Twint::class,
Blik::class,
];

public function getAllEnabled(): array;
Expand Down

0 comments on commit 22c6a3c

Please sign in to comment.