Posted: April 30, 2015 at 12:52 pm
Ideally it would not even be possible to do this… but just to see what happens, I tried it and got the error message below. The second-best solution would be to say words to the effect of “Please click on ‘Pay Now’ first”. What’s the solution to this? The following errors have occurred: |
|
Hi Jonathan, Are you using the latest version of both core and the Stripe Add-on. The expected behaviour is that the ‘Proceed to Finalize Registration’ button is inactive until payment is made with Stripe. This works on my test sites, I can not click the button at all before making a payment. Can you open Chrome dev tools and load the page again, check if any JavaScript errors are being thrown within console. |
|
Yes, latest version of WP, ee4 and stripe add-on. I’ll check for errors this afternoon. In the meantime, you could try it out using Firefox (latest version) – thats where I got the error. It happened a few times. |
|
Sorry I should have clarified what I had tested above. I tested using Chrome, Firefox and IE. All work as expected. IE – http://take.ms/C4Z0e The button is not active an I can not click it. |
|
Can you find out my website’s url and (without identifying it here) check it out? Maybe it’s a theme thing? I’m not at the computer so can’t look into it myself right now. Thanks |
|
I can see the issue on your site, but I’m unsure as to what’s causing it. There are no JS errors so currently I suspect a Theme or plugin conflict. You can test another theme using the Theme Test Drive plugin, that allows you to switch theme without doing so for all users. Switch to a default theme such as twenty fourteen and re-test. If still the same, you’ll need to disable all non EE plugins and retest, then activate each plugin individually and reload the page until the button remain active again. |
|
I tried with Theme Test Drive using the Twenty Fourteen theme and it was the same. I tried disabling all plugins (except EE and EE Stripe add-on) and it was the same (with my own theme or Twenty Fourteen). Then I noticed that 1. When the page loads for the first time, with Stripe as default, it is possible to click “Finalise” before “Pay”. 2. When you click to Paypal, then click back to Stripe again, it is no longer possible to click “Finalise” before “Pay”. This is the same nomatter what the plugin or theme combination (as above). Then I thought maybe it was something to do with Stripe being the “open by default” option, so I turned that off. The situation now is that there are three alternatives, which all work fine: 1. If you click on Stripe, the “Pay Now” button is clickable but the “Finalise” button becomes greyed out 🙂 2. If you click on Paypal it shows the options as normal. 3. If you click on “Finalise” it shows the error: “The selected method of payment could not be determined. Please ensure that you have selected one before proceeding.” Incidentally, it would seem better to hide (or at least grey out) the “Finalise” button until a method of payment has been selected or it is otherwise appropriate to click it. So, to cut a long story short, I think it’s a bug relating to the situation where Stripe is the “open by default” option. Apologies in advance if I’m wrong! |
|
Great job on the troubleshooting! I can confirm that is exactly what it is, if Stripe is set to open by default the finalize button is still available. I’ll create a ticket for our developers to investigate this. |
|
Thank you. It was infuriating but interesting at the same time. |
|
|
Troubleshooting usually is frustrating, but once you figure out the issue, it’s very satisfying! |
|
I just ran into this myself and as a workaround for the moment I added a script tag at the end of the template for that page and called SPCO.disable_submit_buttons() This disables the Proceed button as it should have before and then after payment the normal routine picks up and enables it. |
The Stripe add-on just got an update (version 1.0.5) and it includes a little JavaScript fix for the issue reported in this thread. Enjoy! |
|
The support post ‘Stripe – error when click "finalise registration" before "pay now"’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.