#hiru99 - card
1 messages ยท Page 1 of 1 (latest)
Hi there!
You want to check if the card is valid without making a charge?
If so, this is explained here: https://support.stripe.com/questions/check-if-a-card-is-valid-without-a-charge
i am creating stripe setupIntent with blocked testing card but there i not receive any error so how can i manage this
?
Which test card are you using? Is it 4000000000000341?
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?
๐ 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
when i used this card for creating setup intent and payment method but i didn't receive error so what is the solution
could you please share the payment intent id?
pi_3LFYjO2SCaQd7EIe0lYMYNDy
looking at that
?
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)
how can i update payment method in payment intent can you share me the method
the same way you did the first time , you'd pass the client_secret to the Elements component
when I was updating payment intent. after this payment intent status is required_conformation why this is already confirmed?
in this confirm is not allow
then you can just call confirm on Payment Intents
yes you're right, it's not possible
confirm:true is not allow in this so how can i do
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
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
but i am working for ios app API
then you'd use PaymentSheet