Skip to content

Fix issue when script is reloaded by changes of payment processors

Rich requested to merge artfulrobot/stripe:fix-script-reload-issue into master

There was an issue that occurred when user changes mind between stripe and other payment processor.

That causes the stripe script to be loaded and excecuted multiple times, which has side effects.

This change ensures only one copy of the script results in DOM objects and handles 'booting' the Stripe Elements.

Merge request reports