Multiple stripe accounts
michaeljonsampson opened this issue · comments
I have a single page app.
Users can create their own registration form with their stripe payment keys.
If one of my users navigates from one form to another the first set of payment keys are applied to the second. The two payment buttons are not on the page at the same time.
Refreshing the page fixes the issue, but it is really bad for me to have the wrong account credited with the payment.
I think this component might need to clear some stripe data on unmount.
Just found the reconfigureOnUpdate
prop.
I'm going to reopen this issue because reconfigureOnUpdate
triggers updates way too often. Would make more sense to just update when key changes, and not worry about reconfigureOnUpdate
prop at all. I'll see if I can put together a PR.