#Matty - Payment Element

1 messages ยท Page 1 of 1 (latest)

young current
desert grotto
#

How the heck did I miss that??? ๐Ÿ™‚ Thank you!

young current
#

Happy to help ๐Ÿ™‚

desert grotto
#

Random question: This spacing shows up when we set the billingDetails.address to 'never'. Is there a way to remove that spacing?

young current
#

Looking at this....weird

desert grotto
#

... ya. It looks like when they are hidden, the DOM still has the div with the margins set, but empty.

desert grotto
#

Were you able to find anything?

young current
#

I'm still testing this out

young current
#

Hmmm...I'm not able to recreate this. Here's with address:

#

And without

#

Here's my appearance object: appearance: {theme: 'night', labels: 'floating'}

shadow jackal
#

Hey @desert grotto this thread is still open and I am on it though I misread Snufkin's update and thought we were waiting on you for new info. Let me catch up here for a minute

desert grotto
#

I had to step away before I read his last response. My apologies.

I am passing the following to the payment element on create. This hides the country and zip which is causing the spacing issues.

fields: { billingDetails: { name: 'never', email: 'never', address: 'never' } }

shadow jackal
#

Is it just address that hides the country, or do all three need to be there?

#

Have you tried a page that is just this element and something under it? Is that the screenshot you already sent us?

desert grotto
#

I think just address. I have all three for the other services (Klarna, Clearpay, etc).

#

Yes, that's the screenshot I sent.

#

Here's what's under it.

shadow jackal
#

Are those the only two things on that page? Because we couldn't reproduce, I am wondering how we can narrow down what might be causing that there

desert grotto
#

When you show Afterpay, there is no spacing when setting the billing details the same as above?

keen ferry
#

๐Ÿ‘‹ I'm hopping in since @shadow jackal has to head out - give mea minute to catch up

desert grotto
#

OK, thank you.

keen ferry
#

I can confirm I'm seeing the same behavior when looking at the afterpay tab on payment element - let me see if there's any way to get rid of it

desert grotto
#

OK. Thanks.

keen ferry
#

I don't think there's any way to get rid of that extra spacing, but I can flag this as feedback to the team so they can fix it later