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

Simplify present payment sheet #514

Merged
merged 4 commits into from
Aug 13, 2021

Conversation

arekkubaczkowski
Copy link
Collaborator

@arekkubaczkowski arekkubaczkowski commented Aug 12, 2021

Right now presentPaymentSheets has two params:

  • clientSecret not used anywhere
  • confirmPayment, used to differentiate between single-step and multipe-step payment sheets.

This last param is not very clear for developers as it always needs to be the opposite of the param customFlow from initPaymentSheet. This could be simplified to inherit the config from initPaymentSheet, or otherwise explain better and throw an error in the case customFlow and confirmPayment are the same.

My proposal is to remove both params. This would look like the native implementations that don't need any params in the respective methods

Copy link
Contributor

@thorsten-stripe thorsten-stripe left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@arekkubaczkowski arekkubaczkowski merged commit 635dbbd into master Aug 13, 2021
@arekkubaczkowski arekkubaczkowski deleted the feat/simplify-present-payment-sheet branch August 13, 2021 06:58
@thorsten-stripe thorsten-stripe mentioned this pull request Sep 2, 2021
2 tasks
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

3 participants