#madhav-sharma_api

1 messages ¡ Page 1 of 1 (latest)

scarlet wraithBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question. Thank you for your patience!

⏱️ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime! If this thread is closed and you have another question you'll need to start a new thread.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1214467775423062037

📝 Have more to share? You can add more detail below, including code, screenshots, videos, etc.

umbral harness
#

Are you using the Payment Element?

elfin dune
#

Yes @umbral harness

#

I am using payment element and address element

umbral harness
#

So you are looking for a custom country selector, and based on that control the payment method can be displayed on payment element?

elfin dune
#

Yes @umbral harness that's what I am currently trying to implement

umbral harness
elfin dune
#

So will that take care of the allowed payment methods ?

umbral harness
#

Hmm could you try in test mode?

elfin dune
#

Sure, let me get back to you after trying it in test.

#

@umbral harness
Also can we hide the full name field in the address element
I have tried specifying it with options as

    options={{
      fields: {
        name:'never',
        email:'never'
      }
    }}

for both payment element as well as address element in components
Still it is rendering the name field in the address element

umbral harness
#

sorry

elfin dune
#

No issues but can we do that or is it a required field

umbral harness
#

I think it's a required field

elfin dune
#

So can you cofirm it once

umbral harness
#

Basically configurable options should be in the Doc, so I believe name and email is not customizable here