#Sarvesh

1 messages · Page 1 of 1 (latest)

undone cedarBOT
odd tundra
#

Hello
How can we help you ?

granite timber
#

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

odd tundra
granite timber
#

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

odd tundra
#

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.

granite timber
#

ok

#

do you have any example with jquery/javascript

odd tundra
#

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