• Resolved prwordpressorg

    (@prwordpressorg)


    Hi,

    I have the WooCommerce Stripe Gateway installed, fully connected and Stripe is accepting payments (I see the payment made in Stripe anb I receive success emails about payments made)… but WooCommerce does not mark the order as paid.

    I see the following notice/error in WooCommerce logs.

    Would anyone please know what is causing the error and how to solve this?

    2022-12-08T15:30:23+00:00 CRITICAL Uncaught Error: Attempt to modify property "data" on null in /www/doc/www.mydomain.com/www/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-webhook-handler.php:848
    Stack trace:
    #0 /www/doc/www.mydomain.com/www/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-webhook-handler.php(990): WC_Stripe_Webhook_Handler->process_payment_intent_success(Object(stdClass))
    #1 /www/doc/www.mydomain.com/www/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-webhook-handler.php(70): WC_Stripe_Webhook_Handler->process_webhook('{\n  "id": "evt_...')
    #2 /www/doc/www.mydomain.com/www/wp-includes/class-wp-hook.php(308): WC_Stripe_Webhook_Handler->check_for_webhook('')
    #3 /www/doc/www.mydomain.com/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #4 /www/doc/www.mydomain.com/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #5 /www/doc/www.mydomain.com/www/wp-content/plugins/woocommerce/includes/class-wc-api.php(161): do_action('woocommerce_api...')
    #6 /www/doc/www.mydomain.com/www/wp-includes/class-wp-hook.php(308): WC_API->handle_api_requests(Object(WP))
    #7 /www/doc/www.mydomain.com/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #8 /www/doc/www.mydomain.com/www/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
    #9 /www/doc/www.mydomain.com/www/wp-includes/class-wp.php(399): do_action_ref_array('parse_request', Array)
    #10 /www/doc/www.mydomain.com/www/wp-includes/class-wp.php(780): WP->parse_request('')
    #11 /www/doc/www.mydomain.com/www/wp-includes/functions.php(1332): WP->main('')
    #12 /www/doc/www.mydomain.com/www/wp-blog-header.php(16): wp()
    #13 /www/doc/www.mydomain.com/www/index.php(17): require('/www/doc/www.ja...')
    #14 {main}
      thrown v /www/doc/www.mydomain.com/www/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-webhook-handler.php on line 848

    Would anyone know what is causing this?

    In iThemes Security, I have REST API set to Restricted Access and disapled XML-RPC.

    I am running this on WordPress 6.1.1 and WoCommerce 7.1.1 and WooCommerce Stripe Gateway 7.0.1

Viewing 8 replies - 16 through 23 (of 23 total)
  • @crt56 Hi crt

    I found out that it was all the 3D secure payments that failed ( if you have an International site, it would probably be all payments from EU )

    After debugging with completely misleading error messages from plugin ( and this useless support ), I ended up guessing that the problem had to do with the fact that the plugin runs code from another server.

    As a standard security feature, many servers prevent running code from other servers, but you need this function for 3D secure payments to work ( at least in this implementation )

    So you should try and see if your server or a security plugin, prevents this functionality. I would start with checking PHP config, and see if allow_url_fopen and allow_url_include is turned off…

    Good luck ?? Hope you get it fixed ??

    Hi,

    I my case it is not always linked to 3D secure, because some payments with exemptions are not working either.

    Thanks for the ideas, I will check it, and keep updated here if somebody has the same problem…

    Hi @prwordpressorg,

    I was rechecking all of this thread, and the error might be related to the plugin Better WP Security, I recommend to temporarily disable it, then make a test order, to see if the issue persists.

    I can understand this is a frustrating issue, @brianandersen, and @crt56 please open a thread if you need further assistance, I also understand the error message could be the same on your case, but please note, each site configuration could be different.

    Please create your own thread for your issue – https://www.ads-software.com/support/plugin/woocommerce-gateway-stripe/#new-topic-0, we’ll be glad to help.

    Exact same problem here… Using php 8.0 on a Kinsta server, without any security plugin enabled.

    I know php 8 is often causing problems with plugins, so maybe it’s worst investigating ?

    @dadipaq Try and ask Kinsta support if allow_url_fopen and allow_url_include is turned off…

    Same problem for 3 days on 33% of our orders. I also contacted woocommerce chat support 2 times but nobody seems to care!

    Plugin Support Max – a11n

    (@maxlfr)

    Hi @prwordpressorg,

    Are you using the latest version of Stripe’s API (2022-11-15) either on your account or a webhook endpoint? If you’re not sure, you can check by logging in to the Stripe dashboard and navigating to the Developers page.

    If you are using the latest API version, you’re likely affected by this compatibility issue: https://github.com/woocommerce/woocommerce-gateway-stripe/issues/2488

    You can check the issue for more details and the symptoms to identify it. Our developers have a fix and you can check the changelog or the issue to see when it’s released.

    If you’re not using the latest API version or if you’re not sure you’re affected by this, please open a ticket with us at WooCommerce.com > My Account > Support. You may need to create an account before you can access that page.

    Please include a link to this forum thread, so that we can keep track of what’s already been done.

    For everyone else with similar issues, the same info applies. Thank you all for chiming in to help with this and for bearing with us while we get the fix released!

    Thread Starter prwordpressorg

    (@prwordpressorg)

    The issue disappeared/was solved by the 7.0.2 – 2023-01-11 update (Fix – Expand charges object from incoming webhooks using Stripe API version 2022-11-15.)

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Stripe payment successful but order not marked as paid’ is closed to new replies.