#shahriyar_paymentintent-billingdetails

1 messages ¡ Page 1 of 1 (latest)

proven estuaryBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1250849328994455563

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

pastel vector
#

billing details is an object with name and email, and metadata is also an object with additional information

ancient glade
#

Can you try hardcoding real values instead to make sure it's not a variable issue? For example try this:

  clientSecret,
  {
    payment_method: {
      card: elements.getElement("card"),
      billing_details: {
        name: 'Jenny Rosen',
        address: {
          line1: '1 Main street',
          city: 'San Francisco',
          postal_code: '90210',
          state: 'CA',
          country: 'US',
        },
      },
    },
  }
);```
pastel vector
#

I have console.logged those values and here it is

ancient glade
#

try my example first please and then can you share the exact PaymentIntent id? That way I can look/confirm the values are being passed

#

shahriyar_paymentintent-billingdetails

pastel vector
#

the code just used

#

pi_3PRGf3A1aNvBOJsc0PzmOpTN

#

does it accept metadata?

#

billing details works without hard coding, just checking

ancient glade
#

perfect, and no metadata is not allowed client-side