Gelöst PayPal QR Code Fail

Balakirev

Aktives Mitglied
18. September 2019
17
7
Hello Everyone,

Can't make Paypal QR code working, something is wrong with the payment amount in the link. In the template settings everything is standart.
Code:
Drawing (JTL_QR_PayPalCode("account:" + Report.InvoicePaymentInformation.PayPalId +";amount:" + str$(Report.OpenGrossPrice, 0,2) + ";message:" + Report.InvoicePaymentInformation.TransferEndToEndId +""))

after scanning the coder i receive this link:
Code:
https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=info%40hiden.de&item_name=RE0043&amount=23%2C820.00&currency_code=EUR&bn=JTL_WaWi_Invoice

so the amount in the link is 23%2C820.00 but it should be 238.20. Paypal didn't like it and do not allow to make a payment with this link.
 

Balakirev

Aktives Mitglied
18. September 2019
17
7
Ok, here is the solution that works. i just take the part of the code from GIRO QR, don't know if it right but it is working for me.

Code:
Drawing (JTL_QR_PayPalCode("account:" + Report.InvoicePaymentInformation.PayPalId +";amount:" + LocNumber$(Report.OpenGrossPrice,JTL_GetCulture(Report.CountryISO, Report.LanguageISO, Report.CurrencyISO), 2) + ";message:" + Report.InvoicePaymentInformation.TransferEndToEndId +""))
 
  • Gefällt mir
Reaktionen: Guybrush

Ähnliche Themen