Error processing checkout. Please try again.
-
My wordpress website: tot-hub.com
Stripe configuration: Added all API keys for test and live environment
Test connection: Success
Problem 1: When making a test/live purchase, I don’t get option to enter card details even though when I have enabled the card in settings. When I click on place order I get an error: Error processing checkout. Please try again.Problem 2: I am unable to see Google pay option even though I have enabled it in the settings
Error screenshot: https://freeimage.host/i/hrnZ0bThe page I need help with: [log in to see the link]
-
Hi @tothubbusiness,
The first thing I see is you are using two Stripe plugins at the same time. Our plugin is called Payment Plugins for Stripe WooCommerce.
You appear to be using a cache plugin and that’s interfering with the checkout scripts loading. That’s why you don’t see the Google Pay payment option. Take a look at your cache settings and see if there is a setting that’s causing the issue.
Kind Regards,
Hi @mrclayton
1. I have removed the other ‘woocomerce stripe’ plugin from the wordpress, now only 1 plugin exists – Payment Plugins for Stripe WooComerce
2. I have deactivated ‘wp fastest cache’ so it won’t bother
3. I removed all browser history and cache and ran the checkout page again. But it returned with the same error
4. I did notice this before but forgot to mention it to you. But I can see that ‘ApplePay’ and ‘Gpay’ are both greyed out when I inspect the checkout page. See this screenshot
5. Additionally, when I click on the Credit/Debit cards button. It does not display the form to enter the card details6. I just learnt from this website Apple Pay allowed country list, that Apple Pay is not supported in India. I believe that’s why it might not come anyways. I’ll just disable Apple Pay then.
7. But, GPay is well supported. I registered with Google pay today. I already had entered the merchant ID details in the Plugin settings area. So atleast Gpay and debit/credit functionality should work smooth.?? Really want this to work. I triple-checked the STRIPE plugin details on the STRIPE website all seems fine. Something is not right
- This reply was modified 2 years, 5 months ago by tothubbusiness. Reason: Edits to Apple Pay not supported in my country - India. But Gpay is well supported here. So both debit/credit cards and Gpay should work smooth on the website
Hi @tothubbusiness,
If you view source using your browser’s dev console, you will see the Stripe plugin’s Javascript files aren’t loading. That’s why you don’t see the credit card form or GPay. The Javascript files aren’t loading.
Are you not using the WooCommerce checkout shortcode for your checkout page?
Kind Regards,
Hi @mrclayton
Well I am. You can clearly see here – Checkout
How to load these JS files then ??Regards
Well I am. You can clearly see here
That doesn’t mean you’re using the checkout shortcode. Your theme could be rendering the checkout page on its own. Your theme is loading its own version of checkout.js which is a file shipped with WooCommerce.
I recommend you activate a default theme and test. If the theme isn’t the culprit then you will need to start looking for a plugin conflict.
Kind Regards,
Hi @mrclayton
You are right. With a different theme, I can clearly see the credit card form and also the Gpay radio button. Now coming to the point where you say our theme ‘Minimog’ is rendering the checkout page on its own’ How can we tweak or get the correct checkout.js file to start seeing these form and Gpay buttons in our theme
Kind Regards
- This reply was modified 2 years, 5 months ago by tothubbusiness.
Hi @tothubbusiness,
I’d recommend you reach out to your theme developer and ask them why they’re not using the checkout.js file shipped with WooCommerce. I would show them this thread and the issue and ask them if their theme is calling the
wp_footer
function in the footer.php file which ensures Javascript files enqueue for the footer are printed.Kind Regards,
Hi @mrclayton
Here is the excerpt from the ‘wp_footer’ file of our theme
`<?php
/**
* The template for displaying the footer.
*
* @link https://developer.www.ads-software.com/themes/basics/template-files/#template-partials
*
* @package Minimog
* @since 1.0
*/?>
</div><!– /.content-wrapper –><?php Minimog_THA::instance()->footer_before(); ?>
<?php minimog_load_template( ‘footer/entry’ ); ?>
<?php Minimog_THA::instance()->footer_after(); ?>
</div><!– /.site –>
<?php wp_footer(); ?>
</body>
</html>Please reach out to your theme developers and show them this thread as they will best be able to answer questions on why scripts enqueued in the footer don’t appear to be printing on the checkout page.
Kind Regards,
@tothubbusiness feel free to copy our support email when you contact your theme developers.
Kind Regards,
Hi there MrClayton
I am back. We had a fix on the card not being displayed and the Google Pay option. However, we’re still not fixed with the issue of ‘Error processing checkout. Please try again’
See image hereCan you please help us out from this one. We’ve been struggling a lot here. Don’t know what’s really going wrong. Running in test environment at the moment with test card 4242… But we keep getting the ‘Error processing’ message at the top
Thanks
Tot-HubCan you please help us out from this one. We’ve been struggling a lot here. Don’t know what’s really going wrong
That is a generic error triggered by WooCommerce, typically when some exception has been thrown during the checkout process. I’d recommend you check the WooCommerce > Status > Logs
fatal-errors
log entries which should give you some insight on what plugin is triggering an error.Kind Regards,
I just checked the log. This doesn’t make sense to me. Log is below:
2022-06-14T15:44:52+00:00 CRITICAL Uncaught TypeError: array_search(): Argument #2 ($haystack) must be of type array, null given in /home/dh_rwk4jj/tot-hub/wp-content/plugins/dreamhost-panel-login.php:178 Stack trace: #0 /home/dh_rwk4jj/tot-hub/wp-content/plugins/dreamhost-panel-login.php(178): array_search('dreamhost-panel...', NULL) #1 /home/dh_rwk4jj/tot-hub/wp-includes/class-wp-hook.php(307): dh_sso_disable_my_plugin_update(Array, 'https://api.wor...') #2 /home/dh_rwk4jj/tot-hub/wp-includes/plugin.php(191): WP_Hook->apply_filters(Array, Array) #3 /home/dh_rwk4jj/tot-hub/wp-includes/class-wp-http.php(232): apply_filters('http_request_ar...', Array, 'https://api.wor...') #4 /home/dh_rwk4jj/tot-hub/wp-includes/class-wp-http.php(614): WP_Http->request('https://api.wor...', Array) #5 /home/dh_rwk4jj/tot-hub/wp-includes/http.php(179): WP_Http->post('https://api.wor...', Array) #6 /home/dh_rwk4jj/tot-hub/wp-content/plugins/wpforms/src/Integrations/WPorg/Translations.php(84): wp_remote_post('https://api.wor...', Array) #7 /home/dh_rwk4jj/tot-hub/wp-content/plugins/wpforms/src/Integrations/WPorg/Translations.php(108): WPForms\Integrations\WPorg\Translations->get_translation_packages() #8 /home/dh_rwk4jj/tot-hub/wp-includes/class-wp-hook.php(307): WPForms\Integrations\WPorg\Translations->download_translations('') #9 /home/dh_rwk4jj/tot-hub/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #10 /home/dh_rwk4jj/tot-hub/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #11 /home/dh_rwk4jj/tot-hub/wp-content/plugins/wpforms/includes/class-install.php(137): do_action('wpforms_install') #12 /home/dh_rwk4jj/tot-hub/wp-content/plugins/wpforms/includes/class-install.php(59): WPForms_Install->run() #13 /home/dh_rwk4jj/tot-hub/wp-content/plugins/wpforms/includes/class-install.php(82): WPForms_Install->install(false) #14 /home/dh_rwk4jj/tot-hub/wp-content/plugins/wpforms/includes/class-install.php(117): WPForms_Install->manual(true) #15 /home/dh_rwk4jj/tot-hub/wp-includes/class-wp-hook.php(307): WPForms_Install->admin('') #16 /home/dh_rwk4jj/tot-hub/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #17 /home/dh_rwk4jj/tot-hub/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #18 /home/dh_rwk4jj/tot-hub/wp-admin/admin.php(175): do_action('admin_init') #19 /home/dh_rwk4jj/tot-hub/wp-admin/plugins.php(10): require_once('/home/dh_rwk4jj...') #20 {main} thrown in /home/dh_rwk4jj/tot-hub/wp-content/plugins/dreamhost-panel-login.php on line 178
That error message is telling you that your dream host plugin is triggering an exception. I recommend you contact the developers of that plugin or temporarily deactivate it and then try testing payments again.
The issue you are experiencing is not related to the Stripe Plugin.
Kind regards
Hi MrClayton
Can you point out which plugin is this? I’ll deactivate and test
- The topic ‘Error processing checkout. Please try again.’ is closed to new replies.