#Piercy - Non-Attached Payment Methods
1 messages · Page 1 of 1 (latest)
Hi Piercy. You could retrieve the payment method and check if it's associated with a customer in the response: https://stripe.com/docs/api/payment_methods/retrieve
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I'm unsure off the top of my head if a simple retrieve throws the exception you provided, but I don't believe it does
However, if it turns out the retrieve call throws the exception, then you still have an easy way to verify which payment methods are attached to a customer and which aren't
Perfect, thanks very much