#mangeshsm_code

1 messages ยท Page 1 of 1 (latest)

wispy torrentBOT
#

๐Ÿ‘‹ 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/1305876688160293017

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

gritty iron
#

Hi

coral owl
#

๐Ÿ‘‹ happy to help

gritty iron
#

<stripe-buy-button
buy-button-id="buy_btn_1QCfnEGBii5P8qu2I7wA6Nhc"
publishable-key="pk_test_51Q2wxEGBii5P8qu2xzjevhmGSOgcE6a4qM9BUtXarCDOshvY79CQTYrbhMKs4UNJ43GUVgMJINwJNEMeEtWuC3OQ00MzO7xbsI"

</stripe-buy-button>

#

I have this button added i want to add custom parameters to this

coral owl
#

can you elaborate more please?

gritty iron
#

I have created above button , i want to add custom paramters to this

#

Checkout button its

#

There button is not listing event too

coral owl
#

what's the parameter that you want to add? I'm not sure I follow

gritty iron
#

stripeBuyButton.addEventListener('click', async function(event) {
alert(event);
});

#

I want to add class or custom tag to this

coral owl
#

I think the best thing to do here is to wrap the Stripe Buy Button with a div and add the click listener to that instead

gritty iron
#

<div class="button-container" style=" display: flex;
justify-content: center;
align-items: center;
height: 100%;
width: 100%;
">
<stripe-buy-button
buy-button-id="buy_btn_1QCfnEGBii5P8qu2I7wA6Nhc"
publishable-key="pk_test_51Q2wxEGBii5P8qu2xzjevhmGSOgcE6a4qM9BUtXarCDOshvY79CQTYrbhMKs4UNJ43GUVgMJINwJNEMeEtWuC3OQ00MzO7xbsI"

</stripe-buy-button>
</div>

#

I did this already

coral owl
#

but in all cases, since the clicking the button redirects to the checkout page

#

I'm not sure if it's a good idea to listen on the click event

#

what are you trying to achieve exactly here?

gritty iron
#

<input type="checkbox" id="term_privacy_sell_page_mobile" name="term_privacy" value="" style="width: 33px;height: 20px;margin-top: 0px;margin-bottom: 25px;margin-left: -4px;" />

#

I have this checkbox and if it not checked then i have to give alert to user

#

so before checking checkbox logic i want it should give me event

coral owl
#

then only show the buy button once the checkbox is clicked

gritty iron
#

No i want to keep on UI

coral owl
#

then disable it

gritty iron
#

without even disable

#

Sir, please suggest proper workaround, we dont have to do silly dev

coral owl
#

this is not silly dev

gritty iron
#

can you please help why event is not getting

coral owl
#

workarounds shouldn't be the go to

#

when there's a proper UI/UX way of doing something

coral owl
#

and you can't stop it

gritty iron
#

i have tried delay too

coral owl
#

@gritty iron you just need to accept disabling the buy button or not showing it, there's no 100 ways to achieve what you want

gritty iron
#

Okay,thanks for suggestion.
have a good day.

coral owl
#

sure you too