#ndorr-setupintent-removal
1 messages · Page 1 of 1 (latest)
Not as far as I know. Can you tell me more about what trouble is being caused by the Setup Intents still being around?
ndorr-setupintent-removal
The problem is that I want to use a single query to display payment methods for a customer. Querying on payment methods misses ACH accounts that are not yet verified. Querying on setup intents includes payment methods but I don't know how to filter out detached payment methods.
Ah gotcha. Trying to think of if there is a good way to filter those out on the setup intent call.
It might be a viable workaround to make two calls here. One for fully set up payment methods and one for setup intents for pending ACH accounts
To display the payment methods for a Customer you should use the https://stripe.com/docs/api/payment_methods/list API really. And never use the "pending SetupIntents
What if I want to replicate the view in the Stripe dashboard of the "Payment Methods" un customer overview?
then you'll need to do 2 calls, but I wouldn't personally. Or you can simply cache all of this in your own database (that's what I'd do honestly)