#mangeshsm_code
1 messages ยท Page 1 of 1 (latest)
๐ 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.
- mangeshsm_webhooks, 5 days ago, 25 messages
Hi
๐ happy to help
<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
can you elaborate more please?
I have created above button , i want to add custom paramters to this
Checkout button its
There button is not listing event too
what's the parameter that you want to add? I'm not sure I follow
stripeBuyButton.addEventListener('click', async function(event) {
alert(event);
});
I want to add class or custom tag to this
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
<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
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?
<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
then only show the buy button once the checkbox is clicked
No i want to keep on UI
then disable it
without even disable
Sir, please suggest proper workaround, we dont have to do silly dev
this is not silly dev
can you please help why event is not getting
because the page is unloading
and you can't stop it
i have tried delay too
@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
Okay,thanks for suggestion.
have a good day.
sure you too