ajout du hook pour paypal
authorPascal Corpet <pascal.corpet@m4x.org>
Sat, 2 Apr 2005 15:57:15 +0000 (15:57 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:28:22 +0000 (23:28 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-526

hooks/money.inc.php
include/money/paypal.inc.php

index ea22789..5376b30 100644 (file)
@@ -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 = '';
 }
 
 // }}}
index 0d57b01..4290051 100644 (file)
@@ -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',