#Nippun
1 messages · Page 1 of 1 (latest)
Hi there
HI
Can you clarify what you mean exactly here? What is the "stripe site" and the "developer site"?
Bismarck
Now we are developing one product and use stripe to take payment
we used API like token, customer, and charge
one of the customer enter 3 digit cvv but it starts with zero
that time we get response from stripe like a invalid cvv
Do you have an example request ID you can provide me so I can take a look?
We have this customer
cus_KZvnB2RRVBCDlY
and he entering valid card details but still getting invalid cvv error response
Thanks taking a look
Okay I see a bunch of tokenization attempts that are failing due to invalid_cvc, so I assume this is what you are talking about. In this case it looks like the CVC was entered as 2 digits only.
CVC should be 3 or 4 digits
Sure
Is there any API to verify the card details without any charge
it can validate card data if i put my valid cc number but enters invalid cvv ?
Most of the time, yes. Same with attaching a card to a Customer. There are select times where a card authorization won't happen in these cases, in order to prevent card testing. We discuss this here: https://support.stripe.com/questions/check-if-a-card-is-valid-without-a-charge
But overall, attaching a Card to a Customer, or using a SetupIntent, will validate the card.
Yes I tried that but in response i m getting cvv check "unchecked"
not as like "pass"
Yep that will happen if a card validation does not occur.
but i m putting my real card data
Did you read the above article I linked?
still getting "unchecked"
The card information is verified when the card is saved, but it only verifies that the information is valid: it cannot check credit limits or account balances to guarantee that a card will have sufficient funds when you do decide to charge it.
that mean card must be saved before?
after that we can validate?
Not sure what you mean by that? That statement means that when a validation does occur, it doesn't include a check on the balances of a card (like a debit card). It just checks whether the details (card number + CVC + AVS) are correct.
So this is the validation itself, that occurs most of the time when you attach a Card to a Customer, or use a SetupIntent
I just want to validate card data , not balance
Then what you are already doing (attaching a Card to a Customer) is the correct method.
then is it possible with setup intent
They behave the same way.
but when i put wrong cvv with my valid cc number still its not giving me any error
its successfully validate and saved
Sure, because our models probably know that you are doing testing here (which is technically prohibited by the Card Networks -- you are only supposed to test in test mode), and thus are not actually doing a validation.
If you do this in test mode then you will see a response for the CVC check
i did in live mode
Right, that's what I'm saying. There was no validation here because our models know you are testing in live mode and they are meant to prevent validations on card testing so you don't get a response
Sorry, not sure how else to explain this 😦
like a charge a charge method when i put valid cc number with invalid cvv that that time we get response like invalid cvv
i just want to know can i get same response while create a customer with card details
You can't.
Not every single time.
Most of the time, yes. You get this just by attaching the Card to a Customer.
But not every single time. Because we won't perform the card validation every single time.
okay
Thanks
and is there any way to create a customer with his card details
on stripe stripe site
and after createing customer come back to my page
When you say "on stripe site" do you mean on Stripe Checkout? Our hosted Checkout page that you redirect to?
yes i will redirect to customer on stripe checkout page only for submitting card data
after submitting card data he will back on my page
Yep, you can use setup mode when you create the Checkout Session to do that: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-mode
this checkout with any amount or its just to save card details
For setup mode you are not charging any amount, just collecting details
Recommend testing it out!
okay