#davidatmaven
1 messages · Page 1 of 1 (latest)
Hi there
You can't prevent the user from managing (deleting) their PaymentMethods if you pass a Customer ID and Ephemeral Key to the frontend so that their saved PaymentMethods are shown.
If you don't want to show saved PaymentMethods at all, then you can omit the ephemeral key
No real inbetween at the moment
Thanks for your response. So just to be clear, if we, on the iOS FE side, show the PaymentSheet, there's no way to configure it to prevent them from deleting their last payment method? We would need to monitor changes and handle once we saw they deleted their last payment method?
If you pass a Customer ID and Ephemeral Key to your PaymentSheet config on frontend then the saved PaymentMethods will always be shown and the option to delete them will be available. You can prevent them from deleting by not showing their saved PaymentMethods at all (by not passing an Ephemeral key). Otherwise, yes you need to monitor for actions the customer takes.
Ok thank you @leaden niche !