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

Feat / Payment recaptcha #631

Merged
merged 4 commits into from
Nov 4, 2024

Conversation

royschut
Copy link
Collaborator

@royschut royschut commented Nov 1, 2024

Feat / Payment ReCaptcha

In addition to #630, this PR optionally adds recaptcha validation to Payment endpoint calls.

Recaptcha can be enabled from the Cleeng dashboard. The site token should then be added as a custom parameter to the app-config: captcha_site_key=<site_id> to have the validator (by Google) added to the DOM.

Steps completed:

According to our definition of done, I have completed the following steps:

  • Acceptance criteria met
  • Unit tests added
  • Docs updated (including config and env variables)
  • Translations added
  • UX tested
  • Browsers / platforms tested
  • Rebased & ready to merge without conflicts
  • Reviewed own code

Screenshot 2024-11-01 at 14 59 14

refactor(payment): move recaptche to right side of form
Copy link
Collaborator

@langemike langemike left a comment

Choose a reason for hiding this comment

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

LGTM. Minor changes, compared with your previous PR

@AntonLantukh
Copy link
Collaborator

@royschut is there any need to change the token dynamically (in custom params)? Did you consider making it part of the ini file?

@royschut
Copy link
Collaborator Author

royschut commented Nov 4, 2024

@royschut is there any need to change the token dynamically (in custom params)? Did you consider making it part of the ini file?

The convenience of adding it to the app config is mainly for config switching, so for demonstration purposes. Otherwise config demonstration would not be possible for configs with captcha enabled.

@royschut royschut merged commit afa7d6a into jwplayer:develop Nov 4, 2024
9 checks passed
@royschut royschut deleted the feat/payment-recaptcha branch November 4, 2024 15:35
This was referenced Nov 8, 2024
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