So we're using the react-stripe-js to render Stripe elements on the page. When we render the Stripe elements using the JavaScript returned by the STRIPE_JS_HOST/v3/, it renders every component each time we call create. Please check out the example below.
So we're using the react-stripe-js to render Stripe elements on the page. When we render the Stripe elements using the JavaScript returned by the
STRIPE_JS_HOST/v3/
, it renders every component each time we callcreate
. Please check out the example below.Here is a code example.
Expected Result
Actual Result
It looks like we have the parameters, we just need to dynamically render the correct fields: https://github.com/thoughtbot/fake_stripe/blob/master/lib/fake_stripe/assets/v3.js#L24
Happy to submit a PR if other people are seeing this issue as well.