Bienvenue invité ( Connexion | Inscription )
24 Apr 2006, 14:52
Message
#1
|
|
|
Ceinture blanche+ OSC Groupe : Membres Messages : 25 Inscrit : 29-November 05 Lieu : Bruxelles Membre no 8033 |
Bonjour a tous,
Ben tout est dit dans le titre Je recherche des infos sur la configuraton d'Ogone ou j'ai un probleme c'est avec les champs - SHA-1 Signature - contrôle des données de la commande, URL de la page XML que doit je mettre dans ces champs ? Merci Phil -------------------- MS2fr
|
|
|
![]() |
27 Apr 2006, 08:19
Message
#2
|
|
|
Ceinture marron OSC Groupe : Membres Messages : 1514 Inscrit : 3-August 04 Lieu : Brussels, Belgium Membre no 2988 |
voici mon fichier ogone, quelque peu modifié pour enregistré dans le nom de la commande :
numéro du client - produit commandés, au cas où la commande passe chez ogone mais pas chez oscommerce;.. CODE <?php /* $Id: $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License Modified by Frank de Badts (frank@debadts.com) for new osCommerce checkout (>Nov 2002) procedure. Tested with Ogone eCommerce version Jan 2003 and later. For more infomation about OGONE: http://www.ogone.be or http://www.ogone.nl */ class ogone { var $code, $title, $description, $enabled; // class constructor function ogone() { $this->code = 'ogone'; $this->title = MODULE_PAYMENT_OGONE_TEXT_TITLE; $this->description = MODULE_PAYMENT_OGONE_TEXT_DESCRIPTION; $this->enabled = MODULE_PAYMENT_OGONE_STATUS; $this->form_action_url = 'https://secure.ogone.com/ncol/' . MODULE_PAYMENT_OGONE_MODE . '/orderstandard.asp'; } // class methods function javascript_validation() { return true; } function selection() { return array('id' => $this->code, 'module' => $this->title . '<br>' . tep_image(DIR_WS_IMAGES . 'divers/logo_ogone.gif')); } function pre_confirmation_check() { return false; } function confirmation() { return array('title' => tep_image(DIR_WS_IMAGES . 'divers/logo_ogone.gif')); } /* For a detailled spec on these fields for ogone see https://secure.ogone.com/ncol/test/admin_ogone.asp */ function process_button() { global $HTTP_POST_VARS, $customer_id, $order, $currencies; /***** TEAM ADD TO REMEMBER BUYED ARTICLES ********/ for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { $products_listing .= '-'.$order->products[$i]['id']; } /**************************** EOF ***********************/ $ogone_orderID = $customer_id . date('YmdHis'); $ogone_amount = number_format($order->info['total'] * 100 * $order->info['currency_value'], 0, '', ''); $process_button_string = tep_draw_hidden_field('orderID', $ogone_orderID) . tep_draw_hidden_field('pspid', MODULE_PAYMENT_OGONE_PSPID) . tep_draw_hidden_field('RL', 'ncol-2.0') . tep_draw_hidden_field('currency', $order->info['currency']) . tep_draw_hidden_field('language', MODULE_PAYMENT_OGONE_LANGUAGE) . tep_draw_hidden_field('amount', $ogone_amount) . /* tep_draw_hidden_field('TP','http://your_template.htm') . Note: Use only for Ogone checkout static template */ tep_draw_hidden_field('TITLE',MODULE_PAYMENT_OGONE_TITLE_OGONE) . tep_draw_hidden_field('BGCOLOR','white') . tep_draw_hidden_field('TXTCOLOR','black') . tep_draw_hidden_field('TBLBGCOLOR','white') . tep_draw_hidden_field('TBLTXTCOLOR','black') . tep_draw_hidden_field('BUTTONBGCOLOR','white') . tep_draw_hidden_field('"BUTTONTXTCOLOR','#FFFFFF') . tep_draw_hidden_field('"LOGO','http://www.monsite.be/images/oscommerce.gif') . tep_draw_hidden_field('"FONTTYPE','Verdana') . tep_draw_hidden_field('accepturl', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) . tep_draw_hidden_field('declineurl', tep_href_link(FILENAME_SHOPPING_CART)) . tep_draw_hidden_field('exceptionurl', tep_href_link(FILENAME_SHOPPING_CART)) . tep_draw_hidden_field('cancelurl', tep_href_link(FILENAME_SHOPPING_CART)) . tep_draw_hidden_field('CN', $order->customer['firstname'] . ' ' . $order->customer['lastname']) . tep_draw_hidden_field('catalogurl', tep_href_link(FILENAME_DEFAULT)) . tep_draw_hidden_field('owneraddress', $order->delivery['street_address']) . tep_draw_hidden_field('ownerZIP', $order->delivery['postcode']) . /* tep_draw_hidden_field('PM','CreditCard') . */ /* tep_draw_hidden_field('BRAND','VISA') . Note: Optional Payment Method details :If PM/BRAND fields are filled, the buyer is directed immediately to the relevant payment method page */ /* tep_draw_hidden_field('UsedID', '12345') . Note: UserID optional, only for merchants using the Ogone User Manager */ tep_draw_hidden_field('COM', STORE_NAME.'|cID='. $customer_id.'|'.$products_listing) . tep_draw_hidden_field('email', $order->customer['email_address']); include(DIR_WS_CLASSES . 'sha.php'); $sha = new SHA; $hasharray = $sha->hash_string($ogone_orderID . $ogone_amount . $order->info['currency'] . MODULE_PAYMENT_OGONE_PSPID . MODULE_PAYMENT_OGONE_SHA_STRING); $process_button_string .= tep_draw_hidden_field('SHASign', $sha->hash_to_string($hasharray)); return $process_button_string; } function before_process() { return false; } function after_process() { return false; } function output_error() { return false; } function check() { if (!isset($this->check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_OGONE_STATUS'"); $this->check = tep_db_num_rows($check_query); } return $this->check; } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Allow OGONE Payments', 'MODULE_PAYMENT_OGONE_STATUS', '1', 'Do you want to accept OGONE payments?', '6', '20', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('OGONE Status Mode', 'MODULE_PAYMENT_OGONE_MODE', 'test', 'Status mode for OGONE payments? (test or prod)', '6', '21', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('OGONE Merchant ID', 'MODULE_PAYMENT_OGONE_PSPID', 'TESTSTD', 'Merchant NCOL ID', '6', '22', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('OGONE Client Language', 'MODULE_PAYMENT_OGONE_LANGUAGE', 'en_US', 'Client language', '6', '23', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('OGONE SHA String', 'MODULE_PAYMENT_OGONE_SHA_STRING', '', 'SHA string used for the signature (set at the merchant administration page)', '6', '24', now())"); } function remove() { $keys = ''; $keys_array = $this->keys(); for ($i=0; $i<sizeof($keys_array); $i++) { $keys .= "'" . $keys_array[$i] . "',"; } $keys = substr($keys, 0, -1); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in (" . $keys . ")"); } function keys() { return array('MODULE_PAYMENT_OGONE_STATUS', 'MODULE_PAYMENT_OGONE_MODE', 'MODULE_PAYMENT_OGONE_PSPID', 'MODULE_PAYMENT_OGONE_LANGUAGE', 'MODULE_PAYMENT_OGONE_SHA_STRING'); } } ?> Est-ce que quelqu'un est arrivé à avoir les champs suivants complétés : - Montant de la commande: 0.00 EUR - Société: - Livraison client: - Adresse: - Type de livraison: - Numéro de TVA: - Référence: - TVA de la commande: 0.00 EUR ?? merci -------------------- Construisons l'avenir ensemble
|
|
|
phildebxl config Oscommerce & Ogone 24 Apr 2006, 14:52
thematrixisme salut,
tu ne dois pas renseigner ces champs. en e... 25 Apr 2006, 13:01
phildebxl bon ca c'est OK,
maintenant dans la partie adm... 25 Apr 2006, 15:18
inos je fais faire un petit recap de toutes parties ... 26 Apr 2006, 21:09
phildebxl Ca marche !!!!
le payement passe b... 27 Apr 2006, 01:47
inos CITATION(phildebxl @ 26 Apr 2006, 19:47) ... 27 Apr 2006, 12:26
phildebxl J'ai bien suivi pas à pas mais rien ne va
- p... 27 Apr 2006, 15:33
inos CITATION(phildebxl @ 27 Apr 2006, 09:33) ... 27 Apr 2006, 15:58
thematrixisme CITATIONmaintenant dans la partie admin les point ... 25 Apr 2006, 15:46
phildebxl dans la partie admin d'Ogone > information ... 25 Apr 2006, 15:48
inos salut à toi,
j'utilise moi aussi oscommerc av... 26 Apr 2006, 17:24
phildebxl c'est la partie admin d'ogone les parametr... 26 Apr 2006, 18:30
noob Bonjour a tous,
J'ai suivi scrupuleusement le... 17 Jul 2006, 12:55
thematrixisme qui est-ce qui te renvoit cette erreur? 17 Jul 2006, 14:36
noob CITATION(thematrixisme @ 17 Jul 2006, 15... 17 Jul 2006, 18:35
olivier56 Tu dois renseigner chez Ogone dans tes paramètre d... 17 Jul 2006, 21:19
noob Merci bcp pour vos réponses ! 17 Jul 2006, 23:54
noob CITATION(noob @ 18 Jul 2006, 00:54) 18463... 18 Jul 2006, 14:47
noob Je vais poser ma question différemment :
Les frai... 19 Jul 2006, 11:46
inos CITATION(noob @ 19 Jul 2006, 05:46) 18485... 8 Aug 2006, 13:44
azer i lya plusieurs contrib ogone , laquelle avez vous... 8 Nov 2006, 10:04
ippolis Je ne sais egalement, après les avoir toutes downl... 14 Nov 2006, 01:07
micm CITATIONCITATION(phildebxl @ 26 Apr 2006, 19:47)
... 3 Jan 2007, 11:55
thematrixisme mais comment est-ce que ogone pourrait accéder à ... 3 Jan 2007, 11:59
micm Salut thematrixisme,
tu me poses une colle
j... 3 Jan 2007, 12:39
vinarte CITATION(micm @ 3 Jan 2007, 11:55) 213962... 15 Jan 2007, 17:43
micm CITATIONMerci de vos réponses qui m'ont déjà f... 15 Jan 2007, 18:30
inos bonjour messieurs,
Puis-je me permettre de vous d... 23 Jan 2007, 19:44
micm en effet cela fonctionne en mettant uniquement ... 24 Jan 2007, 12:01
defdef bonjour,
j'ai un probleme apparement classiqu... 12 Feb 2007, 14:16
eterc Faut il absoluement se trouver sur un serveur IIS ... 3 May 2007, 13:02
GaetanM eterc > Je ne pense pas, en tous cas, il foncti... 3 May 2007, 17:06
Programmer Hi Members,
In ogone configuration, I passed ... 1 Aug 2007, 10:35
FrancoisO Bonjour à tous !
voila, j'ai crée un comp... 14 Sep 2007, 09:42
micm tu trouveras la contribution ici "http://www.... 14 Sep 2007, 17:20
FrancoisO Merci micm !
J'essaie de configurer tout ... 19 Sep 2007, 13:49
FrancoisO Re..
Sur la page de confirmation de la commande d... 19 Sep 2007, 15:17
micm tu as la réponse pour les parametrage en page 2 de... 25 Sep 2007, 14:44
FrancoisO Oui, j'ai configuré cette page en suivant les ... 26 Sep 2007, 09:40
micm CITATION(FrancoisO @ 26 Sep 2007, 10:40) ... 26 Sep 2007, 10:07
FrancoisO Voila,
je suis sur la page catalog/checkout_conf... 26 Sep 2007, 10:32
micm CITATION(FrancoisO @ 26 Sep 2007, 11:32) ... 28 Sep 2007, 06:41
FrancoisO Ok je vois pour le 2.1, je mets l'IP de mon si... 28 Sep 2007, 14:25
FrancoisO Bon bon bon..
maintenant je travaille en ligne di... 2 Oct 2007, 10:36
FrancoisO Bonjour à tous...
on avance..
Le paiement fonct... 3 Oct 2007, 15:22
FrancoisO Bonjour...
Je viens de relire tous les messages, ... 24 Oct 2007, 13:33
FrancoisO Bonjour..
je m'apercois maintenant que, en fa... 25 Oct 2007, 09:15
terzag Bonjour,
J'ai un problème pour un site dévelop... 30 Oct 2007, 14:41
FrancoisO Salut..
je viens de reconfigurer mon site mais ap... 31 Oct 2007, 16:41
sayrus Citation c'est la partie admin d'ogone les... 6 May 2008, 08:39
Larson Y a t'il encore quelqu'un qui suit cette c... 2 Jun 2009, 14:32
didier7340 Bonjour,
sans dérangé le post technique, quel est... 12 Jun 2009, 03:27
timothy Bonjour,
J'ai aussi suivi tous les instructio... 21 Jun 2009, 15:01
timothy J'ai trouvé plus exacte ou se trouve l'err... 21 Jun 2009, 17:35
timothy Grace à l'aide de Jan Zonjee j'ai trouvé l... 21 Jun 2009, 19:54
timothy Est-ce que quelqu'un sais comment faire pour e... 22 Jun 2009, 23:37
polo Citation (timothy @ 21 Jun 2009, 18:35) J... 22 Dec 2012, 01:20![]() ![]() |
|
Version bas débit | Nous sommes le : 26th May 2013 - 08:04 |
| Ce site est déclaré auprès de la commision Nationale de l'Informatique et des Libertés (déclaration n°: 1043896) |