#hendr1x

1 messages · Page 1 of 1 (latest)

jolly urchinBOT
slim field
#

Hello 👋
When you say used, in what sense exactly?

fluid tulip
#

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

slim field
#

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)

fluid tulip
#

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?

slim field
#

Unless you create a test transaction with it, I don't believe so

fluid tulip
#

seems like a flaw

#

how do I do a test transaction?

slim field
#

Are you trying to validate livemode PaymentMethods?

fluid tulip
#

I'm not sure what livemode is

#

I have a paymentmethod. I want to confirm it is valid before attempting to use it

slim field
#

Is it a real card from a real customer?

fluid tulip
#

no..this is all test

#

for now

#

obviously I want this to work with live mode

slim field
#

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.

fluid tulip
#

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.

slim field
#

You can write into our support team via
https://support.stripe.com/?contact=true

fluid tulip
#

ok. Thank you for your help