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

PaymentSheet should not allow users to delete all payment methods #1391

Closed
lewismartin512 opened this issue May 14, 2023 · 4 comments
Closed
Labels
enhancement New feature or request In progress

Comments

@lewismartin512
Copy link

lewismartin512 commented May 14, 2023

Is your feature request related to a problem? Please describe.

I work often with reservation systems where we need to hold at least one payment method on system until the reservation is complete (e.g. for late cancellation/no-show fees). The PaymentSheet 'Edit' button allows for the deletion of all customer payment methods. This results in the opportunity for customers to book (where a card is required to be on file), and then subsequently use the PaymentSheet UI again to delete the payment method.

Describe the solution you'd like

Support for a boolean flag akin to "atLeastOnePaymentMethod" in the SetupParams to indicate whether the user should have the option to remove all payment methods.

Describe alternatives you've considered

Other alternative solution is to allow for the 'Edit' button to be enabled/disabled.

@charliecruzan-stripe
Copy link
Collaborator

thanks for the issue! we're working on a fix for this 👍

@charliecruzan-stripe
Copy link
Collaborator

hi!

this wont be fixed directly in the way you are asking, but there are two other options:

  • we'll be shipping support for removeSavedPaymentMethodMessage soon, which you can set on payment sheet to show a custom message when your customer removes a PM (so they could be warned there)
  • we just shipped private beta support for the customer sheet where you can directly control this behavior: https://stripe.com/docs/elements/customer-sheet?platform=react-native

@charliecruzan-stripe
Copy link
Collaborator

closed in #1498

@byudaniel
Copy link

@charliecruzan-stripe Will this be revisited with the addition of the allowsRemovalOfLastSavedPaymentMethod option added to the Android and iOS libraries?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request In progress
Projects
None yet
Development

No branches or pull requests

3 participants