#hana ito
1 messages · Page 1 of 1 (latest)
hello! give me a while to get back to you
👋 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,
}
);
I am using the address for shipping. thank you. I'll try. Is there anything special to add to the server-side code?
It should just be client side only