#heenatejwani_code

1 messages ยท Page 1 of 1 (latest)

viral schoonerBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1413080291899211889

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

tulip marsh
#

๐Ÿ‘‹ happy to help

#

would you mind elaborating?

ivory patrol
#

yes I am trying to disable assitant on our paypage with this code snippet
const stripe = Stripe("%s", {stripeAccount: "%s", developerTools { assistant { enabled : false} }});

#

Is this correct or can you provide a sample for this?

tulip marsh
#

you're missing ":" in 2 places

ivory patrol
#

talking about this assistance

tulip marsh
#
 { enabled : false} }});
ivory patrol
#

oh ok let me try this

tulip marsh
#

but why are you using "%s"?

#

are you using String.format or something like that?

#

is your html server-rendered?

ivory patrol
#

Yes

#

that is working fine

tulip marsh
#

let me know if you need any more help

ivory patrol
#

can you now help me if I want to removed

#

What I need to write in appreance api ?

tulip marsh
#

you can't remove that

ivory patrol
#

Can move this both of the page ?

tulip marsh
ivory patrol
#

Can we move this bottom of the page ?

tulip marsh
#

no not really

ivory patrol
#

can't we do something like this

#

I am not sure what should I write in appearance api

#

Can you please first check then confirm

tulip marsh
#

is BACS DD the only option you have?

#

or do you also have cards or other PMTs

ivory patrol
#

For embedded component we have BACS DD right now

#

but in future will use for more countries also

#

Yellow highlighted working but blue highlighted is not working may be class name is not correct

#

you there?

tulip marsh
#

sorry for the late reply. if there's more than one type of payment method you can't hide the name of the payment method type

ivory patrol
#

What if I have only one right now?

tulip marsh
#

if there's only one you shouldn't be seeing any title

#

what's your layout config?

#

I mean the layout option you're passing when you're creating the PaymentElement

#

if you're using type: 'accordion' then you need to remove it and then the BACS DD title will be removed

ivory patrol
#

I am not using this kind of property in my script

tulip marsh
#

would you mind sharing your code?

ivory patrol
#

ok sharing my sample script

tulip marsh
#

oh so you're using ui-mode 'custom' for Checkout Sessions right?

ivory patrol
#

yes

#

embedded component with checkout session api

tulip marsh
#

ok in that case you need to pass layout:{type: 'auto'} when creating the Payment Element

#

const paymentElement = checkout.createPaymentElement({layout:{type:'auto'}});

ivory patrol
#

what will happen with this property?

tulip marsh
#

you will no longer get the "BACS" title when there's only one

ivory patrol
#

can we move this end of the page ?

tulip marsh
#

nop

ivory patrol
#

okay

tulip marsh
#

the title can either be shown or not

ivory patrol
#

got it

#

thanks it worked