Stripe JS error while creating new payment method


This error while trying to create a new Payment Method.

The plugin Stripe.js / element Stripe element threw the following error: TypeError: Cannot read property 'destroy' of undefined
    at (PLUGIN_Stripe-js-initialize--Stripe-element-.js:4:471)
    at eval (PLUGIN_Stripe-js-update--Stripe-element-.js:3:395) (please report this to the plugin author)

Any idea, someone ?

Thank you,


Auto answer for posterity: Stripe’s error log is very accurate. In this case, I was using my real credit card in the test environment, whereas you have to limit yourself to the numbers provided for that (such as 4242 4242 4242 4242).

Now, payment method has been correctly created.

I hope this will help other adventurers.


Did not work for me, unfortunately. I do have correct APUI for Dev but still get error.