-
Notifications
You must be signed in to change notification settings - Fork 1
1. Installation
Jacob Tobiasz edited this page Oct 4, 2024
·
13 revisions
The installation process of Sylius Tpay Plugin
is aimed to be simple and require as few steps as possible. Sylius Tpay Plugin
can be installed in an automatic way, with tools like Symfony Flex
or in a traditional way, where you need to do every step by hand.
- Installed and configured Symfony Flex package
- Configured
Sylius Recipes
flex endpoint
composer require commerce-weavers/sylius-tpay-plugin
webpack.config.js
:
+const cwTpayShop = CommerceWeaversSyliusTpay.getWebpackShopConfig(path.resolve(__dirname));
-module.exports = [shopConfig, adminConfig];
+module.exports = [shopConfig, adminConfig, cwTpayShop];
src/Entity/Order/Order.php
:
<?php
// ...
+use CommerceWeavers\SyliusTpayPlugin\Model\OrderLastNewPaymentAwareInterface;
+use CommerceWeavers\SyliusTpayPlugin\Model\OrderLastNewPaymentAwareTrait;
// ...
#[ORM\Entity]
#[ORM\Table(name: 'sylius_order')]
-class Order extends BaseOrder
+class Order extends BaseOrder implements OrderLastNewPaymentAwareInterface
{
+ use OrderLastNewPaymentAwareTrait;
}