-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not load payment element #1727
Comments
Sorry for the delay and the trouble you're experiencing @darylknight. I don't think this is related to #1672, as that was corrected. 🙂 If you try updating to 5.9.1.1 and enable the new Debug log (Settings -> General -> Integrations Logging Level), and load the form again, what shows up in the log? Also, please review the Best Practices guide here: If the issue persists, can you attach a screenshot of what the Stripe integration (inside the Integrations tab of the builder) looks like? And also what the option values look like for the Thanks! 🙂 |
Ok, I can duplicate this issue as well. It's pretty much the same issue as #1672, as you mentioned, but applies to Radio fields specifically (whereas the fix was applied within the context of the Calculation field type. Note Interestingly enough, there was a fresh 5.9 issue with Calculation fields in the builder, so please update to Freeform 5.9.1.2+ first. I will have a developer work on a fix for this, but in the meantime, if you want to get things resolved immediately, you can work around this by adding a Calculation field type to your form:
It should work now. Once the new fix for Radios (and likely other) field types is in, you can switch the Stripe Amount field back to Warning One last note... in your Donation form that you send in private support ticket, you are not selecting any default radio option, so that will always fail. If you wish to have the Stripe field on a one-page form, you'll need to have a default option selected. This is out of our control, as it is a Stripe requirement. If you wish to have no default option selected, the Stripe field will have to be on a later page in the form. Please let me know if you have any further questions. 🙂 |
Hey Kelsey, Thank you for such a detailed reply and the workaround. I've just applied this to both forms and they are both working with the workaround. Although it might be worth pointing out that the Become a friend form continued to show "Could not load payment element" until I removed the Stripe field and re-added it again. As far as I could tell both forms were identical but it still wasn't working. All good now. I've used a hidden calculation field as you suggested, but getting that patch live would be great too. Thank you! |
The real fix should be available later today or early next week. 🙂 |
This should now be resolved in Freeform 5.9.2+ 🙂 |
What happened?
There's a live form here that I recently upgraded from Freeform 4 to 5, and I cannot get the Stripe integration to load. The keys are correct and there's a green "authorized" for the integration on the backend. It's not a multipage form.
The stripe field just shows "Could not load payment element.". The Freeform docs only mention this in the context of a multipage form.
The value is meant to be coming from the Individual/Clan (Family) radio field, which have 25 and 50 values. Settings screenshot attached.
Am I doing something wrong, or is this related to #1670 ?
Errors and Stack Trace (if available)
How can we reproduce this?
Freeform Edition
Pro
Freeform Version
5.8.7 (also happens on 5.9.0)
Craft Version
4.13.7
Additionally, when I view this site in local dev, I see this error in the console:
The text was updated successfully, but these errors were encountered: