Stripe/forms/gateway clarification

Bit of an office debate going on - Just need to confirm, Can we currently:

a) Take payments on forms using stripe
b) Take payments on events using stripe
c) Is stripe currently setup as a payment gateway or is it something else that is just tacked onto a form
d) Take payments for secure zone access.

Sorry i have been out of the loop for a little bit and would like some clarity on the above. I think the confusion is coming from if stripe, in its current implementation, is a payment gateway or something else.

@James Stripe is a payment gateway. One of my clients has been taking payments on forms since their site went live in April. While I was building the website, I could set the forms to ‘test mode’ to test the whole process without any real charges needing to be made. These test purchases even showed up in my client’s Stripe account. Very handy for checking out the user experience, automated emails, workflow notices, etc.

@hopestew : you mentioned ‘test mode’ on forms to test stripe payments. How did you put a form in “test mode”?

I’m trying to put through test card numbers (from stripe’s documentation) and am getting the following error:

“Your card was declined. Your request was in live mode, but used a known test card.”

Note: I have put test api keys in Settings > Payment

@hopestew …and figured it out. I originally had live keys in, then changed to test. Need to update the key in settings AND on the form.

Ugh.

Disregard my question! :wink:

@Derek_Barnes I had the opposite problem. When I wanted to go from test mode to live mode, I changed the key in the settings but didn’t realise I had to change the key in each of the forms as well. Glad you worked it out!

1 Like

Where does the Stripe key go inside the form? I’m having trouble with payment form for Secure Zone. On submit, it says “Form submission is in progress” for about 10minutes, then it just re-loads the form.

Hi @craigwhitlock, the API keys for payment gateways go under ‘Settings’ > ‘Payment’ in the main Admin menu. These aren’t added manually to the form code anymore.

“Form submission is in progress” though, sounds like a BC validation error.
Is this a BC migration still with the BC validation script in place (which should be ok), but it may be a JS issue rather than a payment gateway related issue.

If you can post a link to your form that might help too.

Thank you for your time @Adam.Wilson.

Payment form for secure zone (Stripe Test API keys):
" https://unitedstrokealliance.treepl.co/subscribe-now-what-videos "

BC migration, but by hand, built from Treepl template. I very well may accidentally have a javascript remnant from BC though. Ugh.

Submitting form does add a contact/user to the CRM after quite some time. But the user is not subscribed to the secure zone & payment is not processed unfortunately.

There are a few JS errors on that page (check your browser console) so I’d try resolving those first to eliminate those.
Particularly the script under your form and the stray closing form tag:
image
I’d probably remove that script altogether for now.

Being that it’s a subscribe form, you may need to add recaptcha v2… but since it’s a payment form this then shouldn’t be required… not sure on that one :slight_smile:

Also, double check you’re form settings is configured with the Secure Zone applied.

Thank you!!! Yes, Form settings are definitely configured with Secure Zone applied.

I have tried with and without ReCaptcha v3, numerous times. The default was without, so assumed I didn’t need it. Note - that code you show in red is actually within a “{%comment-%} {endcomment-%}”. I’d better be careful with that.

Hmmm, if that code was in a Liquid comment then the comment wasn’t working because it should not have rendered to the page for me to be able to see it. So something is amiss there. Perhaps the formatting of the Liquid…? Anyway, not to worry. Just remove that for now.

Also, secure zone subscription forms (without payments) require recaptcha v2 (v3 is not compatible yet). So maybe try adding v2 if the above doesn’t help.