#rana

1 messages · Page 1 of 1 (latest)

spiral swallowBOT
verbal bramble
#

You don't often do that. You better wait for the next charge and handle it properly if it's failed. By definition the payment method was good in the first place if you have set it up

eternal totem
#

I want to validate the payment method from my application. Because when a user will create a service in my application, i will first check if his payment method still active or not? if his payment method has any error, I will tell him to first fix this and then create your service.

#

Is that make sense or should I explain more?

#

@verbal bramble

verbal bramble
#

Um but you just collected their payment method a few days ago, right? How did you collect?

eternal totem
#

I am explain you with an example. A person setup a payment method in my web application in October 2022. That time his card's expire date was Dec 2022. Now it is Jan 2023. If he want to create a service from my application he need to have a active valid payment method. But his card is now expired for the expire date. That's why when he is going to create a service he will get notify that his card is expired and need to fix this issue before create the service.

#

Is it clear?

#

I have this data for that user. With using this data, I want to validate his payment method.

verbal bramble
#

If you already know this expire date passed, it's better to directly ask him updating his card. Why would you still want to validate?

eternal totem
#

This is 1 case, his card might not still active and removed from his bank / he might changed his cvc or anything can happen with his card. That's why if i can validate his payment method, i can get the exact problem if his card has.

verbal bramble
#

Okie I see, but unfortunately there is no api for firmly validating the card. You should really just continue to create a transaction and handle the error if it comes back

eternal totem
#

Can I do this by creating checkout session?

verbal bramble
#

to newly charge a service?

eternal totem
#

No I will just validate the payment method without charge.

verbal bramble
#

No not really. Checkout Session will ask to input a new card, while you already have a card

eternal totem
#

This is a payment method data.

verbal bramble
#

It means the last time you collected the card, it passed the cvc_check from card network