Quelques nouveaux fichiers et modules en conf

This commit is contained in:
2021-01-25 18:42:52 +01:00
parent 9b4d5e339b
commit af1552b390
212 changed files with 38073 additions and 817 deletions

View File

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="atos_configuration" class="Atos\Form\ConfigForm" />
</forms>
<services>
<service id="atos.confirmation.email" class="Atos\EventListeners\SendConfirmationEmail" scope="request">
<argument type="service" id="mailer"/>
<tag name="kernel.event_subscriber"/>
</service>
</services>
<hooks>
<hook id="atos.configuration.hook" class="Atos\Hook\HookManager" scope="request">
<tag name="hook.event_listener" event="module.configuration" type="back" method="onModuleConfigure" />
</hook>
</hooks>
</config>

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<module>
<fullnamespace>Atos\Atos</fullnamespace>
<descriptive locale="en_US">
<title>Atos-SIPS payment module</title>
</descriptive>
<descriptive locale="fr_FR">
<title>Module de paiement Atos-SIPS</title>
</descriptive>
<version>1.2.1</version>
<author>
<name>Manuel Raynaud, Franck Allimant</name>
<email>manu@thelia.net, franck@cqfdev.fr</email>
</author>
<type>payment</type>
<thelia>2.1.0</thelia>
<stability>prod</stability>
</module>

View File

@@ -0,0 +1,39 @@
# couleur du fond d'ecran (blanc)
BGCOLOR!ffffff!
# Mode d'affichage des blocs de paiment
BLOCK_ALIGN!center!
# Ordre d'affichage des blocs de paiement
BLOCK_ORDER!1,2,3,4,5,6,7,8!
# Mode de securite
CONDITION!SSL!
# flag d'edition des libelles des blocs de paiement
HEADER_FLAG!yes!
# Code langage de l'acheteur (fr=francais)
LANGUAGE!fr!
# Logo ATOS paiement
#LOGO!logo.gif!
# Logo Banque Populaire
#LOGO2!logo.gif!
# Code pays du commercant
MERCHANT_COUNTRY!fr!
# Code langage du commercant
MERCHANT_LANGUAGE!fr!
# Liste des moyens de paiement acceptes
PAYMENT_MEANS!CB,2,VISA,2,MASTERCARD,2!
# Passage en une seule frame securisee au moment du paiement
TARGET!_top!
# Couleur du text (noir)
TEXTCOLOR!000000!
# END OF FILE

View File

@@ -0,0 +1,15 @@
###############################################################################
#
# Fichier des parametres du commercant
#
# Remarque : Ce fichier parametre est sous la responsabilite du
# commercant
#
###############################################################################
# Logo du commercant (il apparait en entete sur les pages de paiement)
#ADVERT!merchant.gif!
# END OF FILE

View File

@@ -0,0 +1,31 @@
#########################################################################
#
# Pathfile
#
# Liste fichiers parametres utilisés par le module de paiement
#
#########################################################################
# ------------------------------------------------------------------------
# Chemin vers le répertoire des logos depuis le web alias
# ------------------------------------------------------------------------
#
D_LOGO!/atos/logo/!
#
#------------------------------------------------------------------------
#------------------------------------------------------------------------
#
# certificat du commercant
#
F_CERTIFICATE!/home/pala4545/public_html/web/local/modules/Atos/Config/certif!
#
# fichier paramètre commercant
#
F_PARAM!/home/pala4545/public_html/web/local/modules/Atos/Config/parmcom!
#
# fichier des paramètres ATOS
#
F_DEFAULT!/home/pala4545/public_html/web/local/modules/Atos/Config/parmcom.atos!
#
# --------------------------------------------------------------------------
# end of file
# --------------------------------------------------------------------------

View File

@@ -0,0 +1,31 @@
#########################################################################
#
# Pathfile
#
# Liste fichiers parametres utilisés par le module de paiement
#
#########################################################################
# ------------------------------------------------------------------------
# Chemin vers le répertoire des logos depuis le web alias
# ------------------------------------------------------------------------
#
D_LOGO!/atos/logo/!
#
#------------------------------------------------------------------------
#------------------------------------------------------------------------
#
# certificat du commercant
#
F_CERTIFICATE!__PATH__/Config/certif!
#
# fichier paramètre commercant
#
F_PARAM!__PATH__/Config/parmcom!
#
# fichier des paramètres ATOS
#
F_DEFAULT!__PATH__/Config/parmcom.atos!
#
# --------------------------------------------------------------------------
# end of file
# --------------------------------------------------------------------------

View File

@@ -0,0 +1,27 @@
<?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="atos.config" path="/admin/module/atos/configure" methods="post">
<default key="_controller">Atos\Controller\ConfigureController::configure</default>
</route>
<route id="atos.download.log" path="/admin/module/atos/log">
<default key="_controller">Atos\Controller\ConfigureController::downloadLog</default>
</route>
<route id="atos.logo" path="atos/logo/{image}">
<default key="_controller">Atos\Controller\PaymentController::displayLogo</default>
</route>
<route id="atos.payment.confirmation" path="atos/callback" methods="post">
<default key="_controller">Atos\Controller\PaymentController::processAtosRequest</default>
</route>
<route id="atos.payment.cancel" path="atos/cancel/{orderId}">
<default key="_controller">Atos\Controller\PaymentController::processUserCancel</default>
<requirement key="orderId">\d+</requirement>
</route>
</routes>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<database defaultIdMethod="native" name="thelia" namespace="Atos\Model">
<!--
See propel documentation on http://propelorm.org for all information about schema file
-->
<table name="atos_currency">
<column name="code" required="true" size="128" type="VARCHAR" primaryKey="true"/>
<column name="atos_code" type="INTEGER" />
<column name="decimals" type="INTEGER" />
</table>
<external-schema filename="local/config/schema.xml" referenceOnly="true" />
</database>

View File

@@ -0,0 +1,44 @@
# This is a fix for InnoDB in MySQL >= 4.1.x
# It "suspends judgement" for fkey relationships until are tables are set.
SET FOREIGN_KEY_CHECKS = 0;
-- ---------------------------------------------------------------------
-- atos_currency
-- ---------------------------------------------------------------------
DROP TABLE IF EXISTS `atos_currency`;
CREATE TABLE `atos_currency`
(
`code` VARCHAR(128) NOT NULL,
`atos_code` INTEGER,
`decimals` INTEGER,
PRIMARY KEY (`code`)
) ENGINE=InnoDB;
INSERT INTO `atos_currency`(`code`,`atos_code`,`decimals`) VALUES
('EUR', '978', 2),
('USD', '840', 2),
('CHF', '756', 2),
('GBP', '826', 2),
('CAD', '124', 2),
('JPY', '392', 0),
('MXN', '484', 2),
('TRY', '949', 2),
('AUD', '036', 2),
('NZD', '554', 2),
('NOK', '578', 2),
('BRL', '986', 2),
('ARS', '032', 2),
('KHR', '116', 2),
('TWD', '901', 2),
('SEK', '752', 2),
('DKK', '208', 2),
('KRW', '410', 0),
('SGD', '702', 2),
('XPF', '953', 2),
('XAF', '952', 2);
# This restores the fkey checks, after having unset them earlier
SET FOREIGN_KEY_CHECKS = 1;