Skip to content

Conversation

@Dinamiko
Copy link
Collaborator

Two concurrent POST requests attempted to capture the same PayPal order. Different request IDs confirm two separate PHP contexts processed the same order simultaneously, resulting in duplicate PayPal transactions and double stock reduction.

Notes:

  • Happens intermittently, difficult to reproduce.
  • Likely race condition between webhook (CHECKOUT.ORDER.APPROVED) and return URL capture flow.

@github-actions
Copy link

Test using WordPress Playground

The changes in this pull request can be previewed and tested using a WordPress Playground instance.
WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

🔗 Test this pull request with WordPress Playground

What's included:

  • ✅ WordPress (latest)
  • ✅ WooCommerce (latest)
  • ✅ PayPal Payments plugin v3.3.0-pr3885-19668032241-gd29a8c5 (built from this PR)

Login credentials:

  • Username: admin
  • Password: password

Plugin Details:

  • Version: 3.3.0-pr3885-19668032241-gd29a8c5
  • Commit: d29a8c5
  • Artifact: woocommerce-paypal-payments-3.3.0-pr3885-19668032241-gd29a8c5

💡 The demo environment resets each time you refresh. Perfect for testing!

🔄 This link updates automatically with each new commit to the PR.

⚠️ This URL is valid for 30 days from when this comment was last updated.


🤖 Auto-generated for commit d29a8c5 • Last updated: 2025-11-25T11:39:08.662Z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants