Customers can't create billing method, errors in console

I have a client using s2member to manage online magazine issues (Pdfs). People become E-Subscribers by signing up to an s2Member Pro Form using Stripe. However there are errors in the console and the link to create a billing method does not work. The errors on the page appear on page load, not just on clicking the link. But the link does nothing as well. So at this point no one can submit the form because they cannot create a billing method.

In Firefox console: https://www.screencast.com/t/gjnsCtCcpplX
In Chrome console: https://www.screencast.com/t/KUS6xUcTb

Honestly, it would be ideal if they could do all this through their WooCommerce shopping cart, this will be the only thing purchased outside that, and it created friction in their experience. But I’m not aware of Woo integration on your end (is that still true)?
Thanks
Mick

It looks like your problem is caused by Cloudflare’s Rocket Loader, which is notorious for causing all sorts of JavaScript problems. For years, Cloudflare called it experimental for that reason. (I don’t know if they still do.)

1 Like

Well, I’ll be… Thanks Tim, that seemed to fix the problem with the billing method.

2 Likes

All JS minification has the same possible issue. Minifiers shrink code and variable names so “firstname” might be changed to “f” BUT there might be another thing changed to “f” somewhere else. Quick minifiers can’t the difference.
There are slower ones that can that are made for developers (I use them), but Cloudflare does it in real time, which slows down your site.

1 Like