woocommerce / woocommerce-paypal-payments

https://wordpress.org/plugins/woocommerce-paypal-payments/
GNU General Public License v2.0
61 stars 47 forks source link

Payment issue again #2336

Closed tonypoxon closed 3 weeks ago

tonypoxon commented 3 weeks ago

Customers are getting the same issue with Payment not going through, please check any charges error

Expected Behavior

Actual Behavior

2024-06-12T12:39:19+00:00 CRITICAL Uncaught Error: Call to a member function captures() on null in /var/www/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Processor/PaymentsStatusHandlingTrait.php:38 CONTEXT: {"error":{"type":1,"file":"\/var\/www\/wp-content\/plugins\/woocommerce-paypal-payments\/modules\/ppcp-wc-gateway\/src\/Processor\/PaymentsStatusHandlingTrait.php","line":38},"backtrace":["","#0 \/var\/www\/wp-content\/plugins\/woocommerce-paypal-payments\/modules\/ppcp-wc-gateway\/src\/Gateway\/CreditCardGateway.php(513): WooCommerce\PayPalCommerce\WcGateway\Gateway\CreditCardGateway->handle_new_order_status(Object(WooCommerce\PayPalCommerce\ApiClient\Entity\Order), Object(Automattic\WooCommerce\Admin\Overrides\Order))","#1 \/var\/www\/wp-content\/plugins\/woocommerce\/includes\/class-wc-checkout.php(1062): WooCommerce\PayPalCommerce\WcGateway\Gateway\CreditCardGateway->process_payment(93568)","#2 \/var\/www\/wp-content\/plugins\/woocommerce\/includes\/class-wc-checkout.php(1293): WC_Checkout->process_order_payment(93568, 'ppcp-credit-car...')","#3 \/var\/www\/wp-content\/plugins\/woocommerce\/includes\/class-wc-ajax.php(520): WC_Checkout->process_checkout()","#4 \/var\/www\/wp-includes\/class-wp-hook.php(324): WC_AJAX::checkout('')","#5 \/var\/www\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)","#6 \/var\/www\/wp-includes\/plugin.php(517): WP_Hook->do_action(Array)","#7 \/var\/www\/wp-content\/plugins\/woocommerce\/includes\/class-wc-ajax.php(96): do_action('wc_ajax_checkou...')","#8 \/var\/www\/wp-includes\/class-wp-hook.php(324): WC_AJAX::do_wc_ajax('')","#9 \/var\/www\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters(false, Array)","#10 \/var\/www\/wp-includes\/plugin.php(517): WP_Hook->do_action(Array)","#11 \/var\/www\/wp-includes\/template-loader.php(13): do_action('template_redire...')","#12 \/var\/www\/wp-blog-header.php(19): require_once('\/var\/www\/wp-inc...')","#13 \/var\/www\/index.php(17): require('\/var\/www\/wp-blo...')","#14 {main}","thrown"]} 2024-06-12T12:39:53+00:00 CRITICAL Uncaught Error: Call to a member function captures() on null in /var/www/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Processor/PaymentsStatusHandlingTrait.php:38 CONTEXT: {"error":{"type":1,"file":"\/var\/www\/wp-content\/plugins\/woocommerce-paypal-payments\/modules\/ppcp-wc-gateway\/src\/Processor\/PaymentsStatusHandlingTrait.php","line":38},"backtrace":["","#0 \/var\/www\/wp-content\/plugins\/woocommerce-paypal-payments\/modules\/ppcp-wc-gateway\/src\/Gateway\/CreditCardGateway.php(513): WooCommerce\PayPalCommerce\WcGateway\Gateway\CreditCardGateway->handle_new_order_status(Object(WooCommerce\PayPalCommerce\ApiClient\Entity\Order), Object(Automattic\WooCommerce\Admin\Overrides\Order))","#1 \/var\/www\/wp-content\/plugins\/woocommerce\/includes\/class-wc-checkout.php(1062): WooCommerce\PayPalCommerce\WcGateway\Gateway\CreditCardGateway->process_payment(93568)","#2 \/var\/www\/wp-content\/plugins\/woocommerce\/includes\/class-wc-checkout.php(1293): WC_Checkout->process_order_payment(93568, 'ppcp-credit-car...')","#3 \/var\/www\/wp-content\/plugins\/woocommerce\/includes\/class-wc-ajax.php(520): WC_Checkout->process_checkout()","#4 \/var\/www\/wp-includes\/class-wp-hook.php(324): WC_AJAX::checkout('')","#5 \/var\/www\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)","#6 \/var\/www\/wp-includes\/plugin.php(517): WP_Hook->do_action(Array)","#7 \/var\/www\/wp-content\/plugins\/woocommerce\/includes\/class-wc-ajax.php(96): do_action('wc_ajax_checkou...')","#8 \/var\/www\/wp-includes\/class-wp-hook.php(324): WC_AJAX::do_wc_ajax('')","#9 \/var\/www\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters(false, Array)","#10 \/var\/www\/wp-includes\/plugin.php(517): WP_Hook->do_action(Array)","#11 \/var\/www\/wp-includes\/template-loader.php(13): do_action('template_redire...')","#12 \/var\/www\/wp-blog-header.php(19): require_once('\/var\/www\/wp-inc...')","#13 \/var\/www\/index.php(17): require('\/var\/www\/wp-blo...')","#14 {main}","thrown"]} 2024-06-12T12:41:07+00:00 CRITICAL Uncaught Error: Call to a member function captures() on null in /var/www/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Processor/PaymentsStatusHandlingTrait.php:38 CONTEXT: {"error":{"type":1,"file":"\/var\/www\/wp-content\/plugins\/woocommerce-paypal-payments\/modules\/ppcp-wc-gateway\/src\/Processor\/PaymentsStatusHandlingTrait.php","line":38},"backtrace":["","#0 \/var\/www\/wp-content\/plugins\/woocommerce-paypal-payments\/modules\/ppcp-wc-gateway\/src\/Gateway\/CreditCardGateway.php(513): WooCommerce\PayPalCommerce\WcGateway\Gateway\CreditCardGateway->handle_new_order_status(Object(WooCommerce\PayPalCommerce\ApiClient\Entity\Order), Object(Automattic\WooCommerce\Admin\Overrides\Order))","#1 \/var\/www\/wp-content\/plugins\/woocommerce\/includes\/class-wc-checkout.php(1062): WooCommerce\PayPalCommerce\WcGateway\Gateway\CreditCardGateway->process_payment(93569)","#2 \/var\/www\/wp-content\/plugins\/woocommerce\/includes\/class-wc-checkout.php(1293): WC_Checkout->process_order_payment(93569, 'ppcp-credit-car...')","#3 \/var\/www\/wp-content\/plugins\/woocommerce\/includes\/class-wc-ajax.php(520): WC_Checkout->process_checkout()","#4 \/var\/www\/wp-includes\/class-wp-hook.php(324): WC_AJAX::checkout('')","#5 \/var\/www\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)","#6 \/var\/www\/wp-includes\/plugin.php(517): WP_Hook->do_action(Array)","#7 \/var\/www\/wp-content\/plugins\/woocommerce\/includes\/class-wc-ajax.php(96): do_action('wc_ajax_checkou...')","#8 \/var\/www\/wp-includes\/class-wp-hook.php(324): WC_AJAX::do_wc_ajax('')","#9 \/var\/www\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters(false, Array)","#10 \/var\/www\/wp-includes\/plugin.php(517): WP_Hook->do_action(Array)","#11 \/var\/www\/wp-includes\/template-loader.php(13): do_action('template_redire...')","#12 \/var\/www\/wp-blog-header.php(19): require_once('\/var\/www\/wp-inc...')","#13 \/var\/www\/index.php(17): require('\/var\/www\/wp-blo...')","#14 {main}","thrown"]} ]()

Environment

Additional Details

System status ``` ```
SydeKrystian commented 3 weeks ago

Hello @tonypoxon

It seems that your GitHub issue is primarily a support request. While we value your input and feedback, GitHub is predominantly used for our development activities. For a prompt and detailed response, we kindly ask that you reach out directly to our support team.

When you contact our support team, please include a copy of your WooComnmerce system report. This will help us get to the bottom of your issue more quickly.

This looks like a conflict with another plugin. These type of errors we often see when our plugin uses the same resource library as another plugin, but they are using different versions. You can find out what plugin this conflict is caused by, by performing a full conflict test to rule out eventual issues with the theme or a different plugin. We recommend temporarily activating the default theme Storefront and disabling all other plugins except for WooCommerce and PayPal Payments to see if the behavior persists.

We'll be closing this GitHub issue for now. However, once you reach out to our support team, rest assured they'll be ready to assist you with your concerns. Thank you for your understanding!

Kind regards,
Krystian