#learner-avs-check
1 messages · Page 1 of 1 (latest)
Is there a documentation around that?
Umm I think it would fall under traditional card checks yes? Postal code verification fails
https://stripe.com/docs/radar/rules#traditional-bank-checks
Also there's an option on the dashboard to allow radar rules on payments saved for future use
Would we pass the zip to Stripe as part of confirmSetup method? https://stripe.com/docs/js/setup_intents/confirm_setup#confirm_setup_intent-options
I believe so, under billing_details specifically
https://stripe.com/docs/js/setup_intents/confirm_setup#confirm_setup_intent-options-confirmParams-payment_method_data-billing_details
Can you please guide how can I reproduce this in test environment?
What step are you stuck at?
I use the test credit card number 4111 1111 1111 1111 - what' the billing zip for this? what billing zip should I enter to get a AVS error back in response of stripe.confirmSetup ?
ah give me a moment
I think you'd want to use a different test card
possibly 4000 0000 0000 0036
https://stripe.com/docs/testing#fraud-prevention
How can I test a combination of Credit Card + Zip Code for AVS?
That's the test card that you'd use with any zip and it'd be declined
Isn't that what you're trying to do?
In this case, we miss one thing - this would fail for any zip. Use case is we want to ensure that Card which has a specific Zip code for billing succeeds when that billing zip code is entered, but fails for other zip codes
Apologies for the delay.
I don't think we have any tests cards as such
You can create a custom rule to allow a card for a specific zip and fail on others.
oh, how to create such a rule?