#krutarth_code

1 messages · Page 1 of 1 (latest)

hidden solsticeBOT
#

👋 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.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 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/1230207356454047844

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

vale elm
#

I don't want optional fields. previously those were not coming actually.

leaden krakenBOT
fervent vapor
#

Hi, we only collect necessary information for the selected payment method. If you would like to disable collecting these data and pass this data later, you can when creating the PaymentElement, https://docs.stripe.com/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails by setting these fields to 'never' . You would need to pass that information https://docs.stripe.com/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method_data-billing_details on the confirmation call.

vale elm
#

I am still not clear on how to stop the displaying of the optional fields like email and phone number which are present in the screenshot which i sent on the last message. I'm using React. Payment element looks like this: <PaymentElement
id="payment-element"
options={{ wallets: { applePay: 'never', googlePay: 'never' } }}
/>

fervent vapor
vale elm
#
        id="payment-element"
        options={{
          wallets: { applePay: 'never', googlePay: 'never' },
          fields: {
            billingDetails: {
              address: 'never',
              email: 'never',
              name: 'never',
              phone: 'never'
            }
          }
        }}
      /> ⁠```

still showing up, it is stange because since last many months those fields were not coming.
fervent vapor
#

I did not see that it was Link on the first screenshot

vale elm
#

It worked, Thanks. We can close this.

fervent vapor
#

Happy to help!