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

add validations for isEligible merchant payload #2459

Merged
merged 2 commits into from
Jan 3, 2025

Conversation

imbrian
Copy link
Contributor

@imbrian imbrian commented Dec 31, 2024

Description

Adds validations for amount, currency, and nonce to 3DS component's isEligible method.

Why are we making these changes? Include references to any related Jira tasks or GitHub Issues

Reproduction Steps (if applicable)

Screenshots (if applicable)

Dependent Changes (if applicable)

Groups who should review (if applicable)

❤️ Thank you!

@imbrian imbrian marked this pull request as ready for review January 2, 2025 16:58
@imbrian imbrian requested a review from a team as a code owner January 2, 2025 16:58
@imbrian imbrian merged commit 013410e into fastlane-3ds-e2e Jan 3, 2025
3 checks passed
@imbrian imbrian deleted the feature/2861-isEligible-validations branch January 3, 2025 16:38
siddy2181 added a commit that referenced this pull request Jan 3, 2025
… nonce (#2452)

* chore: prettier

* allow three-domain-secure component

* refactor threedomainsecure component to class

* correct typo

* refactor test for class component

* chore: fix lint

* chore: fix flow issues

* pin flow-remove-types and hermes-parser version due to flow errors

* return methods only instead of entire class

* modify interface to reflect future state

* resolve WIP stash merge

* implement isEligible request to API

* change sdktoken to idtoken

* modify protectedExport to Local or Stage check

* change protectedexport to local/stage export

* pass transaction context as received

* fix flow type errors

* linting / flow fixes and skipping test for now

* add isEligible test skeleton

* check for payer-action rel in links

* throw error on API error isntead of false

* wip: add test for isEligible

* remove comments

* additional test for isEligble

* remove console logs

* add threeDS overlay component

* add styling for 3DS iframe overlay

* update overlay, save 3ds comp on eligibility to class variable

* fix stage url,nit

* fix lint

* fix lint/typecheck

* fix tests

* fix tests

* fix something please

* test with dub in stage

* remove port

* test api subdomain

* add sdkMeta, logs, fix css

* wip

* pass braintree-version header to gql

* fix lint

* fix typecheck

* skip test

* add domain

* testing only fix

* add allowParentDomain

* add globals and enable automatic config

* render zoid in parent, pass payerActionUrl prop

* fix lint

* fix show() response back to merchant

* call eligibility api with an lsat

* fix response back to the merchant

* fix response back to the merchant

* console logs cleanup

* add tests for interface and api

* add test - utils.jsx

* add devOnlyExport, cleanup

* reverted dist content

* fix test for protected export

* fix test for protected export

* address review comments

* remove automatic:true flag

tests, make show async

* wrap show around native promise to make await-able

fix types

fix types

typecheck

* add lsat support for Partner integration

* fix lint tests

* update tests

* add validations for isEligible merchant payload (#2459)

* fix validation logic

* fix typecheck

---------

Co-authored-by: Mervin Choun <[email protected]>
Co-authored-by: Brian Tedder <[email protected]>
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