Skip to content

Commit

Permalink
Merge branch '6-implement-handling-blik-level-0' of https://github.co…
Browse files Browse the repository at this point in the history
…m/CommerceWeavers/SyliusTPayPlugin into 6-implement-handling-blik-level-0
  • Loading branch information
arti0090 committed Sep 5, 2024
2 parents 7a375fb + d31e18d commit 48584fb
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config/packages.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

declare(strict_types=1);

namespace Symfony\Component\DependencyInjection\Loader\Configurator;

return function(ContainerConfigurator $container): void {
$container->import('packages/**/*.php');
};
23 changes: 23 additions & 0 deletions config/packages/events.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

declare(strict_types=1);

use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return static function (ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->extension('sylius_ui', [
'events' => [
'sylius.shop.checkout.complete.summary' => [
'blocks' => [
'my_block_name' => [
'template' => '@CommerceWeaversSyliusTpayPlugin/blik.html.twig',
'priority' => 5,
'context' => [
'message' => 'Hello!',
],
],
],
],
],
]);
};
6 changes: 6 additions & 0 deletions config/services/payum/action.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
->tag('payum.action', ['factory' => TpayGatewayFactory::NAME, 'alias' => 'cw.tpay.create_transaction'])
;

$services->set(CreateBlik0TransactionAction::class)
->tag('payum.action', ['factory' => TpayGatewayFactory::NAME, 'alias' => 'cw.tpay.create_blik0_transaction'])
;

$services->set(FetchPaymentDetailsAction::class)
->tag('payum.action', ['factory' => TpayGatewayFactory::NAME, 'alias' => 'cw.tpay.fetch_payment_details'])
$services->set(NotifyAction::class)
->tag('payum.action', ['factory' => TpayGatewayFactory::NAME, 'alias' => 'cw.tpay.notify'])
;
Expand Down

0 comments on commit 48584fb

Please sign in to comment.