woocommerce / woocommerce-paypal-payments

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

Woocommerce Paypal Payments error #1928

Open 4Boards opened 9 months ago

4Boards commented 9 months ago

Log message received, Kinsta.com Dashboard / Logs

2023/12/23 10:07:29 [error] 100398#100398: *582359 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Exception: The payment is not ready for processing yet. in /www/laqaxewe_731/public/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Processor/OrderProcessor.php:233 Stack trace:

0 /www/laqaxewe_731/public/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-webhooks/src/Handler/CheckoutOrderApproved.php(233): WooCommerce\PayPalCommerce\WcGateway\Processor\OrderProcessor->process(Object(Automattic\WooCommerce\Admin\Overrides\Order))

1 /www/laqaxewe_731/public/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-webhooks/src/IncomingWebhookEndpoint.php(239): WooCommerce\PayPalCommerce\Webhooks\Handler\CheckoutOrderApproved->handle_request(Object(WP_REST_Request))

2 /www/laqaxewe_731/public/wp-includes/rest-api/class-wp-rest-server.php(1193): WooCommerce\PayPalCommerce\Webhooks\IncomingWebhookEndpoint->handle_request(Object(WP_REST_Request))

3 /www/laqaxewe_731/public/wp-includes/rest-api/class-wp-rest-server.php(104" while reading response header from upstream, client: 173.0.81.65, server: 4boards.co.uk, request: "POST /wp-json/paypal/v1/incoming HTTP/2.0", upstream: "fastcgi://unix:/var/run/php8.0-fpm-laqaxewe.sock:", host: "4boards.co.uk:46620"

To Reproduce

  1. UNKNOWN
  2. Suspect timing problem between Payable and Integration for Epos Now and WooCommerce PLUGIN.

Screenshots

Expected Behavior

Actual Behavior

Environment

Additional Details

System status Recovers after PHP Fatal Error ``` ```
InpsydeNiklas commented 8 months ago

It looks like the PayPal order wasn't approved yet when the webhook arrived, which normally should not be possible. This may be interesting for the PayPal Merchant Technical Support to investigate. However as we haven't been able to reproduce such a scenario, we would like to learn more about your site configuration. Please share more details about the plugin setup including your WooCommerce system report and PayPal Payments logfiles with our support team. Please include a link to this issue when sending a private message. Thanks!

Estalhun commented 8 months ago

Is it related to this problem? https://github.com/woocommerce/woocommerce/issues/41556