#Emmanuel G.
1 messages · Page 1 of 1 (latest)
I believe we try to find existing instances of the Stripe script and window.Stripe based on the source here:
https://github.com/stripe/stripe-js/blob/master/src/shared.ts#L83-L90
If you try to initialize twice you might be presented with an integration error about that. I'd recommend trying to manage you Stripe instance and provider centrally, if possible.
But if you have a use case where this is giving you trouble, please share the details of that
Ya so for the checkoutform, we load a stripe instance, but currently that instance only gets loaded if you load our stripe component to purchase the product. However we utilize the stripe instance to perform save payment method purchases, and that also needs a stripe instance. so it was more of a check to see if its okay to load it in two places,
I think so, but I might suggest there should be some common container upon which both depend, but its hard to say without knowing the details of the integration or if its causing specific issues.
Is this something that exists already, or that you're scoping out?
Already exists. But should be straight forward to move it to a common container.
I appreciate the quick response
NP!