#hana ito

1 messages · Page 1 of 1 (latest)

covert blazeBOT
limber leaf
#

hello! give me a while to get back to you

covert blazeBOT
snow ice
#

👋 Taking over this thread

#

Are you using the address for shipping or billing?

#

If it's shipping, you may use const {complete, value} = await addressElement.getValue(); to get the address details, then set it to the stripe.confirmCardPayment like:

await stripe.confirmCardPayment(
  intent.clientSecret,
  {
    payment_method: {
      card: elements.getElement('card'),
    },
    shipping: value,
  }
);
covert blazeBOT
flat oasis
#

I am using the address for shipping. thank you. I'll try. Is there anything special to add to the server-side code?

snow ice
#

It should just be client side only