#bhaumik
1 messages ยท Page 1 of 1 (latest)
Hi,
This can't be achieved AFAIK, PaymentMethod API support just updating expiration information:
https://stripe.com/docs/api/payment_methods/update#update_payment_method-card
You can just re-collect all the PaymentMethod details from the customer.
Let me double check this quickly...
You can recollect CVC of a card using Split cardCvc Element:
https://stripe.com/docs/payments/save-during-payment-cards-only?platform=web#web-recollect-cvc
@clever fable I have tried that in the sandbox account, but it was not working.
I added one card from the customer detail page in the portal. At that time I added 123 CVV and when used code suggested by the link you sent I added 456 CVV.
It did not validate & payment was deducted even with the wrong CVV.
https://dashboard.stripe.com/test/customers/
Also, they have added one note to the document you sent me.
https://stripe.com/docs/payments/save-during-payment-cards-only?platform=web#web-recollect-cvc
Also, they have added one note to the document you sent me.
Yes in fact, if you want to fail the payment besides updating the cvc you need to configure a Radar rule for that.
so the reference you have shared is only updating CVV to a specific card and not validating it, correct?
Also about Radar rules, Stripe document says
"They are using ML/AI to block cards based on customer's historical data + behavioral patterns"
so there are chances that a fresh customer who is paying for the 1st time CVV check may fail because there is no payment history for the same customer.
so the reference you have shared is only updating CVV to a specific card and not validating it, correct?
Yes
so there are chances that a fresh customer who is paying for the 1st time CVV check may fail because there is no payment history for the same customer.
Nope.
Then Radar rule would work? ๐ค
Confirming because I tried enabling Radar rule in sandbox account + I have added Stripe CVV element as per https://stripe.com/docs/payments/save-during-payment-cards-only?platform=web#web-recollect-cvc
But again payment was approved Radar was there & CVV validate element was there too.
I want to trigger wrong CVV error manually in the sandbox account.
so I can be sure that it will work in Produciton.
Not sure if you can test that particular use case in test mode, because in test mode you can set any cvc when doing a payment if you are using the 4242 card for example.
This is some test scenario you can do in test mode for radar:
https://stripe.com/docs/radar/testing
But I don't think you can achieve that particular use case.
Try to reach out to Stripe support and see if they have more insights about this:
https://support.stripe.com/contact/email?topic=radar
Will I be able to test the same on production with a real card?
so when adding a card I'll add proper CVV and at the time of CVV validation element & making payment, I'll add wrong CVV.
You can test in production for sure like any normal card. But we strongly discourage doing tests in production because that may impact the risk analysis of your business.
ohh!
so there is no way to make sure if the wrong CVV check is actually working or not until the real customer (someone) accidentally adds wrong CVV.
correct?
so there is no way to make sure if the wrong CVV check is actually working or not until the real customer (someone) accidentally adds wrong CVV.
In production the radar rules are taken into accounts. You can simply rely on them and fill free to come back if you have any issue with it.
I think we're almost done. Just a few more questions.
When we enable Radar rule in production, Do I need to integrate Stripe CVV element while collecting payment?
https://stripe.com/docs/payments/save-during-payment-cards-only?platform=web#web-recollect-cvc
OR
It will work directly without CVV element, at the time of confirming payment intent using Stripe.confirmCardPayment method.
https://stripe.com/docs/js/payment_intents/confirm_card_payment
You can set/use the radar rule without CVC element.
but then how it would work?
we have 1 page where customers can create/save different payment methods (cards) without actually making payment from that.
And, 2nd page (checkout) is where we have listed all saved cards and customer chooses one card from that & makes a payment.
Radar rule might work on 1st page, to which we are attaching a new payment method. but how would it work on 2nd page (checkout) where customer is just choosing one card and we're passing that into stripe.confirmCardPayment
stripe
.confirmCardPayment('{PAYMENT_INTENT_CLIENT_SECRET}', {
payment_method: {PAYMENT_METHOD_ID}
Well we don't store the CVC outside of the initial time we collect the payment details so yes you'd need to implement CVC re-collection for subsequent payments if you want to enforce CVC checks
okay, so re-collection of CVV + Radar rule both are required to ensure that CVV is correct on subsequent payment requests or not.
Yep, it is
You can perform CVC verification by providing the CVC value either when you create a payment with a new card payment method, or when you attach a new card payment method to a customer. To re-verify the CVC on a previously saved card, refer to the integration guide on CVC recollection.
okay, understood.
sorry, but again repeating the same question.
is there any way in Sandbox, I can trigger wrong CVV error with (re-collection of CVV + Radar rule)
OR
as @clever fable mentioned
In production the radar rules are taken into accounts. You can simply rely on them and fill free to come back if you have any issue with it.
I can implement both (re-collection of CVV + Radar rule) and just be worry free in production ๐
There's a CVC decline card here: https://stripe.com/docs/testing#declined-payments
Otherwise our tests cards accept any CVC value
I'm sorry @dreamy belfry but that card will not work on the 1st page itself, at the time of creating a new payment method for a customer or attaching card.
I want to trigger incorrect CVV on 2nd page (checkout)
where card was already stored/attached to a customer and I ask CVV again.
Yeah I'm not sure that's possible as I stated our test cards accept any CVC really (which would never trigger a failed CVC check)
Many Thanks!!
Then there is no way except to use production & real card and manually add wrong CVV on the checkout page, correct?
I'll have to accept the fact that adding the wrong CVV on production might create some issue.
as @clever fable mentioned.
You can test in production for sure like any normal card. But we strongly discourage doing tests in production because that may impact the risk analysis of your business.
Yeah, nothing I can think of unfortunately

I'll give it a try and see,
Is it fine if I add any questions to this thread in the future?
when I actually implement the code.
We likely close the thread after a while, but can be re-opened if necessary