#kiro34

1 messages · Page 1 of 1 (latest)

teal nicheBOT
silent roost
#

You can add default values to be displayed in the Elementhttps://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-defaultValues

#

Apologies for all the editing. Give me just a second

#

As for the card networks, you cannot disallow those brands unfortunately

toxic bramble
#

Hello two-shoes, thank you for your reply!

#

The disallow for the Country does not seem to work unfortunately, I am using the stripe.elements(options?) to create the Elements, not the elements.create('payment',options?). Any idea on how to remove the country for the stripe.elements(options?) ? Thank you very much!

silent roost
#

Can you post the exact code you're using to remove the country?

toxic bramble
silent roost
#

the line with billing_details is wrong. It should be something like:

fields: { billingDetails: 'never' }

toxic bramble
#

Thank you! Good catch indeed! But it does not have any effect :/ The country selector is still present

silent roost
#

That code is still not the code I mentioned

toxic bramble
#

I tried this one too

#

I'm noticing in the doc that the billingDetails parameter is only in the elements.create('payment',options?) part, not in the stripe.elements(options?). Is there a difference between the two?

silent roost
#

Hmmm, I'm not sure. I think it should be doing the same thing

#

Where are you actually creating the Payment Element?

#

You should have a elements.create() method somewhere

toxic bramble
#

Indeed, it was right below and it works perfectly now. I think it's a sign for me to disconnect for the night... Thank you very much for the help!