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 preferredNetwork option #537

Merged
merged 6 commits into from
Jan 11, 2024

Conversation

martinalong-stripe
Copy link
Contributor

@martinalong-stripe martinalong-stripe commented Jan 11, 2024

Summary & motivation

Adds a preferredNetwork option that can be passed upon card and cardNumber create. The shape is an array of card networks.

Also adds the disableLink option on create to cardNumber. It had previously been added to card, and it should've been added to cardNumber as well, but was forgotten.

Testing & documentation

I wrote unit tests

Public documentation will be updated later on (feature is not yet released)

@martinalong-stripe martinalong-stripe changed the title Card Element Card Brand Choice preferredNetwork option Add preferredNetwork option Jan 11, 2024

/**
* Applies a disabled state to the Element such that user input is not accepted.
* Default is false.

Choose a reason for hiding this comment

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

Suggested change
* Default is false.
* Default is `false`.

to be consistent with other comments

Copy link

@keno-stripe keno-stripe left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@martinalong-stripe martinalong-stripe merged commit afee569 into master Jan 11, 2024
2 checks passed
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