• Resolved mpq114

    (@mpq114)


    Hello,

    When a client tried to make a purchase with credit card, there was a critical error and the order is in “Failed” status. Here are the logs from Woocommerce:

    
    
    
    2024-01-20T05:28:55+00:00 CRITICAL Uncaught TypeError: WC_Stripe_API::detach_payment_method_from_customer(): Argument #2 ($payment_method_id) must be of type string, null given, called in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php on line 489 and defined in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php:327
    Stack trace:
    #0 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php(489): WC_Stripe_API::detach_payment_method_from_customer()
    #1 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-intent-controller.php(133): WC_Stripe_Customer->delete_source()
    #2 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_Stripe_Intent_Controller->verify_intent()
    #3 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #4 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /home/xxx/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action()
    #6 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax()
    #7 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #8 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #9 /home/xxx/public_html/wp-includes/template-loader.php(13): do_action()
    #10 /home/xxx/public_html/wp-blog-header.php(19): require_once('/home/xxx...')
    #11 /home/xxx/public_html/index.php(17): require('/home/xxx...')
    #12 {main}
      thrown en /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php en la línea 327
    
    2024-01-20T05:29:13+00:00 CRITICAL Uncaught TypeError: WC_Stripe_API::detach_payment_method_from_customer(): Argument #2 ($payment_method_id) must be of type string, null given, called in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php on line 489 and defined in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php:327
    Stack trace:
    #0 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php(489): WC_Stripe_API::detach_payment_method_from_customer()
    #1 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-intent-controller.php(133): WC_Stripe_Customer->delete_source()
    #2 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_Stripe_Intent_Controller->verify_intent()
    #3 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #4 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /home/xxx/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action()
    #6 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax()
    #7 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #8 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #9 /home/xxx/public_html/wp-includes/template-loader.php(13): do_action()
    #10 /home/xxx/public_html/wp-blog-header.php(19): require_once('/home/xxx...')
    #11 /home/xxx/public_html/index.php(17): require('/home/xxx...')
    #12 {main}
      thrown en /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php en la línea 327
    
    2024-01-20T05:29:15+00:00 CRITICAL Uncaught TypeError: WC_Stripe_API::detach_payment_method_from_customer(): Argument #2 ($payment_method_id) must be of type string, null given, called in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php on line 489 and defined in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php:327
    Stack trace:
    #0 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php(489): WC_Stripe_API::detach_payment_method_from_customer()
    #1 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-intent-controller.php(133): WC_Stripe_Customer->delete_source()
    #2 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_Stripe_Intent_Controller->verify_intent()
    #3 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #4 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /home/xxx/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action()
    #6 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax()
    #7 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #8 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #9 /home/xxx/public_html/wp-includes/template-loader.php(13): do_action()
    #10 /home/xxx/public_html/wp-blog-header.php(19): require_once('/home/xxx...')
    #11 /home/xxx/public_html/index.php(17): require('/home/xxx...')
    #12 {main}
      thrown en /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php en la línea 327
    
    2024-01-20T05:29:16+00:00 CRITICAL Uncaught TypeError: WC_Stripe_API::detach_payment_method_from_customer(): Argument #2 ($payment_method_id) must be of type string, null given, called in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php on line 489 and defined in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php:327
    Stack trace:
    #0 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php(489): WC_Stripe_API::detach_payment_method_from_customer()
    #1 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-intent-controller.php(133): WC_Stripe_Customer->delete_source()
    #2 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_Stripe_Intent_Controller->verify_intent()
    #3 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #4 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /home/xxx/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action()
    #6 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax()
    #7 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #8 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #9 /home/xxx/public_html/wp-includes/template-loader.php(13): do_action()
    #10 /home/xxx/public_html/wp-blog-header.php(19): require_once('/home/xxx...')
    #11 /home/xxx/public_html/index.php(17): require('/home/xxx...')
    #12 {main}
      thrown en /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php en la línea 327
    
    2024-01-20T05:29:18+00:00 CRITICAL Uncaught TypeError: WC_Stripe_API::detach_payment_method_from_customer(): Argument #2 ($payment_method_id) must be of type string, null given, called in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php on line 489 and defined in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php:327
    Stack trace:
    #0 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php(489): WC_Stripe_API::detach_payment_method_from_customer()
    #1 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-intent-controller.php(133): WC_Stripe_Customer->delete_source()
    #2 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_Stripe_Intent_Controller->verify_intent()
    #3 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #4 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /home/xxx/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action()
    #6 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax()
    #7 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #8 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #9 /home/xxx/public_html/wp-includes/template-loader.php(13): do_action()
    #10 /home/xxx/public_html/wp-blog-header.php(19): require_once('/home/xxx...')
    #11 /home/xxx/public_html/index.php(17): require('/home/xxx...')
    #12 {main}
      thrown en /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php en la línea 327
    
    2024-01-20T05:29:20+00:00 CRITICAL Uncaught TypeError: WC_Stripe_API::detach_payment_method_from_customer(): Argument #2 ($payment_method_id) must be of type string, null given, called in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php on line 489 and defined in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php:327
    Stack trace:
    #0 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php(489): WC_Stripe_API::detach_payment_method_from_customer()
    #1 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-intent-controller.php(133): WC_Stripe_Customer->delete_source()
    #2 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_Stripe_Intent_Controller->verify_intent()
    #3 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #4 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /home/xxx/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action()
    #6 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax()
    #7 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #8 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #9 /home/xxx/public_html/wp-includes/template-loader.php(13): do_action()
    #10 /home/xxx/public_html/wp-blog-header.php(19): require_once('/home/xxx...')
    #11 /home/xxx/public_html/index.php(17): require('/home/xxx...')
    #12 {main}
      thrown en /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php en la línea 327
    
    2024-01-20T05:29:22+00:00 CRITICAL Uncaught TypeError: WC_Stripe_API::detach_payment_method_from_customer(): Argument #2 ($payment_method_id) must be of type string, null given, called in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php on line 489 and defined in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php:327
    Stack trace:
    #0 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php(489): WC_Stripe_API::detach_payment_method_from_customer()
    #1 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-intent-controller.php(133): WC_Stripe_Customer->delete_source()
    #2 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_Stripe_Intent_Controller->verify_intent()
    #3 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #4 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /home/xxx/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action()
    #6 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax()
    #7 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #8 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #9 /home/xxx/public_html/wp-includes/template-loader.php(13): do_action()
    #10 /home/xxx/public_html/wp-blog-header.php(19): require_once('/home/xxx...')
    #11 /home/xxx/public_html/index.php(17): require('/home/xxx...')
    #12 {main}
      thrown en /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php en la línea 327
    
    2024-01-20T05:29:24+00:00 CRITICAL Uncaught TypeError: WC_Stripe_API::detach_payment_method_from_customer(): Argument #2 ($payment_method_id) must be of type string, null given, called in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php on line 489 and defined in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php:327
    Stack trace:
    #0 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php(489): WC_Stripe_API::detach_payment_method_from_customer()
    #1 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-intent-controller.php(133): WC_Stripe_Customer->delete_source()
    #2 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_Stripe_Intent_Controller->verify_intent()
    #3 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #4 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /home/xxx/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action()
    #6 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax()
    #7 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #8 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #9 /home/xxx/public_html/wp-includes/template-loader.php(13): do_action()
    #10 /home/xxx/public_html/wp-blog-header.php(19): require_once('/home/xxx...')
    #11 /home/xxx/public_html/index.php(17): require('/home/xxx...')
    #12 {main}
      thrown en /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php en la línea 327
    
    2024-01-20T05:29:25+00:00 CRITICAL Uncaught TypeError: WC_Stripe_API::detach_payment_method_from_customer(): Argument #2 ($payment_method_id) must be of type string, null given, called in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php on line 489 and defined in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php:327
    Stack trace:
    #0 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php(489): WC_Stripe_API::detach_payment_method_from_customer()
    #1 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-intent-controller.php(133): WC_Stripe_Customer->delete_source()
    #2 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_Stripe_Intent_Controller->verify_intent()
    #3 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #4 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /home/xxx/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action()
    #6 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax()
    #7 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #8 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #9 /home/xxx/public_html/wp-includes/template-loader.php(13): do_action()
    #10 /home/xxx/public_html/wp-blog-header.php(19): require_once('/home/xxx...')
    #11 /home/xxx/public_html/index.php(17): require('/home/xxx...')
    #12 {main}
      thrown en /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php en la línea 327
    
    2024-01-20T05:29:27+00:00 CRITICAL Uncaught TypeError: WC_Stripe_API::detach_payment_method_from_customer(): Argument #2 ($payment_method_id) must be of type string, null given, called in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php on line 489 and defined in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php:327
    Stack trace:
    #0 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php(489): WC_Stripe_API::detach_payment_method_from_customer()
    #1 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-intent-controller.php(133): WC_Stripe_Customer->delete_source()
    #2 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_Stripe_Intent_Controller->verify_intent()
    #3 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #4 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /home/xxx/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action()
    #6 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax()
    #7 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #8 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #9 /home/xxx/public_html/wp-includes/template-loader.php(13): do_action()
    #10 /home/xxx/public_html/wp-blog-header.php(19): require_once('/home/xxx...')
    #11 /home/xxx/public_html/index.php(17): require('/home/xxx...')
    #12 {main}
      thrown en /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php en la línea 327
    
    2024-01-20T05:29:29+00:00 CRITICAL Uncaught TypeError: WC_Stripe_API::detach_payment_method_from_customer(): Argument #2 ($payment_method_id) must be of type string, null given, called in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php on line 489 and defined in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php:327
    Stack trace:
    #0 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php(489): WC_Stripe_API::detach_payment_method_from_customer()
    #1 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-intent-controller.php(133): WC_Stripe_Customer->delete_source()
    #2 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_Stripe_Intent_Controller->verify_intent()
    #3 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #4 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /home/xxx/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action()
    #6 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax()
    #7 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #8 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #9 /home/xxx/public_html/wp-includes/template-loader.php(13): do_action()
    #10 /home/xxx/public_html/wp-blog-header.php(19): require_once('/home/xxx...')
    #11 /home/xxx/public_html/index.php(17): require('/home/xxx...')
    #12 {main}
      thrown en /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php en la línea 327
    
    2024-01-20T05:29:30+00:00 CRITICAL Uncaught TypeError: WC_Stripe_API::detach_payment_method_from_customer(): Argument #2 ($payment_method_id) must be of type string, null given, called in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php on line 489 and defined in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php:327
    Stack trace:
    #0 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php(489): WC_Stripe_API::detach_payment_method_from_customer()
    #1 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-intent-controller.php(133): WC_Stripe_Customer->delete_source()
    #2 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_Stripe_Intent_Controller->verify_intent()
    #3 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #4 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /home/xxx/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action()
    #6 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax()
    #7 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #8 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #9 /home/xxx/public_html/wp-includes/template-loader.php(13): do_action()
    #10 /home/xxx/public_html/wp-blog-header.php(19): require_once('/home/xxx...')
    #11 /home/xxx/public_html/index.php(17): require('/home/xxx...')
    #12 {main}
      thrown en /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php en la línea 327
    
    2024-01-20T05:29:33+00:00 CRITICAL Uncaught TypeError: WC_Stripe_API::detach_payment_method_from_customer(): Argument #2 ($payment_method_id) must be of type string, null given, called in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php on line 489 and defined in /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php:327
    Stack trace:
    #0 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php(489): WC_Stripe_API::detach_payment_method_from_customer()
    #1 /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-intent-controller.php(133): WC_Stripe_Customer->delete_source()
    #2 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_Stripe_Intent_Controller->verify_intent()
    #3 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #4 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /home/xxx/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action()
    #6 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax()
    #7 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #8 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #9 /home/xxx/public_html/wp-includes/template-loader.php(13): do_action()
    #10 /home/xxx/public_html/wp-blog-header.php(19): require_once('/home/xxx...')
    #11 /home/xxx/public_html/index.php(17): require('/home/xxx...')
    #12 {main}
      thrown en /home/xxx/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php en la línea 327
    

    And the error from Stripe:

    "message": "A payment method of type card was expected to be present, but this PaymentIntent does not have a payment method and none was provided. Try again providing either the payment_method or payment_method_data parameters."
    "type": "invalid_request_error"
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello mpq114,

    Thank you for getting in touch with WooCommerce support regarding the critical error that occurred when your client attempted a purchase with a credit card, resulting in the order being marked as “Failed”.

    For the payment gateway you are using, I recommend checking if webhooks are set up properly as they play a crucial role in communicating payment status between your site and the payment service.

    Here is a guide that provides detailed instructions on how to set up webhooks for Stripe:?https://woo.com/document/stripe/#webhooks

    Additionally, to help us diagnose the issue further, could you please provide us with a copy of your site’s System Status Report?

    You can do this by following these steps:
    1. Go to WooCommerce > Status within your WordPress dashboard.
    2. Click on ‘Get system report’.
    3. Then click on ‘Copy for support’.

    You can paste the report on https://gist.github.com to create a ‘Gist’, and share the Gist link with us here.

    Looking forward to your response. ??

    Best regards.

    Thread Starter mpq114

    (@mpq114)

    Hello Zubair,

    There you go: https://gist.github.com/mpq114/d10a16d30ed825dc6f6b2280d4f683cc

    Webhooks are fine, we had a lot of orders with Stripe and never had any issue: https://ibb.co/sKWPSvb

    • This reply was modified 10 months, 1 week ago by mpq114.

    Hi there @mpq114 ??

    Thank you for reaching back, with further details on this.

    It appears that, while the latest version of the WooCommerce Stripe Payment Gateway is installed and activated, the webhooks are idle since April 2023.

    As a next step, kindly set them up again (replace the existing ones with new), as detailed here, and see if the issue persists, or otherwise.

    I hope this is helpful! Let us know how it goes.

    Thread Starter mpq114

    (@mpq114)

    Hello Pepe,

    We’ve been using Stripe without any issues for several months. I reached out to the client who informed me that he accidentally closed the screen needed to validate the transaction on his bank account. That’s why the payment initially failed. However, he tried again and successfully placed the order.

    Regarding the webhooks you mentioned, I’m curious about their necessity. They’ve been idle since April (as you pointed out), yet we’ve been operating smoothly with the Stripe WooCommerce plugin. Do I need to configure them, or should I leave things as they are since everything is functioning well?

    Thank you

    Hi
    I am getting the below error

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello madhukant

    Thank you for contacting WooCommerce support.

    As per our Support Policy, I will suggest you create a New Topic and describe your issue in detail so we can help you in a better way.

    Have a great day!

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello mpq114,

    Thank you for your reply.

    It’s a relief to hear that your client was able to complete the transaction after the initial hiccup where the validation screen was accidentally closed.

    Regarding your question about the necessity of configuring webhooks: while your site has been operating smoothly so far, webhooks are a crucial feature for maintaining real-time communication between Stripe and your WooCommerce store.

    Without webhooks properly set up, your WooCommerce store may miss out on important updates from Stripe, such as notifications for successful payments, chargebacks, or other transaction events.

    Therefore, while webhooks are not technically required, they are strongly recommended to ensure seamless and automated operations.

    If you need any assistance configuring your webhooks please let me know, and I would be happy to help you further. ??

    Best regards.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Error on checkout’ is closed to new replies.