#kiro34
1 messages · Page 1 of 1 (latest)
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
You can disallow Country by setting that field to never on the Element: https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields
As for the card networks, you cannot disallow those brands unfortunately
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!
Can you post the exact code you're using to remove the country?
the line with billing_details is wrong. It should be something like:
fields: { billingDetails: 'never' }
Thank you! Good catch indeed! But it does not have any effect :/ The country selector is still present
That code is still not the code I mentioned
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?
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
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!