X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fpayment%2Fmoney%2Fpaypal.inc.php;h=3ea2c63e075a1aec1458164fd579f900b230723f;hb=d71cf889a597a64abd6351f9a0097ec9bf9da42c;hp=521733a5ce57ce1e9e866caadc3a4aac30ab34f5;hpb=fa0c836f1588c3cff9ae2fa0c68e55bea99158da;p=platal.git diff --git a/modules/payment/money/paypal.inc.php b/modules/payment/money/paypal.inc.php index 521733a..3ea2c63 100644 --- a/modules/payment/money/paypal.inc.php +++ b/modules/payment/money/paypal.inc.php @@ -33,7 +33,7 @@ class PayPal $this->val_number = $val; } - function prepareform($pay) + function prepareform($pay, $user) { // Documentation: // https://www.paypal.com/developer @@ -43,11 +43,10 @@ class PayPal global $globals, $platal; $this->urlform = 'https://' . $globals->money->paypal_site . '/cgi-bin/webscr'; - $user = S::user(); $roboturl = str_replace("https://","http://",$globals->baseurl) . '/' . $platal->ns . "payment/paypal_return/" . S::v('uid') - . "?comment=" . urlencode(Env::v('comment')) . '?display=' . Post::i('display'); + . "?comment=" . urlencode(Env::v('comment')) . '&display=' . Post::i('display'); $this->infos = array( 'commercant' => array(