ezet / stripe-sdk

A simple and flexible Stripe library for Flutter with complete support for SCA and PSD2.
https://pub.dev/packages/stripe_sdk
Other
137 stars 137 forks source link

Set default card if more than one attached to customer #159

Closed justoke closed 2 years ago

justoke commented 2 years ago

In the example I downloaded sometime ago I noticed this commented out with reference to a function that sets the default customer's card:

image

How should the default card be set for a list of cards from the PaymentMethodStore ?

Thank you.

justoke commented 2 years ago

This is really an application concern. I came up with a scheme to allow user to press and hold a card to set it as the default against the customer's profile. This is independent of Stripe customer and easy to manage in this way