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

Refactor: update Turnstile field to extend the new security challenge field #1

Merged
merged 5 commits into from
Apr 10, 2025

Conversation

jonwaldstein
Copy link
Contributor

@jonwaldstein jonwaldstein commented Apr 7, 2025

Resolves GIVE-2349
Depends on: impress-org/givewp#7865

Description

This updates the CloudFlare Turnstile field to implement the SecurityChallenge field added in GiveWP Core.

This will ensure Turnstile will not attempt to be validated on the server before the final form submission endpoint.

Affects

  • Cloudflare Turnstile + PayPal Commerce w/ smart buttons

Visuals

Screen.Recording.2025-04-07.at.2.31.47.PM.mov

Testing Instructions

Pre-review Checklist

  • Acceptance criteria satisfied and marked in related issue
  • Relevant @unreleased tags included in DocBlocks
  • Includes unit tests
  • Reviewed by the designer (if follows a design)
  • Self Review of code and UX completed

Copy link

@glaubersilva glaubersilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jonwaldstein Great work! The submission is working as expected. I just left a comment related to a minor thing. Also, I noticed the unit tests are broken. The Copilot is showing some steps to fix it here: https://github.com/copilot/c/0835a420-db3f-4a09-8edb-011e3421209e

@jonwaldstein
Copy link
Contributor Author

@glaubersilva suggestion resolved. Also the tests will probably fail until the dependent Give branch is merged so i'll keep an eye on that.

Copy link

@glaubersilva glaubersilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jonwaldstein Great job! Ready to go. 🚀

Copy link
Member

@rickalday rickalday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passed QA tests.

@jonwaldstein jonwaldstein merged commit 8e17062 into main Apr 10, 2025
16 checks passed
@jonwaldstein jonwaldstein deleted the refactor/implement-security-challenge-field-api branch April 10, 2025 18:32
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.

3 participants