#CheckMate
1 messages · Page 1 of 1 (latest)
Hi
You can refer to this part of this guide:
https://stripe.com/docs/disputes/prevention/verification#cvc-check
AFAIK, you need to create a Radar Rule for that
I am not talking about this.
If the cvc is accidentally written wrong by the customer. Then I want to highlight the cvc block in red and make it apparent to the customer that the cvc was wrong.
Then when the customer enters correct cvc I want to trigger confirm payments call from stripe
Without creating a new payment intent
I know that the status would be "requires_payment_method"
Also I need a list of error codes for which I can do similar retries for a payment.
When using Stripe Elements, input are validated as it is typed...
You can listen to the change event:
https://stripe.com/docs/js/element/events/on_change?type=paymentElement#element_on_change-handler-complete
And when complete is true, that means all required fields for the selected payment method in the Payment Element have been filled with potentially valid input. so you can trigger the submit
This is the list of all decline codes:
https://stripe.com/docs/declines/codes
Check this guide, I think it will be helpful for your case:
https://stripe.com/docs/payments/accept-a-payment-deferred
This is not regarding validation either. Let's say the customers cvv is '123' but he/she accidentally type '122'. Then after the call goes to stripe server. Stripe returns an error and status code would be payment_method_requires . In this case I want the customer to enter the card details again and make payment
Also there are retries over here what are these exactly https://github.com/stripe/stripe-android/blob/8612d550dc1e8964c2ff4e6d0a840194efa0dcc3/stripecardscan/src/main/java/com/stripe/android/stripecardscan/framework/util/Retry.kt#L23
Hi @mighty inlet , can you please help here.
Hi! Sorry for the delay, having a look.