Tagged: jQuery
Hello,
I’m using WP Simple Pay Pro and I want the stripe checkout to execute on an external button (found here)
I have already done this but now I’m having trouble with the jquery script. I’m not 100% sure where to put it to get it to work properly.
Also if I give my button the custom class “gpmonthly” then will this be the correct script?
jQuery(‘#gpmonthly’).click(function(e) {
e.preventDefault();
jQuery(‘#sc_checkout_form_1’).find(‘.sc-payment-btn’).click();
});
Thanks in advance
Hey rauschworks,
I think you double posted, I replied to your other thread here: https://kriesi.at/support/topic/adding-jquery-to-a-button/. Let stick to the first thread. I’ll close this one for now.
Best regards,
Rikard