Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PayPal Checkout cannot be completed when Cloudflare Turnstile is enabled #3212

Open
3 tasks done
dwanjuki opened this issue Nov 22, 2024 · 0 comments · May be fixed by #3232
Open
3 tasks done

PayPal Checkout cannot be completed when Cloudflare Turnstile is enabled #3212

dwanjuki opened this issue Nov 22, 2024 · 0 comments · May be fixed by #3232

Comments

@dwanjuki
Copy link
Contributor

Describe the bug
When Cloudflare Turnstile is enabled, it is not possible to complete the checkout via PayPal Express.

Users are required to confirm the payment on site after returning from PayPal. This happens even when Skip the extra confirmation after users return from PayPal is selected in the Payment Gateway settings.

After returning from PayPal, the following error is displayed on the checkout page: Please complete the security check.

When the Complete Payment button is clicked, the following error is displayed: The response parameter (token) has already been validated before. This means that the token was issued five minutes ago and is no longer valid, or it was already redeemed.

To Reproduce
Steps to reproduce the behavior:

  1. Enable the PayPal Express gateway.
  2. Checkout for a membership level, pay via PayPal Express
  3. See errors.

Screenshots
security-check
response-parameter

Expected behavior
The extra confirmation step is not required if it's disabled in the Payment Gateway settings.
Checkout is successful.

Isolating the problem (mark completed items with an [x]):

  • I have deactivated other plugins and confirmed this bug occurs when only Paid Memberships Pro plugin is active.
  • This bug happens with a default WordPress theme active, or Memberlite.
  • I can reproduce this bug consistently using the steps above.

WordPress Environment
WP 6.7.1
PMPro 3.3.2

andrewlimaza added a commit to andrewlimaza/paid-memberships-pro that referenced this issue Dec 16, 2024
* BUG FIX: Fixed an issue where CloudFlare validation would fail for PayPal Express checkouts, and potentially other gateways.

Resolves: strangerstudios#3212
@andrewlimaza andrewlimaza linked a pull request Dec 16, 2024 that will close this issue
3 tasks
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 a pull request may close this issue.

1 participant