#debbie-elements
1 messages · Page 1 of 1 (latest)
@wise dove the postal code field only appears for some countries!
And so based on the test card you use and which country it's associated with it will or won't appear (we hardcode the test cards in Elements so that we can mirror what production would do)
Would that apply to real card numbers as well?
But the card number used by our customer is from the US.
Often a card is for a customer in the US but the card number looks issued by another country
So the card number can appear to be from France and we wouldn't ask postal code
If I charged the customer with their subscription using the card on file, will it not show the postal code? They submitted the form but the postal code didn't show up on their end.
We don't get the postal code from the bank. The only way we show the postal code is if your code/website/app collected it
Does this mean it didn't show up because the card was charged automatically when paid?
I'm not sure I follow what you could mean at this point I'm sorry
Elements optionally collects postal code. You can look at that card in the Dashboard and see if postal code is associated with it and which country/origin we associate with it
do you have an example payment method id pm_123 ?
I only have this pi_3JYFqRL8SFxbzcO013vkScOp
let me have a look
yes sorry, channel is extremely busy and I'm digging into it
The request that created that card token is https://dashboard.stripe.com/logs/req_WEQqq6MzVXEwE6 it was made via Elements and it was a US card so I don't understand why no postal code was entered there unfortunately
Did you write the integration yourself or do you have a developer doing that for you?
I wrote the integration. It seems to me that the zip code wasn't provided via the UI in the first place but the stripe form was marked as completed regardless, which unblocked the submit button, so we made that API call after the customer submitted the form. I was actually able to reproduce it in the UI.
Based on everything so far, it seems like Stripe Elements made the decision to not ask for a zip code for that specific card number?
Maybe, but it should never happen for a US card
And I tried with Elements and I don't get the event.complete in the change callback until after I enter the postal code
I looked at the payment you found, that card's BIN (first 6 digits) is shared between the US and Porto Rico
and my guess here is that we thought it was a card from Porto Rico so we didn't ask for the postal code.
It can unfortunately happen, if you always want the postal code, it's best to collect this yourself (but it can hurt conversion outside of US/CA/UK which is why we don't)
Ok, that helps.
Thanks for looking into this!
Of course, sorry for the confusion!