Popping up Stripe box

Instead of showing the Stripe control on a form, i am hoping to put a button that can be pressed to show the same thing as if the Stripe control is pressed.

Is this possible?:

Thanks

Yes. We actually do this on the AppStudio order page:

Card.onclick = function(e) {
    checkSerialNumber();
    if ($("#txtSerialNumber").hasClass("has-error")) {
        NSB.MsgBox("Please correct Serial Number.")
        return
    }
    Stripe1.onclick(e);
}

After the user clicks on our button, we check to make sure the serial number is correct. If it is, we click on the Stripe control to bring it up.

Works fine. Thanks.