From c77dc0f031ea2e3e272eaeed74cb009f80816a10 Mon Sep 17 00:00:00 2001 From: Pascal Corpet Date: Sat, 2 Apr 2005 15:57:15 +0000 Subject: [PATCH] ajout du hook pour paypal git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-526 --- hooks/money.inc.php | 2 ++ include/money/paypal.inc.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hooks/money.inc.php b/hooks/money.inc.php index ea22789..5376b30 100644 --- a/hooks/money.inc.php +++ b/hooks/money.inc.php @@ -29,6 +29,8 @@ class MoneyConfig var $mpay_def_id = 0; var $mpay_def_meth = 0; var $mpay_tprefix = 'paiement.'; + var $paypal_site = ''; + var $paypal_comte = ''; } // }}} diff --git a/include/money/paypal.inc.php b/include/money/paypal.inc.php index 0d57b01..4290051 100644 --- a/include/money/paypal.inc.php +++ b/include/money/paypal.inc.php @@ -51,7 +51,7 @@ class PayPal // revienne sur le site global $globals; - $this->urlform = 'https://www.sandbox.paypal.com/cgi-bin/webscr'; + $this->urlform = 'https://'.$globals->money->paypal_site.'/cgi-bin/webscr'; $roboturl = str_replace("https://","http://",$globals->baseurl) ."/paiement/paypal_retour.php?uid=" @@ -60,7 +60,7 @@ class PayPal $this->infos = Array(); $this->infos['commercant'] = Array( - 'business' => 'caribou+paypalsandbox@m4x.org', + 'business' => $globals->money->paypal_compte, 'rm' => 2, 'return' => $roboturl, 'cn' => 'Commentaires', -- 2.1.4