mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Fix: Bad url key
This commit is contained in:
@@ -160,7 +160,7 @@ function getPaypalPaymentUrl($source='',$ref='',$amount=0,$freetag='')
|
||||
if (! empty($source) && ! empty($ref))
|
||||
{
|
||||
$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 == 'facture') $source = 'invoice';
|
||||
|
||||
Reference in New Issue
Block a user