#hiru99 - card

1 messages ยท Page 1 of 1 (latest)

mental moat
#

Hi there!

#

You want to check if the card is valid without making a charge?

kind skiff
#

i am creating stripe setupIntent with blocked testing card but there i not receive any error so how can i manage this

#

?

mental moat
#

Which test card are you using? Is it 4000000000000341?

kind skiff
#

4100000000000019 always blocked card

#

but when i create payment intent than i got error so what should i do now

#

i want to check is card is valid or not before creating payment intent so what can i do

#

tell me the method?

worn coral
#

๐Ÿ‘‹ stepping in for my colleague

#

in test mode there are two types of cards that can generate declines

#

the first table shows the card that you can use to test declines but those could not be attached to a user

#

the card that my colleague mentioned gets attached to the customer but then gets declined in subsequent payments

#

as for your card you're trying to test this is going to be always blocked because the risk level is the highest

#

so instead you can pick other cards to test depending on what you're trying to achieve

kind skiff
worn coral
#

could you please share the payment intent id?

kind skiff
#

pi_3LFYjO2SCaQd7EIe0lYMYNDy

worn coral
#

looking at that

kind skiff
#

?

worn coral
#

sorry for the delay

#

i want to check is card is valid or not before creating payment intent so what can i do
actually you can't

#

but there's no reason to be afraid of creating a PaymentIntent

#

even if the card is fraudulent or got rejected, the Payment Intent's status will go back to requires_payment_method, meaning that you could still use it with another Payment Method (card, or other type)

kind skiff
#

how can i update payment method in payment intent can you share me the method

worn coral
#

the same way you did the first time , you'd pass the client_secret to the Elements component

kind skiff
#

when I was updating payment intent. after this payment intent status is required_conformation why this is already confirmed?

worn coral
#

what did you update?

#

could you please send the payment intent id ?

kind skiff
worn coral
#

in that case you should pass confirm: true

#

as well

kind skiff
#

in this confirm is not allow

worn coral
#

then you can just call confirm on Payment Intents

#

yes you're right, it's not possible

kind skiff
#

confirm:true is not allow in this so how can i do

worn coral
kind skiff
#

so first i create update payment intent api and after that i again create confirm payment intent api? really it's good for updating we call two api

worn coral
#

you could have used the method I suggested above

#

in which you don't have to update the payment method on the API, our front-end library does that for you

kind skiff
#

but i am working for ios app API

worn coral
#

then you'd use PaymentSheet