Stripe add billing method on form does not work

I have just upgraded to Pro and set it up correctly (I believe) stripe is set as my only payment gateway but when I generate a form it has an (empty) dropdown box at the top called “Checkout Options” and the button called add billing method does nothing (from the screenshots I have seen I would also expect this to have a stripe logo on it which it does not)

It seems to me that it is not recognizing Stripe as a billing method and so thinks there are none. I am not sure what to check. I am in test mode and I have set the webshook on stripe in test mode.

Is there somewhere apart from other payment gateways where I need to enable stripe? any other ideas on what to check

Thanks

PS: I ran the S2Member php checking program on my server and got a few errors, there are all fixed not but the problem persists.

PPS: A workaround for the empty checkout options box is to treat it as you would if you had multiple options and create a dropdown with only one option). I subsequently read of other users taking this route!

The most likely cause of the Stripe Billing Method button not working is a JavaScript error. Please right-click anywhere on the Page with the Pro-Form and select Inspect. Then click the Console tab when the Developer Console opens. Please copy & paste any error messages to your reply. Please don’t take a screenshot because quite often I cannot read them (I have very poor vision).

Wow errors!!! Not sure what they mean though

/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_css=1&qcABC=1&ver=170524-170524-2604254108 Failed to load resource: the server responded with a status of 404 (Not Found)
jquery-migrate.min.js:2 JQMIGRATE: Migrate is installed, version 1.4.1
www.cmescanner.com/:1 This page includes a password or credit card input in a non-secure context. A warning has been added to the URL bar. For more information, see https://goo.gl/zmWq3m.
s2member-o.php Failed to load resource: the server responded with a status of 404 (Not Found)
s2member-o.php Failed to load resource: the server responded with a status of 404 (Not Found)

When s2member-o.php is not found it almost means that s2Member is not installed correctly. Check the location of the s2Member and s2Member Pro folders. They should be as detailed in this KBA: https://s2member.com/kb-article/installing-s2member/.

If both are installed in the correct location, look for the s2member-o.php file. It should be in the wp-content/plugins/s2member directory.

Yes the file structure is exactly as per the KB and s2member-o.php is in s2member folder.

I tried to uninstall and reinstall the plugins and start again but they saved all the old settings is a there a way to remove the old settings and start afresh?

@djellis73 See this article: Mod Security (Odd 403, 503, 500 Errors). You most likely have some server-side software that is blocking access to the s2member-o.php file for some reason.

1 Like

JQMIGRATE: Migrate is installed, version 1.4.1
s2member-o.php:1 Failed to load resource: the server responded with a status of 404 (Not Found)
(index):1 [Intervention] Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: https://www.ecommvip.com/wp-content/themes/memberlite/font-awesome/webfonts/fa-solid-900.woff2
Navigated to https://www.ecommvip.com/ecommvip/
jquery-migrate.min.js?ver=1.4.1:2 JQMIGRATE: Migrate is installed, version 1.4.1
(index):395 GET https://www.ecommvip.com/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_js_w_globals=1&qcABC=1&ver=170722-170722-753454219 404 (Not Found)

Looking at the console while loading that URL, if I remove the variables I get a 200 status. https://www.ecommvip.com/wp-content/plugins/s2member/s2member-o.php

But if I add even part of them back I get the 404. https://www.ecommvip.com/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_js_w_globals=1

So the file is there, but something is blocking it when the address gets longer, or something is detected in it.

Please see: https://s2member.com/kb-article/mod-security-odd-403-503-500-errors/

I hope that helps. :slight_smile:

1 Like

Also make sure to disable all kind of caching and optimizing plugins - autoptimize is a likely culprit.

1 Like