#pushkar_unexpected
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. 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/1212937808650444920
đ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
Hi there, since you set "never" to fields.billing_details.name, PaymentElement will not collect name from customer and that's why you need to specify name when calling stripe.createPaymentMethod.
type: 'card',
card: cardElement,
billing_details: {
name: 'Jenny Rosen',
},
});```
Here's an example of how to specify name in createPaymentMethod
Ok, thank you. Is there a simpler way to fix that maybe from the Website Stripe Portal ? would you think
Don't set "never" to fields.billing_details.name
thanks Jack, and would you know where to edit those settings ?
Show me your code
https://docs.stripe.com/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails this is where you set "never" to fields.billing_details.name.
Hi Jack, I have created my wordpress site, but I am no developer. I am sorry, I am not sure, where to find the code to share with you?