Failed Order Process Then Processed Causing Duplicate Order
-
We are seeing issues with the WooCommerce PayPal Payments plugin during checkout and webhook processing.
Most transactions complete successfully, however there are repeated inconsistencies involving:
- Webhook processing
- Order matching
- Duplicate checkout/order creation
- Temporary failed captures requiring payer action
This appears to affect some customers during PayPal checkout return and approval processing. Main Symptoms Observed 1. Webhook unable to find WooCommerce order
Repeated warnings such as:
WC order ID was not found in webhook eventExamples:
- PayPal Order:
5E7416708W258280F - PayPal Order:
67339715EY926311L - PayPal Order:
9JV18449SL950614A
The PayPal webhook arrives, but WooCommerce cannot initially associate it with a Woo order.
Later in the process the order is patched with:
custom_idinvoice_id
and then captured successfully. 2. Duplicate or repeated order processing attempts
Several transactions show:
Order is already being processed (lock active)and later:
already has transaction ID, skipping payment processingThis suggests:
- webhook retries
- race conditions
- duplicate processing attempts
- delayed order linkage
3. Duplicate WooCommerce order creation risk
One checkout flow appears to have generated multiple Woo orders for effectively the same transaction.
Examples:
Woo Orders:
243773243777
Associated PayPal Orders:
5E7416708W258280F9C321708UB7660102
This may indicate:
- checkout retry behaviour
- failed return handling
- duplicate order generation after interrupted approval
Need confirmation whether this is expected behaviour or a plugin issue. 4. Temporary capture failure
Observed PayPal API response:
UNPROCESSABLE_ENTITYPAYER_ACTION_REQUIREDExample:
Failed to capture order.Issue: PAYER_ACTION_REQUIREDThe order later completed successfully after retry.
Need clarification:
- why capture was attempted before payer completion
- whether plugin retry handling is working correctly
Additional Notes Environment
- WooCommerce
- WooCommerce PayPal Payments plugin
- Live PayPal API
- Webhooks enabled and verified successfully
Webhook signature verification itself appears to work correctly.
- Why are webhook events arriving before WooCommerce order linkage is complete?
- Why do some webhook events fail to find the WooCommerce order initially?
- Is duplicate Woo order creation expected during interrupted PayPal approval flows?
- Are race conditions known within WooCommerce PayPal Payments webhook handling?
- Is there a recommended fix for:
- duplicate processing attempts
- delayed webhook linkage
- repeated capture retries
- Are there known issues with:
CHECKOUT.ORDER.APPROVEDPAYMENT.CAPTURE.COMPLETED
webhook timing?
Example Log Entries Order matching failure
Warning - WC order ID was not found in webhook eventProcessing lock
Order is already being processed (lock active)Duplicate processing prevention
already has transaction ID, skipping payment processingFailed capture
UNPROCESSABLE_ENTITYPAYER_ACTION_REQUIREDIs this
- expected
- cosmetic logging only
- or indicative of a plugin/order synchronisation issue that risks:
- duplicate Woo orders
- abandoned captures
- failed fulfilment
- customer confusion
Thanks in advance
The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.