Fatal Error – “Payment is not ready for processing yet”
-
Hi team,
We’re getting a persistent fatal error from the WooCommerce PayPal Payments plugin when the
CHECKOUT.ORDER.APPROVEDwebhook hits:swift
CopyEdit
PHP Fatal error: Uncaught Exception: The payment is not ready for processing yet. in .../woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Processor/OrderProcessor.phpThe error appears to be caused by the plugin trying to process the order before it’s fully initialized or before PayPal’s order is ready. ✅ What we’ve tried:
- We patched the plugin to return early instead of throwing the exception: phpCopyEdit
if ($this->order_helper->contains_physical_goods($order) && !$this->order_is_ready_for_process($order)) { return; } - We also built a retry loop in a custom action handler using
woocommerce_paypal_payments_checkout_order_approvedthat retries order processing every few seconds up to 5 times.
This has prevented fatal errors, but we’d love to know:
- Is this something being worked on?
- Can the plugin include retry logic internally?
- Or can the webhook handler at least fail gracefully?
Let me know if logs or additional details would help.
Thanks!
- We patched the plugin to return early instead of throwing the exception: phpCopyEdit
The topic ‘Fatal Error – “Payment is not ready for processing yet”’ is closed to new replies.