Gravity form and Stripe Slow Submission

Hello, I have started using Stripe as a payment processor for donation forms.

I have the form setup and the account setup correctly. Payment are going into Test and Development accounts of Stripe and everything is logged correctly.

However, when a user clicks Submit, the form takes 10+ seconds to fully submit.

The form is embedded on a Page.
Plugins/Wordpress is up to date.

Here is the form: Support Embracing Our Differences : Embracing Our Differences

Does anyone have any idea what it is taking so long for the website to process the form?

Hi Jason. I recommend enabling logging on the site and checking the timestamps in the log to see where the delay comes from:

After enabling logging, test the form, then go back to the Forms β†’ Settings β†’ Logging page to view the individual logs. You can see in the timestamps what is causing the delay. Let us know if you need anything else.

Hi Chris, Thanks for the guidance. I enabled logs and found out that Stripe is taking 6-7 seconds consistently. There are a lot of β€œInitializing Stripe API for test mode.”

When I try to complete the form on my phone, the GF spinner animates until the reCatcha expires and the form never submits. I removed the captcha and the form doesn’t submit. Also, nothing is logged while the form is loading.

I’m not sure what to do here. I am going to reach out to my host, who is Cloudways. Can you provide any more help with this situation? Is your experience with Stripe much more smooth than this?

Here is the log submitted from my computer.

2023-09-14 15:34:47.484941 - DEBUG β†’ GFStripe::include_stripe_api(): Initializing Stripe API for test mode.
2023-09-14 15:34:49.338083 - DEBUG β†’ GFStripe::maybe_hit_rate_limits(): The current IP has card errors in total of 2 times
2023-09-14 15:34:49.343070 - DEBUG β†’ GFStripe::include_stripe_api(): Initializing Stripe API for test mode.
2023-09-14 15:34:49.546881 - DEBUG β†’ GFPaymentAddOn::maybe_process_callback(): Initializing callback processing for: gravityformsstripe
2023-09-14 15:34:49.547030 - DEBUG β†’ GFStripe::get_webhook_event(): Processing test mode event.
2023-09-14 15:34:49.547621 - DEBUG β†’ GFStripe::include_stripe_api(): Initializing Stripe API for test mode.
2023-09-14 15:34:49.556339 - DEBUG β†’ GFStripe::callback() Webhook event details => Array
(
[id] => evt_3NqLJLAVOHwwggWp2UmOQXA7
[type] => payment_intent.created
[webhook api_version] => 2023-08-16
)

2023-09-14 15:34:49.556415 - DEBUG β†’ GFStripe::callback() entry_id not set for callback action; no further processing required.
2023-09-14 15:34:49.556442 - DEBUG β†’ GFPaymentAddOn::maybe_process_callback(): Result from gateway callback =>
2023-09-14 15:34:49.672700 - DEBUG β†’ GFStripe::authorize_product(): payment intent data to be updated => Array
(
)

2023-09-14 15:34:50.868911 - DEBUG β†’ GFStripe::authorize_product(): PaymentIntent status: requires_capture
2023-09-14 15:34:50.869045 - DEBUG β†’ GFPaymentAddOn::validation(): Authorization result for form #3 submission => Array
(
[is_authorized] => 1
[transaction_id] => pi_3NqLJLAVOHwwggWp2MklIIXW
)

2023-09-14 15:34:50.886569 - DEBUG β†’ GFFeedAddOn::maybe_process_feed(): Checking for feeds to process for entry #296 for gravityformsstripe.
2023-09-14 15:34:50.886619 - DEBUG β†’ GFFeedAddOn::maybe_process_feed(): Starting to process feed (#5 - Stripe Feed 3) for entry #296 for gravityformsstripe
2023-09-14 15:34:50.886640 - DEBUG β†’ GFFeedAddOn::maybe_process_feed(): Marking entry #296 as fulfilled for gravityformsstripe
2023-09-14 15:34:50.892954 - DEBUG β†’ GFStripe::maybe_hit_rate_limits(): The current IP has card errors in total of 2 times
2023-09-14 15:34:52.641896 - DEBUG β†’ GFPaymentAddOn::maybe_process_callback(): Initializing callback processing for: gravityformsstripe
2023-09-14 15:34:52.642051 - DEBUG β†’ GFStripe::get_webhook_event(): Processing test mode event.
2023-09-14 15:34:52.642745 - DEBUG β†’ GFStripe::include_stripe_api(): Initializing Stripe API for test mode.
2023-09-14 15:34:52.659137 - DEBUG β†’ GFStripe::callback() Webhook event details => Array
(
[id] => evt_3NqLJLAVOHwwggWp2DB1osXB
[type] => payment_intent.amount_capturable_updated
[webhook api_version] => 2023-08-16
)

2023-09-14 15:34:52.659214 - DEBUG β†’ GFStripe::callback() entry_id not set for callback action; no further processing required.
2023-09-14 15:34:52.659246 - DEBUG β†’ GFPaymentAddOn::maybe_process_callback(): Result from gateway callback =>
2023-09-14 15:34:52.754120 - DEBUG β†’ GFPaymentAddOn::process_capture(): Updating entry #296 with result => Array
(
[is_success] => 1
[transaction_id] => pi_3NqLJLAVOHwwggWp2MklIIXW
[amount] => 12.66
[payment_method] => visa
)

2023-09-14 15:34:52.754215 - DEBUG β†’ GFPaymentAddOn::complete_payment(): Processing request.
2023-09-14 15:34:52.824178 - DEBUG β†’ GFPaymentAddOn::maybe_process_callback(): Initializing callback processing for: gravityformsstripe
2023-09-14 15:34:52.824338 - DEBUG β†’ GFStripe::get_webhook_event(): Processing test mode event.
2023-09-14 15:34:52.824923 - DEBUG β†’ GFStripe::include_stripe_api(): Initializing Stripe API for test mode.
2023-09-14 15:34:52.846148 - DEBUG β†’ GFStripe::callback() Webhook event details => Array
(
[id] => evt_3NqLJLAVOHwwggWp2HxgUza5
[type] => charge.succeeded
[webhook api_version] => 2023-08-16
)

2023-09-14 15:34:52.846246 - DEBUG β†’ GFStripe::callback() entry_id not set for callback action; no further processing required.
2023-09-14 15:34:52.846281 - DEBUG β†’ GFPaymentAddOn::maybe_process_callback(): Result from gateway callback =>
2023-09-14 15:34:54.289159 - DEBUG β†’ GFPaymentAddOn::maybe_process_callback(): Initializing callback processing for: gravityformsstripe
2023-09-14 15:34:54.289278 - DEBUG β†’ GFStripe::get_webhook_event(): Processing test mode event.
2023-09-14 15:34:54.292160 - DEBUG β†’ GFStripe::include_stripe_api(): Initializing Stripe API for test mode.
2023-09-14 15:34:54.308372 - DEBUG β†’ GFStripe::callback() Webhook event details => Array
(
[id] => evt_3NqLJLAVOHwwggWp2pPpXphN
[type] => payment_intent.succeeded
[webhook api_version] => 2023-08-16
)

2023-09-14 15:34:54.315830 - DEBUG β†’ GFStripe::callback(): Entry associated with Payment Element Payment Intent ID: pi_3NqLJLAVOHwwggWp2MklIIXW not found. Bypassing webhook.
2023-09-14 15:34:54.315896 - DEBUG β†’ GFPaymentAddOn::maybe_process_callback(): Result from gateway callback => Array
(
[id] => evt_3NqLJLAVOHwwggWp2pPpXphN
[abort_callback] => 1
)

2023-09-14 15:34:54.505111 - DEBUG β†’ GFPaymentAddOn::maybe_process_callback(): Initializing callback processing for: gravityformsstripe
2023-09-14 15:34:54.505238 - DEBUG β†’ GFStripe::get_webhook_event(): Processing test mode event.
2023-09-14 15:34:54.505969 - DEBUG β†’ GFStripe::include_stripe_api(): Initializing Stripe API for test mode.
2023-09-14 15:34:54.513569 - DEBUG β†’ GFStripe::callback() Webhook event details => Array
(
[id] => evt_3NqLJLAVOHwwggWp2xkO7Uiw
[type] => charge.captured
[webhook api_version] => 2023-08-16
)

2023-09-14 15:34:54.517158 - DEBUG β†’ GFStripe::callback() entry_id not set for callback action; no further processing required.
2023-09-14 15:34:54.517241 - DEBUG β†’ GFPaymentAddOn::maybe_process_callback(): Result from gateway callback =>

One last follow up question, when creating the webhook with Stripe, the instructions say to β€œSelect all events.” Is this necessary?

I deleted the Webhook and created a new one:

Thank you again for your help. I am seeing an error I did not notice before. When I submit the form, Dev Tools > Console registers this error in Edge browser:

gforms_stripe_frontend_strings is not defined
at GFStripe.createPaymentMethod (frontend.min.js?ver=5.1.0:1:35675)
at HTMLFormElement. (frontend.min.js?ver=5.1.0:1:26101)
at HTMLFormElement.dispatch (jquery.min.js:2:39997)
at v.handle (jquery.min.js:2:37968)

I tried Googling β€œgforms_stripe_frontend_strings is not defined” but I am not seeing anything.

Do you know what might be causing this?

I found the issue! The Cloudways Breeze Caching plugin was causing the issue. However, the Chrome Dev Tools wasn’t throwing any errors. I switched to a different browser and the Edge Console showed the error above. I was then able to test which plugin was the issue.

I appreciate your help so much.

1 Like

Thank you for the update. I’m happy to hear you figured it out!