#Sarvesh
1 messages · Page 1 of 1 (latest)
Hello
How can we help you ?
I am rendering Payment intent object payment form on the page. Want to load/activate the Paynow button once the form is loaded completely
what can be done for this
also on click on Payone want to disable the button so no more clicks possible
*PayNow
You can follow this guide in order to accept Payments using PayNow:
https://stripe.com/docs/payments/paynow/accept-a-payment?platform=web
this is all done. you can see in attached screeshot
I want to disable/enable the stripe Pay Now button based on form errors or multiple clicks
Ah I see what you mean now
In your frontend, you should disable your form from being resubmitted and show a waiting indicator like a spinner. If you receive an error result, you should be sure to show that error to the customer, re-enable the form, and hide the waiting indicator.
This will depends on the technology you are using in your frontend.
You can get the javascript reference of the button using var payButtonElement = document.querySelector('.pay-button');
and then you disable/enable the button click using this payButtonElement.disabled = false; //true