flowcore-io / luttaka-open

The open source event experience app powered by the Flowcore Data Management Platform
https://luttaka.com
MIT License
12 stars 11 forks source link

Only show available currencies when selecting the currency for the ticket #100

Closed olavurellefsen closed 5 months ago

olavurellefsen commented 6 months ago

Is your improvement request related to a specific problem in the code or project structure? Please describe. 👨‍💻 When creating a conference, If you choose a currency that is not supported by Stripe, you get an error saying "conference creation failed, rolling back".

Describe the improvement or refactor you would like 🎯 Only list the available (Stripe) currencies in the (currency) codes constant in create-conference.form.tsx

Explain why this improvement or refactor is beneficial 🎖️ It is annoying for organizers that the conference that they are trying to create fails without any good explanation.

Describe alternatives you've considered 🔄 An alternative would be to let the user know why the conference creation failed.

Additional context or comments This is from the Vercel log: Error occurred: C [Error]: Invalid currency: tnd. Stripe accounts in US do not support tnd. Your account currently supports these currencies: usd, aed, afn, all, amd, ang, aoa, ars, aud, awg, azn, bam, bbd, bdt, bgn, bif, bmd, bnd, bob, brl, bsd, bwp, byn, bzd, cad, cdf, chf, clp, cny, cop, crc, cve, czk, djf, dkk, dop, dzd, egp, etb, eur, fjd, fkp, gbp, gel, gip, gmd, gnf, gtq, gyd, hkd, hnl, hrk, htg, huf, idr, ils, inr, isk, jmd, jpy, kes, kgs, khr, kmf, krw, kyd, kzt, lak, lbp, lkr, lrd, lsl, mad, mdl, mga, mkd, mmk, mnt, mop, mur, mvr, mwk, mxn, myr, mzn, nad, ngn, nio, nok, npr, nzd, pab, pen, pgk, php, pkr, pln, pyg, qar, ron, rsd, rub, rwf, sar, sbd, scr, sek, sgd, shp, sle, sos, srd, std, szl, thb, tjs, top, try, ttd, twd, tzs, uah, ugx, uyu, uzs, vnd, vuv, wst, xaf, xcd, xof, xpf, yer, zar, zmw.

More information in the Stripe currencies documentation

olavurellefsen commented 5 months ago

This issue can be closed when Stripe is removed from the project.

olavurellefsen commented 5 months ago

Stripe is not supported any more