#Abishek-card-country

1 messages · Page 1 of 1 (latest)

spark nexus
#

Selected when?

versed frigate
#

so I have another field in my form called State/Province. When a customer selects the country, I want to load the states on the Form.

#

so, I am trying to see if there is listener I can listen to when the country is changed and I can load the state field

#

also, I am using setup intents for future use

#

let me know if it makes sense

spark nexus
#

Gotcha. That does make sense

#

Are you already doing that? I forget exactly what it returns at the moment but I believe you can see card brand and country

versed frigate
#

I was going to, but I wasn't sure if that triggers when the country is changed

spark nexus
#

Oh is this with the Payment Element?

versed frigate
#

yes

#

the handler parameters don't return the selected value

spark nexus
#

Let me test this a bit. If it isn't in that event unfortunately I don't think there is another way to do that at the moment.

versed frigate
#

i tried to see if there was a country element, but it did not seem to be

#

if this is not possible, is there a way to hide the country dropdown?

spark nexus
#

Good question. Will look in to that as well.

versed frigate
#

thank you

spark nexus
versed frigate
spark nexus
#

No, unfortunately that is just hiding the field within the Payment Element

#

Let me see how to include info from your own fields

#

I assume you want to hide the field in the Payment Element and then have your own country field or do you have a different idea?

versed frigate
#

so, I cannot show the billing fields on the elements form?

#

so I can only force hide them, but not show those fields, they only appear based on the payment method.

#

can I show wallets when using setupIntent?

spark nexus
#

Hey sorry I dropped off this for a while.

#

Yes, they can only be force hidden and are otherwise shown based on PaymentMethod