#se-paymentmethod-card-country

1 messages · Page 1 of 1 (latest)

spice crystal
#

this field should be auto set by Stripe based on the card number, it should return the the country as string, do you see different behaviour?

heavy jungle
#

yeah it is returning null for some cards

#

although this is using a test card number on our non-prod environment

#

will we ALWAYS get a non-null value for this in production using real cards?

spice crystal
#

I need to check, do you have a sample payment_method id?

heavy jungle
#

pm_1JcNfRKVUMJQZgWC2PFcCBjj (on our non-prod environment)

#

thanks

spice crystal
#

hmm interesting, where do you get the testing card number from?

heavy jungle
#

it's a Brazilian ELO card

#

a test card from ELO which we're testing the flow from

spice crystal
#

O I see. You are getting that number from Stripe doc?

heavy jungle
#

no its from somewhere else

#

i am wondering if we will see this behaviour in our production account too

#

i can provide the PAN if you like?

spice crystal
#

no its from somewhere else; do you mind share where does that come from? by right it should fail if it is not a Stripe testing card number

heavy jungle
#

6362970000457013

spice crystal
#

interesting, I am surprise it actually worked!

#

Yeah, it might be a weird bug in test mode; in actual testing, your card will be treated as a live card and should be declined in test mode.. but it works for some reason

heavy jungle
#

just wanting to confirm though that in production ,all cards will return a countryCode?

spice crystal
#

yes, it should

heavy jungle
#

cool thank you