#manuborches

1 messages · Page 1 of 1 (latest)

opaque narwhalBOT
wispy talon
#

Hi there!

#

The Payment Element only collect the billing address if the selected payment method requires it. So it won't be always collected.

inland crystal
#

The address element collects that info for shipping. But if the user unselect the option 'billing address is same as shipping address' then Stripe asks for billing country, but not billing direction. How can I collect address is this case?

wispy talon
#

can you share a screenshot of this, where the address element doesn't ask for the address?

#

Also can you share your code?

inland crystal
#

I have this

#

I want this

#

This is my code

wispy talon
#

On your second screenshot I do see the address, so what is the issue?

inland crystal
#

Sorry the first screen is related to the code

#

The second screen is what I want to have in my own implementation. That is from the checkout pre design approach

#

Another code but no prob with that. Now I'm trying the same on my own

wispy talon
#

Do you have a public URL where I can see this?

inland crystal
#

Yes give me a moment to deploy I'll let you know

wispy talon
#

Thanks!

inland crystal
#

There we go

#

You'll need to add some product to cart for the stripe form to be displayed

wispy talon
#

Thanks a lot! give me a few minutes to look into this.

high thicket
#

Thanks for the link. I'm still not quite finding why the full address fields aren't appearing. Reaching out to our other colleagues to help look in to this.

inland crystal
#

Okay thank you

high thicket
#

Hey @inland crystal huge apologies on the long delay here

#

So it looks like what is happening is that those country and postal code fields that are showing up are the billing info

#

When that box is unchecked, the address form under the card info is the shipping information, and the fields that get added are for billing

inland crystal
#

So then the implementation is okay?

#

I dont know why I can ask for billing address in checkout session but not in my integration

#

Also in the checkout session there are Shipping Address and Billing Address like two different sections with title. I don't have those titles in my integration

glossy plover
#

Hello 👋
Taking over as Pompey needs to step away

inland crystal
#

Hello

glossy plover
#

I dont know why I can ask for billing address in checkout session but not in my integration
How exactly does your integration function? Are you using PaymentElement for this?

inland crystal
#

Yes PaymentElement

#

And I'm passing the options object

#

My code is in this thread there is a screen

glossy plover
#

The PaymentElement only collects billing address for payment methods that require it to process a transaction successfully. So It won't automatically ask for billing address for all the payment methods. Additionally, currently there isn't a way to force PaymentElement to collect that information.

So either you'd use your own form to collect this information and then pass it in with confirmParams OR use Address ELements.

inland crystal
#

I think I prefer to use Address ELement

#

I already have one but for shipping address

#

It would be okay to have another Address Element for billing address?

#

What should I do from my end for Stripe to differentiate both billing and shipping address?

glossy plover