Fix: Bad url key
This commit is contained in:
parent
13b50e3dd7
commit
2da59b8727
@ -160,7 +160,7 @@ function getPaypalPaymentUrl($source='',$ref='',$amount=0,$freetag='')
|
|||||||
if (! empty($source) && ! empty($ref))
|
if (! empty($source) && ! empty($ref))
|
||||||
{
|
{
|
||||||
$token='';
|
$token='';
|
||||||
if (! empty($conf->global->PAYPAL_SECURITY_TOKEN)) $token='&securekey='.dol_hash($conf->global->PAYPAL_SECURITY_TOKEN.$source.$ref, 2);
|
if (! empty($conf->global->PAYPAL_SECURITY_TOKEN)) $token='&securekey='.urlencode($conf->global->PAYPAL_SECURITY_TOKEN);
|
||||||
|
|
||||||
if ($source == 'commande') $source = 'order';
|
if ($source == 'commande') $source = 'order';
|
||||||
if ($source == 'facture') $source = 'invoice';
|
if ($source == 'facture') $source = 'invoice';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user