Changeset 43248 in spip-zone
- Timestamp:
- Dec 30, 2010, 3:25:05 PM (10 years ago)
- Location:
- _plugins_/transaction
- Files:
-
- 1 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/transaction/lang/transaction_fr.php
r43119 r43248 10 10 'saisie_radio_defaut_choix1' => '15 €', 11 11 'saisie_radio_defaut_choix2' => '50 €', 12 'saisie_radio_defaut_choix3' => '100 €' 12 'saisie_radio_defaut_choix3' => '100 €', 13 'traiter_paiement_cic_titre' => 'Traitement du paiement CIC', 14 'traiter_paiement_cic_description' => 'Envoi des données de paiement vers les serveurs CIC', 15 'traiter_paiement_cmcic_titre' => 'Traitement du paiement CMCIC', 16 'traiter_paiement_cmcic_description' => 'Envoi des données de paiement vers les serveurs CMCIC', 17 'traiter_choix_banque_label' => 'Choix de la banque', 18 'traiter_choix_banque_explication' => 'Quelle API bancaire doit être appelée ?', 19 'banque_selection_1' => 'CIC', 20 'banque_selection_2' => 'Crédit Mutuel', 21 'banque_selection_3' => 'Banque OBC', 22 'traiter_choix_test_label' => 'Mode API', 23 'traiter_choix_test_explication' => 'Quel mode doit être utilisé pour les communications avec les serveurs de la banque ?', 24 'banque_test' => 'Mode de test', 25 'banque_prod' => 'Mode de production' 13 26 14 27 ); -
_plugins_/transaction/paiement/cic/CMCIC_HMAC.inc.php
r43122 r43248 1 1 <?php 2 2 3 include_once(realpath(dirname(__FILE__)) . "/config.php"); 4 3 // include_once(realpath(dirname(__FILE__)) . "/config.php"); 4 // fonction THELIA 5 include_once("config.php"); 5 6 /***************************************************************************** 6 7 * -
_plugins_/transaction/paiement/cic/config.php
r43122 r43248 1 1 <?php 2 2 3 $tpe=" ";4 $soc=" ";5 $key=" ";3 $tpe="1234567"; 4 $soc="0123456789ABCDEF0123456789ABCDEF01234567"; 5 $key="test"; 6 6 $motdepasse=""; 7 7 $retourok=""; -
_plugins_/transaction/paiement/cic/paiement.php
r43122 r43248 38 38 39 39 <?php 40 $total = 200; // test40 $total = $_REQUEST['champ_montant_selection_1']; // test 41 41 ?> 42 42 -
_plugins_/transaction/paiement/cmcic/config.php
r43196 r43248 13 13 14 14 15 //code soci été15 //code socit fourni par votre tablissement bancaire 16 16 define ("CMCIC_CODESOCIETE", "codesociete"); 17 17 … … 19 19 //ne pas toucher 20 20 define ("CMCIC_VERSION", "3.0"); 21 22 //serveur de paiement23 //serveur de test, supprimer une fois vos tests effectués24 define ("CMCIC_SERVEUR", "https://ssl.paiement.cic-banques.fr/test/");25 //serveur de production, décommenter lorsque votre statut est en production en supprimant les deux // au début de la ligne suivante26 //define ("CMCIC_SERVEUR", "https://ssl.paiement.cic-banques.fr/");27 28 21 29 22 //url de retour ok -
_plugins_/transaction/paiement/cmcic/paiement.php
r43196 r43248 21 21 // Warning !! CMCIC_Config contains the key, you have to protect this file with all the mechanism available in your development environment. 22 22 // You may for instance put this file in another directory and/or change its name. If so, don't forget to adapt the include path below. 23 require_once("config.php"); 23 24 session_start(); 25 26 // On récupère la banque à utiliser 27 define ("CMCIC_SERVEUR", $_SESSION['banque']); 28 29 require_once("config.php"); 24 30 25 31 // PHP implementation of RFC2104 hmac sha1 --- 26 32 require_once("CMCIC_Tpe.inc.php"); 27 session_start(); 33 28 34 29 35 $sOptions = ""; … … 46 52 $total = $_SESSION['navig']->commande->port;*/ 47 53 48 $total = $_SESSION['total']; // test54 $total = $_SESSION['total']; 49 55 50 56 $sMontant = $total; -
_plugins_/transaction/paiement/cmcic/plugin.xml
r43196 r43248 10 10 <lien>http://contrib.thelia.fr/spip.php?article143</lien> 11 11 <documentation>Readme.txt</documentation> 12 <etat> production</etat>12 <etat>dev</etat> 13 13 <install>http://contrib.thelia.fr/IMG/zip/cmcic.zip</install> 14 14 </plugin> -
_plugins_/transaction/saisies/montant_selection.yaml
r43119 r43248 107 107 label: '<:transaction:saisie_montant_selection_titre:>' 108 108 datas: 109 choix1: '<:transaction:saisie_radio_defaut_choix1:>'110 choix2: '<:transaction:saisie_radio_defaut_choix2:>'111 choix3: '<:transaction:saisie_radio_defaut_choix3:>'109 15: '<:transaction:saisie_radio_defaut_choix1:>' 110 50: '<:transaction:saisie_radio_defaut_choix2:>' 111 100: '<:transaction:saisie_radio_defaut_choix3:>' -
_plugins_/transaction/traiter/paiement_cic.php
r43131 r43248 6 6 function traiter_paiement_cic_dist($args, $retours){ 7 7 8 $tpe=""; 9 $soc=""; 10 $key=""; 11 $motdepasse=""; 12 $retourok=""; 13 $retourko=""; 14 15 $dir="/"; 16 $serveur="https://ssl.paiement.cic-banques.fr"; 17 18 $retours['redirect'] = $serveur; 8 $retours['redirect'] = find_in_path("paiement/cic/paiement.php"); 19 9 20 10 return $retours; -
_plugins_/transaction/traiter/paiement_cic.yaml
r43131 r43248 10 10 explication: '<:formidable:traiter_paiement_cic_activation_explication:>' 11 11 forcer_type: [cic_paiement_activation,hidden] 12 cacher_option_intro: false 12 13 env: true -
_plugins_/transaction/traiter/paiement_cmcic.php
r43197 r43248 5 5 6 6 function traiter_paiement_cmcic_dist($args, $retours){ 7 7 $formulaire = $args['formulaire']; 8 $options = $args['options']; 9 $saisies = unserialize($formulaire['saisies']); 10 $traitements = unserialize($formulaire['traitements']); 11 $champs = saisies_lister_champs($saisies); 12 8 13 // Empecher le traitement en AJAX car on sait que le formulaire va rediriger autre part 9 14 refuser_traiter_formulaire_ajax(); … … 12 17 session_start(); 13 18 19 // Le serveur doit-il être appelé en mode test ou prod ? 20 if ($options['champ_test'] == "test"){ $test = "test/"; } 21 if ($options['champ_test'] == "prod"){ $test = ""; } 22 23 // On récupère la banque à utiliser et on établi une variable de session contenant l'adresse du serveur 24 if ($options['champ_banque']){ 25 switch ($options['champ_banque']) { 26 case "banque1": 27 $_SESSION['banque'] = "https://ssl.paiement.cic-banques.fr/" . $test; 28 break; 29 case "banque2": 30 $_SESSION['banque'] = "https://paiement.creditmutuel.fr/" . $test; 31 break; 32 case "banque3": 33 $_SESSION['banque'] = "https://ssl.paiement.banque-obc.fr/" . $test; 34 break; 35 } 36 } 37 38 14 39 if ($_REQUEST['montant_1']) $_SESSION['total'] = $_REQUEST['montant_1']; 15 40 if ($_REQUEST['montant_selection_1']) $_SESSION['total'] = $_REQUEST['montant_selection_1']; 41 16 42 17 43 $_SESSION['ref'] = uniqid(); -
_plugins_/transaction/traiter/paiement_cmcic.yaml
r43198 r43248 4 4 options: 5 5 - 6 saisie: ' hidden'6 saisie: 'selection' 7 7 options: 8 nom: 'champ_paiement_cmcic_activation' 9 label: '<:formidable:traiter_paiement_cmcic_activation_label:>' 10 explication: '<:formidable:traiter_paiement_cmcic_activation_explication:>' 11 forcer_type: [cmcic_paiement_activation,hidden] 8 nom: 'champ_banque' 9 label: '<:transaction:traiter_choix_banque_label:>' 10 explication: '<:transaction:traiter_choix_banque_explication:>' 11 cacher_option_intro: 'oui' 12 datas: 13 banque1: '<:transaction:banque_selection_1:>' 14 banque2: '<:transaction:banque_selection_2:>' 15 banque3: '<:transaction:banque_selection_3:>' 12 16 env: true 17 - 18 saisie: 'radio' 19 options: 20 nom: 'champ_test' 21 label: '<:transaction:traiter_choix_test_label:>' 22 explication: '<:transaction:traiter_choix_test_explication:>' 23 datas: 24 test: '<:transaction:banque_test:>' 25 prod: '<:transaction:banque_prod:>' 26 defaut: 'test'
Note: See TracChangeset
for help on using the changeset viewer.