//TODO: paste code from step 1.1.5 paymentForm.build(); // onGetCardNonce is triggered when the "Pay $1.00" button is clicked function onGetCardNonce(event) { // Don't submit the form until SqPaymentForm returns with a nonce event.preventDefault(); // Request a nonce from the SqPaymentForm object paymentForm.requestCardNonce(); }