I am using the Stripe test account and have been trying to check how zipcode validation works. I have set in my account to Decline both CVC failed and Zipcode failed. However, when I try the cards like "4000000000000036 With default account settings, charge will succeed but address_zip_check will fail." The charge is successful but in the response I get "address_zip_check": "unchecked". It is supposed to fail the zipcode check.
How am I supposed to check address zipcode check during in the test account?
My issue: I was intercepting the card token after submitting the form and inspecting the token itself for those verifications. After many trials I just started to check everything after the subscription creation. This is where the actual checks are happening and not during the token creation. The token itself does not contain anything that says that zipcode or address verification actually fails or succedes. Only when trying to charge/create subscription for the user is where the actual validation could fail or pass.
Good to know. Yeah the set up before charging seems to only check card details are in a valid format but only on charging if the card is actually valid (changing expired card expiration date to a random future date passes set up and only fails when you charge).