Initial Commit
This commit is contained in:
23
local/modules/Paypal/Config/config.xml
Normal file
23
local/modules/Paypal/Config/config.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<config xmlns="http://thelia.net/schema/dic/config"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://thelia.net/schema/dic/config http://thelia.net/schema/dic/config/thelia-1.0.xsd">
|
||||
|
||||
<forms>
|
||||
<form name="paypal.form.configure" class="Paypal\Form\ConfigurationForm" />
|
||||
</forms>
|
||||
|
||||
<services>
|
||||
<service id="paypal.mail.listener" class="Paypal\Listener\SendConfirmationEmail" scope="request">
|
||||
<argument type="service" id="mailer"/>
|
||||
<tag name="kernel.event_subscriber"/>
|
||||
</service>
|
||||
</services>
|
||||
|
||||
<hooks>
|
||||
<hook id="paypal.configuration.hook" class="Paypal\Hook\HookManager" scope="request">
|
||||
<tag name="hook.event_listener" event="module.configuration" type="back" method="onModuleConfigure" />
|
||||
</hook>
|
||||
</hooks>
|
||||
</config>
|
||||
24
local/modules/Paypal/Config/module.xml
Normal file
24
local/modules/Paypal/Config/module.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module xmlns="http://thelia.net/schema/dic/module"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://thelia.net/schema/dic/module http://thelia.net/schema/dic/module/module-2_1.xsd">
|
||||
<fullnamespace>Paypal\Paypal</fullnamespace>
|
||||
<descriptive locale="en_US">
|
||||
<title>Pay with Paypal</title>
|
||||
</descriptive>
|
||||
<descriptive locale="fr_FR">
|
||||
<title>Paiement avec Paypal</title>
|
||||
</descriptive>
|
||||
<languages>
|
||||
<language>en_US</language>
|
||||
<language>fr_FR</language>
|
||||
</languages>
|
||||
<version>2.1.3</version>
|
||||
<author>
|
||||
<name>Thelia</name>
|
||||
<email>info@thelia.net</email>
|
||||
</author>
|
||||
<type>payment</type>
|
||||
<thelia>2.1.0</thelia>
|
||||
<stability>prod</stability>
|
||||
</module>
|
||||
22
local/modules/Paypal/Config/routing.xml
Normal file
22
local/modules/Paypal/Config/routing.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<routes xmlns="http://symfony.com/schema/routing"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
|
||||
|
||||
<route id="paypal.configure" path="/admin/module/paypal/configure" methods="post">
|
||||
<default key="_controller">Paypal\Controller\ConfigurationController::configure</default>
|
||||
</route>
|
||||
|
||||
<route id="paypal.download.log" path="/admin/module/paypal/log">
|
||||
<default key="_controller">Paypal\Controller\ConfigurationController::downloadLog</default>
|
||||
</route>
|
||||
|
||||
<route id="paypal.cancel" path="/module/paypal/cancel/{order_id}" methods="get">
|
||||
<default key="_controller">Paypal\Controller\PaypalResponse::cancel</default>
|
||||
<requirement key="order_id">\d+</requirement>
|
||||
</route>
|
||||
|
||||
<route id="paypal.ok" path="/module/paypal/ok/{order_id}" methods="get">
|
||||
<default key="_controller">Paypal\Controller\PaypalResponse::ok</default>
|
||||
<requirement key="order_id">\d+</requirement>
|
||||
</route>
|
||||
</routes>
|
||||
Reference in New Issue
Block a user