ihucos / counter.dev

Web Analytics made simple
https://counter.dev
GNU Affero General Public License v3.0
914 stars 39 forks source link

Donation don't work #25

Closed jcubic closed 3 years ago

jcubic commented 3 years ago

I just wanted to donate and the paypal button don't work. Looks like error in PayPal you should report this. This is the error in console

assertion.js:64 Uncaught TypeError: Parameter `currency.value` must be a number or a string representing a canonical number (e.g, `"9999.99"`), not string `"20,00"`
    at u (assertion.js:64)
    at c (assertion.js:118)
    at assertCanonicalNumberType (numberHelpers.js:34)
    at h.value [as formatCurrency] (number.js:238)
    at y (formator.js:114)
    at Object../utility/getTemplateData.js (getTemplateData.js:71)
    at n (bootstrap:19)
    at Module../routes/member.js (member.js:4177)
    at n (bootstrap:19)
    at bootstrap:83

which is stupid because you can't type 20.00 only 20,00 that is not valid according to assertion.js. Maybe the issue with localization some countries use , (like Poland) some . (USA).

ihucos commented 3 years ago

Thanks! That is weird, especially that paypal throws an js exception. I regenerated and changed the code. The code used previously has &locale.x=en_DE in it, maybe it's related to this.

ihucos commented 3 years ago

Reopen if it persists. Thanks for proving a pay as you want monetization model can work ;-)

jcubic commented 3 years ago

Unfortunately there is still an error. Maybe you should report this to PayPal.

jcubic commented 3 years ago

No sorry, it works I was using same link because didn't refreshed the website. One thing the transaction fee checkbox disappeared (I think it was about ~0,85).