ref add in redirection url to payment page

This commit is contained in:
Dorian Vabre 2021-04-13 15:30:28 +02:00
parent a3e75c587c
commit 339596f134

View File

@ -306,7 +306,8 @@ if (empty($reshook) && $action == 'add') {
$error++;
$errmsg .= $facture->error;
} else {
$redirection = $dolibarr_main_url_root.'/public/payment/newpayment.php?amount='.$project->price_registration.'&source=conferenceattendeesubscription';
$thirdparty->fetch('', '', '', '', '', '', '', '', '', '', $email);
$redirection = $dolibarr_main_url_root.'/public/payment/newpayment.php?amount='.$project->price_registration.'&source=conferenceattendeesubscription&ref='.$thirdparty->ref;
Header("Location: ".$redirection);
exit;
}