Payment link missing "ref" field

Hi,
I just activated and configured Paypal and Stripe modules for payments.
I also enabled, in Settings/PDF, the flag to add into the invoice the payment link but when the link is generated the ref value is missing and the page shown says “Wrong parameters - ref” .
The invoice is Convalidated.

Example:
http://mycompany/public/payment/newpayment.php?source=invoice&ref=

I use Dolibarr 17.0.1
Thanks.

I have similar issue, in version18.0.3. After validation of the invoice, the payment link created for Strip works fine, but the embedded url in the pdf invoice has the the same “Bad parameters - ref”, the url stops at ref. there is nothing beyond that like invoice number etc as is in the payment lin.

Look at this link

With PHP Version 7.4, it works fine. With PHP V8.1 the stripe payment link on invoice stops at “ref” and give url does not work!

@nsohani Thanks for you reply and for the topic link.
So, do you suggest su downgrade to PHP v7.4?

I have tried several time PHP 8 and the payment link is incomplete. Same process I repeated with PHP 7.4. It worked all the time. the payment link printed on the PDF is complete and works! It could be the compatibility or Database Driver. I am using Maria Data base, which is fully compatible to Mysql.So try yourself rolling back to PHP 7.4

1 Like