#krutarth_code
1 messages · Page 1 of 1 (latest)
👋 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.
I don't want optional fields. previously those were not coming actually.
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.
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' } }}
/>
Under your options, you would specify and set the billing details to never: https://docs.stripe.com/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails
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.
Ah, that is Link payment method. If you do not with to offer Link which has a higher conversion on your checkout flow, you can disable it here: https://support.stripe.com/questions/how-to-turn-off-link
I did not see that it was Link on the first screenshot
It worked, Thanks. We can close this.
Happy to help!