diff --git a/config/packages.php b/config/packages.php new file mode 100644 index 00000000..daf459e9 --- /dev/null +++ b/config/packages.php @@ -0,0 +1,9 @@ +import('packages/**/*.php'); +}; diff --git a/config/packages/events.php b/config/packages/events.php new file mode 100644 index 00000000..6fc9cb45 --- /dev/null +++ b/config/packages/events.php @@ -0,0 +1,23 @@ +extension('sylius_ui', [ + 'events' => [ + 'sylius.shop.checkout.complete.summary' => [ + 'blocks' => [ + 'my_block_name' => [ + 'template' => '@CommerceWeaversSyliusTpayPlugin/blik.html.twig', + 'priority' => 5, + 'context' => [ + 'message' => 'Hello!', + ], + ], + ], + ], + ], + ]); +}; diff --git a/config/services/payum/action.php b/config/services/payum/action.php index 5073169f..a04f2270 100644 --- a/config/services/payum/action.php +++ b/config/services/payum/action.php @@ -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']) ;