Inital commit
This commit is contained in:
44
local/modules/Atos/Config/certif.fr.031203376400035
Normal file
44
local/modules/Atos/Config/certif.fr.031203376400035
Normal file
@@ -0,0 +1,44 @@
|
||||
GE7vlAm9WMSVdL1BBXmeD2P1ZEWn6muDOdGYOaey91vi8104USqy5IrH4EmBVpbmFA
|
||||
dY2sm0spP7rjwm2YU97L6etVXtmidboXK2uyDGKo3tq1ruDId1vNY5dUPqpT8R1y3L
|
||||
LBa3ujKfrobNukNlLmi614ZqZ95IAg4wLhoAa9eTx7tMHdECYJwaMQdUkpevoFKoQy
|
||||
S3WFBwoltAHgQd3pEjOraOiKS5ZcqCdDtXLOCta3hcRt2JgLFIEhJvcXECIzCqiVhl
|
||||
eJr7kjuACxt8p3OTe8RjOTVLTRbvJiv1VPYRsvAWXggIXEfm75tv1CcaMy2K0GAqoa
|
||||
x92iBrg6fFJlTUIP3vjil7CnjDPo0pgxEaMpOjadKDsmsmsP4eeJEsc1jlVgZ7hP6U
|
||||
EN9PGjuwegkfuvxCKHifmWVhufEunk62uclrUT1ux0XkmNWFm5VxXs6dapzFHgmHnY
|
||||
lxckSHxSRqPLabW8ll1jn0BnH8x4PItAsXQe93YDPK552FsdKuVucDduMdNU9oI2pI
|
||||
bssDMRNkKD7gds6LrBAPNCpmp84mtIyvOqthjgKjH57fLqZ17my03C92ANaOVck1un
|
||||
BwcqZyOwYhxwwmAymGvBLYHYhXc6kyafOrPBpdcnUQ8MmYaBPan8lv6lyLZtWlz7cr
|
||||
HyE9s8dx8NN4RCUrer976qfdzfCTJO4QImKiAWrzKGmQB22YZYuaCnbIAm7EvaPUMc
|
||||
Nsyt1YcUT6RyzLBS2EBkl6jn7l2RTKB6qrWSGTgOfJozF1853AoBXnZN2iZ32fp95b
|
||||
bP0pAKYMptkmXjGIEDdCjvHfoCd1TLb1onywU7H3Xl0M0RAKsKpVw2UZ59MvfzwygA
|
||||
2JZBegSHydBvAA6f7Y7eUJxeEPdR58XTaQljHBA3znO5tl4XAs3bJwvWxxH55ZUOSt
|
||||
uWWJUIxTobE82LNQTxBUiBB6jPIPZNndV0swUHxF0IalwodLYn0EVgKeevzBdectCO
|
||||
EDCxoMxNtwiEHNvEOtlG8HRltxG44jLL4k2bxyJvvs1XV5OlNgwJO4FQftt0wlTYY9
|
||||
xdM9OJ3svb9FzHL9PBDGShOv6ZhxOrMhNxTNf7vK5gtUL1tPvcjzeSbyIWxXNhou15
|
||||
q4o5ZxmqcDJWeblzefVUjtzrMs5PnA5QoMuU7siDnXmh1GbDQsEEW9CIbDXSepHxIZ
|
||||
HC48dhjbmkdlPMorjCBLbHNUJf7eSMxKPyPrOFAhZai0w68AIc9D7ptZJoPEqms64O
|
||||
9lJbdo5ZG0PopS7dmEpcSWWpDFV3jhyJTYCpVCwwaSe4JoxoqcPCMCatFnti7kq5rN
|
||||
4MDogPwrgOVSrjjf3n64uvPPoZFdBqlRJX9GEBslEE6nfPT4jKWhwji2BXifKwWwAG
|
||||
7g6skqXHXcYfJJ876oijteOXINUCUJDMZxdqahTzJMnu0C9FskoOC2lTnZw0zsJ5DF
|
||||
ElXEALjZezEWQu4LkuJXXd2IThyEKLfth1doUHcWN6HJ4UUBR5d0w02IQ6Mxdt3LjB
|
||||
5Ldqqsab7WCwPWKEY6jmFEtscM0GVLXHuQk6jqiKod90ZaQKk5FT7y36a01ES18mB4
|
||||
BycGRfNXDWoqlYGsRCc1XhD8YNMfn8kEVmxyqZyfoKwXoUVAeAAooKAC4HHK7fRKDM
|
||||
144242079835C20C45E69EB347ABBCF77F04B23BF39629A8891035423E3CC386A0
|
||||
7B3C5701C4AD69E9553B26CC0BF5EECFF5870551C600B8F730F5D254BF74A565C6
|
||||
6B4579C390A8DC6qQr1zR6dLlJOiMDbG6OGmKSYrbRLjNxgYF6O0LOphKqjcTtEjC4
|
||||
qRYApJkYmWXLLANZn46w0I65L63PlBVrpYPSvFAu25aUMaSwcELNUKcpgFq5tsI1wG
|
||||
112A59107EB88144C8A7336C5487503B02EF1E0937AB588DC4E42D35BC8567C0EA
|
||||
181F19D1F3D8D3C19626080F3D3DA7901B63475590DD907AE1eFcB1ZxNnOK4rRiC
|
||||
YhZYW3QiL6OW9eXqQr1zR6dLlJOiMDbG6OGmKSYrbRLjNxgYF6O0LOphKqjcTtEjC4
|
||||
qRYApJkYmWXLLANZn46w0I65L63PlBVrpYPSvFAu25aUMaSwcELNUKcpgFq5tsI1wG
|
||||
144242079835C20C45E69EB347ABBCF77F04B23BF39629A8891035423E3CC386A0
|
||||
7B3C5701C4AD69E9553B26CC0BF5EECFF5870551C600B8F730F5D254BF74A565C6
|
||||
6B4579C390A8DC6qQr1zR6dLlJOiMDbG6OGmKSYrbRLjNxgYF6O0LOphKqjcTtEjC4
|
||||
qRYApJkYmWXLLANZn46w0I65L63PlBVrpYPSvFAu25aUMaSwcELNUKcpgFq5tsI1wG
|
||||
1127349E4948198B92E77303D3BF9D9E7C0D37B60245BB789F425406ED1ADC2EA7
|
||||
BAED72A82D8300C138275636798737F202F376F40453FA7B01eFcB1ZxNnOK4rRiC
|
||||
YhZYW3QiL6OW9eXqQr1zR6dLlJOiMDbG6OGmKSYrbRLjNxgYF6O0LOphKqjcTtEjC4
|
||||
qRYApJkYmWXLLANZn46w0I65L63PlBVrpYPSvFAu25aUMaSwcELNUKcpgFq5tsI1wG
|
||||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
SIPSATIS_SCLERIVEINSTERIVEIN,26/08/2014,V4,MERCANET,PROD++++++++++
|
||||
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++END
|
||||
0
local/modules/Atos/Config/certif.fr.dist
Normal file
0
local/modules/Atos/Config/certif.fr.dist
Normal file
22
local/modules/Atos/Config/config.xml
Normal file
22
local/modules/Atos/Config/config.xml
Normal 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>
|
||||
18
local/modules/Atos/Config/module.xml
Normal file
18
local/modules/Atos/Config/module.xml
Normal 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>
|
||||
16
local/modules/Atos/Config/parmcom.031203376400035
Normal file
16
local/modules/Atos/Config/parmcom.031203376400035
Normal file
@@ -0,0 +1,16 @@
|
||||
###############################################################################
|
||||
#
|
||||
# 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
|
||||
|
||||
|
||||
39
local/modules/Atos/Config/parmcom.atos
Normal file
39
local/modules/Atos/Config/parmcom.atos
Normal 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
|
||||
15
local/modules/Atos/Config/parmcom.dist
Normal file
15
local/modules/Atos/Config/parmcom.dist
Normal 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
|
||||
|
||||
|
||||
31
local/modules/Atos/Config/pathfile
Normal file
31
local/modules/Atos/Config/pathfile
Normal 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!/var/www/sterivein.com/web/thelia/local/modules/Atos/Config/certif!
|
||||
#
|
||||
# fichier paramètre commercant
|
||||
#
|
||||
F_PARAM!/var/www/sterivein.com/web/thelia/local/modules/Atos/Config/parmcom!
|
||||
#
|
||||
# fichier des paramètres ATOS
|
||||
#
|
||||
F_DEFAULT!/var/www/sterivein.com/web/thelia/local/modules/Atos/Config/parmcom.atos!
|
||||
#
|
||||
# --------------------------------------------------------------------------
|
||||
# end of file
|
||||
# --------------------------------------------------------------------------
|
||||
31
local/modules/Atos/Config/pathfile.dist
Normal file
31
local/modules/Atos/Config/pathfile.dist
Normal 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
|
||||
# --------------------------------------------------------------------------
|
||||
27
local/modules/Atos/Config/routing.xml
Normal file
27
local/modules/Atos/Config/routing.xml
Normal 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>
|
||||
12
local/modules/Atos/Config/schema.xml
Normal file
12
local/modules/Atos/Config/schema.xml
Normal 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>
|
||||
44
local/modules/Atos/Config/thelia.sql
Normal file
44
local/modules/Atos/Config/thelia.sql
Normal 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;
|
||||
Reference in New Issue
Block a user