Il manquait des fichiers dans le module Mercanet (sur Git)

This commit is contained in:
2024-01-12 10:37:52 +01:00
parent 4054fddbe5
commit 485580e0b2
22 changed files with 2034 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?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="mercanet_configuration" class="Mercanet\Form\ConfigForm" />
</forms>
<services>
<service id="mercanet.confirmation.email" class="Mercanet\EventListeners\SendConfirmationEmail" scope="request">
<argument type="service" id="mailer"/>
<tag name="kernel.event_subscriber"/>
</service>
</services>
<hooks>
<hook id="mercanet.configuration.hook" class="Mercanet\Hook\HookManager" scope="request">
<tag name="hook.event_listener" event="module.configuration" type="back" method="onModuleConfigure" />
</hook>
</hooks>
</config>

View File

@@ -0,0 +1,32 @@
<?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_2.xsd">
<fullnamespace>Mercanet\Mercanet</fullnamespace>
<descriptive locale="en_US">
<title>Credit card payment with BNP Paribas Mercanet</title>
</descriptive>
<descriptive locale="fr_FR">
<title>Paiement par carte bancaire avec BNP Paribas Mercanet</title>
</descriptive>
<!-- <logo></logo> -->
<images-folder>images</images-folder>
<languages>
<language>en_US</language>
<language>fr_FR</language>
</languages>
<version>1.0.6</version>
<authors>
<author>
<name>Franck Allimant</name>
<company>CQFDev</company>
<email>thelia@cqfdev.fr</email>
<website>www.cqfdev.fr</website>
</author>
</authors>
<type>payment</type>
<thelia>2.3.0</thelia>
<stability>prod</stability>
<mandatory>0</mandatory>
<hidden>0</hidden>
</module>

View File

@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8" ?>
<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="mercanet.config" path="/admin/module/mercanet/configure" methods="post">
<default key="_controller">Mercanet\Controller\ConfigureController::configure</default>
</route>
<route id="mercanet.download.log" path="/admin/module/mercanet/log">
<default key="_controller">Mercanet\Controller\ConfigureController::downloadLog</default>
</route>
<route id="mercanet.logo" path="mercanet/logo/{image}">
<default key="_controller">Mercanet\Controller\PaymentController::displayLogo</default>
</route>
<route id="mercanet.payment.manual_response" path="mercanet/manual-response" methods="post">
<default key="_controller">Mercanet\Controller\PaymentController::processManualResponse</default>
</route>
<route id="mercanet.payment.confirmation" path="mercanet/callback" methods="post">
<default key="_controller">Mercanet\Controller\PaymentController::processMercanetRequest</default>
</route>
<route id="mercanet.payment.cancel" path="mercanet/cancel/{orderId}">
<default key="_controller">Mercanet\Controller\PaymentController::processUserCancel</default>
<requirement key="orderId">\d+</requirement>
</route>
</routes>