#Nippun
1 messages · Page 1 of 1 (latest)
Hello, not sure I understand your question. The checkout session itself will validate card info when the user puts it in to the page. Are you looking to do further validations once the checkout session is complete?
Are you adding in to the page directly or are you using some wallet like google or apple pay?
Our test cards accept any CVV but we do have a test card for getting a CVC failure if you want
Actually it looks like I am wrong. If you use a 2 number CVC we should reject it. Are you using a two number CVV or something else? https://stripe.com/docs/testing#invalid-data
I m trying with live mode
👋
Checkout performs validation to ensure there are the correct digits, yes.
Then we do an authorization with the issuer
The issuer can say the CVC is wrong, but still not decline the authorization
If you want to block all failed CVC attempts then you need to turn on the Radar rule that blocks for failed CVC
Is there any way can i validate card number with valid cvv?
Yes, see the above. Turn on your Radar rule to block if the CVC is invalid
I enabled that check box but still stripe accept wrong cvv with valid card number
Can you provide the SetupIntent ID?
seti_1Ln2awEWPdgTpoPjRstCPwog
Thanks, taking a look
okay
Okay so looks like this card has been used for testing a lot lately. Testing in livemode is prohibited (see: https://stripe.com/docs/testing#use-test-cards). You should be using our test cards. Since you have been testing a lot with a live card, our models have stopped running authorizations on that card since we know it is being used for testing.
That said, the other issue here is that you don't actually have your block rule on: https://dashboard.stripe.com/settings/radar/rules
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You want to turn on the Block if CVC verification fails rule
And then you want to test in testmode
Using one of our test cards that will decline on CVC failure
If i user another card then it will get validate correclty?
I can't recommend that you test in live mode.
okay i need to test in test mode?
Yes. Use your test mode API keys and our test cards which can be found at https://stripe.com/docs/testing
For instance the 4000000000000127 card will simulate an incorrect CVC decline
(as long as you input a CVC)
Step 1/ turn on the Block if CVC verification fails in your Dashboard at https://dashboard.stripe.com/test/settings/radar/rules
Step 2/ create a Checkout Session with your test-mode API Key (sk_test_xxxxx)
Step 3/ go to the Checkout Session and use the 4000000000000127 and enter any CVC and you will see a decline for invalid CVC
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.