Can we access cart amount?

Hi, I have just started using dolibarr and its in setup phase. I just wanted to integrate dynamic QR as a payment method. I need a suggestion for below workflow.

Made a cart → Amount Calculated → When I press a custom payment button, it should open a url (which generates the qr for the total cart amount.)

I will be able to generate qr with url, but need to get the total amount to my url as parameter.

Please suggest.

Thanks in advance.

For the bon,
There is already a qr function. I added the invoice / bon QR code for German tse info with this feature. And for sure you can access the total amount there.

If you need more info, just write.
Greetings,
Martin