Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Beta Payment Element missing types #421

Closed
harrison-carter opened this issue Feb 13, 2023 · 2 comments · Fixed by #427
Closed

[BUG]: Beta Payment Element missing types #421

harrison-carter opened this issue Feb 13, 2023 · 2 comments · Fixed by #427
Labels
bug Something isn't working pinned

Comments

@harrison-carter
Copy link

harrison-carter commented Feb 13, 2023

What happened?

In the docs for the Payment Element Beta provider component, new fields are available to configure the options prop.
https://stripe.com/docs/payments/defer-intent-creation-confirm-server?type=payment&client=react#add-and-configure-the-elements-provider-to-your-payment-page

The interface StripeElementsOptions that this prop inherits is missing the below fields

https://stripe.com/docs/payments/defer-intent-creation?type=payment&client=react#additional-options

  • mode
mode should be one of the following strings: payment, setup, subscription.
  • currency
currency should be one of the following strings: aed, afn, all, amd, ang, aoa, ars, aud, awg, azn, bam, bbd, bdt, bgn, bhd, bif, bmd, bnd, bob, brl, bsd, btn, bwp, byn, byr, bzd, cad, cdf, chf, clf, clp, cny, cop, crc, cuc, cup, cve, czk, djf, dkk, dop, dzd, egp, ern, etb, eur, fjd, fkp, gbp, gel, ghs, gip, gmd, gnf, gtq, gyd, hkd, hnl, htg, huf, idr, ils, inr, iqd, irr, isk, jmd, jod, jpy, kes, kgs, khr, kmf, kpw, krw, kwd, kyd, kzt, lak, lbp, lkr, lrd, lsl, ltl, lvl, lyd, mad, mdl, mga, mkd, mmk, mnt, mop, mro, mur, mvr, mwk, mxn, myr, mzn, nad, ngn, nio, nok, npr, nzd, omr, pab, pen, pgk, php, pkr, pln, pyg, qar, ron, rsd, rub, rwf, sar, sbd, scr, sdg, sek, sgd, shp, skk, sll, sos, srd, ssp, std, svc, syp, szl, thb, tjs, tmt, tnd, top, try, ttd, twd, tzs, uah, ugx, usd, uyu, uzs, vef, vnd, vuv, wst, xaf, xag, xau, xcd, xdr, xof, xpf, yer, zar, zmk, zmw, btc, jep, eek, ghc, mtl, tmm, yen, zwd, zwl, zwn, zwr.
  • amount = typeof number

Environment

No response

Reproduction

No response

@harrison-carter harrison-carter added the bug Something isn't working label Feb 13, 2023
@stale
Copy link

stale bot commented Mar 5, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@bmathews-stripe
Copy link
Contributor

This is resolved now that the feature has been GAd. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pinned
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants