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

Pre-Populate the form #4124

Merged
merged 23 commits into from
Aug 24, 2021
Merged

Pre-Populate the form #4124

merged 23 commits into from
Aug 24, 2021

Conversation

michelleb-stripe
Copy link
Contributor

Summary

Pre-Populate the form with billing details.

Motivation

Testing

  • Added tests
  • Modified tests
  • Manually verified

Screenshots

Before After
before screenshot after screenshot

@michelleb-stripe michelleb-stripe changed the title [WIP] Pre-Populate the form Pre-Populate the form Aug 20, 2021
@github-actions
Copy link
Contributor

Diffuse output:

/**
* The billing information for the user.
*
* If set, PaymentSheet will pre-populate the form fiels with the values provided.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* If set, PaymentSheet will pre-populate the form fiels with the values provided.
* If set, PaymentSheet will pre-populate the form fields with the values provided.

city = "San Francisco",
state = "CA",
postalCode = "94111",
country = "DE",
Copy link
Contributor

Choose a reason for hiding this comment

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

Is "DE" with a US address on purpose?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, United States is the default.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I switched it to a Dublin address

) : Parcelable

@Parcelize
data class Address(
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this being redefined just because of the dependency direction? Will it change to be the PaymentSheet.Address?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah

@yuki-stripe
Copy link
Collaborator

FYI this is the iOS implementation https://github.com/stripe-ios/stripe-ios/pull/335

@michelleb-stripe michelleb-stripe merged commit 439e0b9 into master Aug 24, 2021
@michelleb-stripe michelleb-stripe deleted the michelleb/pre-fill-populated branch August 24, 2021 17:30
@michelleb-stripe
Copy link
Contributor Author

Relates to #3719 and #3714

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.

None yet

4 participants