#hendr1x
1 messages · Page 1 of 1 (latest)
Hello 👋
When you say used, in what sense exactly?
Hello
I don't have the exact error but if I go through checkout, attach the payment method to a payment intent, complete payment intent I'm pretty sure the payment method becomes invalid
can not be used again
Ah I see. The payment method needs to be attached to a customer to make it re-usable.
I don't think we have a parameter that can reflect it though unfortunately. So if you're planning to re-use the PaymentMethod then you should immediately attach it to the customer (as soon as it has been created)
I'm not trying to reuse it
I'm trying to do error handling
So I have no way to check if a payment method is valid?
Unless you create a test transaction with it, I don't believe so
Are you trying to validate livemode PaymentMethods?
I'm not sure what livemode is
I have a paymentmethod. I want to confirm it is valid before attempting to use it
Is it a real card from a real customer?
You should be able to create a PaymentIntent using your Test mode API key and when you attempt to use the PaymentMethod, it should error out if its not valid.
In livemode, there's no way to know until you use the PaymentMethod in a real transaction.
yeah..I'm getting the error
I don't want errors for my customers
do you guy have a ticket system or something? Seems like this should be a required functionality.
You can write into our support team via
https://support.stripe.com/?contact=true
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
ok. Thank you for your help