#debbie-elements

1 messages · Page 1 of 1 (latest)

azure fern
#

@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)

wise dove
#

Would that apply to real card numbers as well?

azure fern
#

Yes

#

we only collect the postal code in certain countries such as US, Canada and UK

wise dove
#

But the card number used by our customer is from the US.

azure fern
#

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

wise dove
#

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.

azure fern
#

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

wise dove
#

Does this mean it didn't show up because the card was charged automatically when paid?

azure fern
#

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 ?

wise dove
#

I only have this pi_3JYFqRL8SFxbzcO013vkScOp

azure fern
#

let me have a look

wise dove
#

The origin country is from the US for this card.

#

Hi @azure fern just a follow up 🙂

azure fern
#

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?

wise dove
#

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.

azure fern
#

ahhhh I think I see

#

let me test something real quick

wise dove
#

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?

azure fern
#

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)

wise dove
#

Ok, that helps.
Thanks for looking into this!

azure fern
#

Of course, sorry for the confusion!

wise dove
#

That's ok! Have a nice day!

#

Hi @azure fern by the way one last question, how can we check the bin if it's being shared with other country or if it's outside the US? Do you have any list of Bins?

azure fern
#

that's mostly impossible

#

with Elements you don't have access to the BIN, it's sensitive card information

#

and we don't share our bin lists, you don't really have a way to detect this