Here is the whole section of code
<script type="text/javascript">
// this identifies your website in the createToken call below
Stripe.setPublishableKey('pk_live_***********************************');
function stripeResponseHandler(status, response) {
if (response.error) {
// re-enable the submit button
$('#Payment_submit').removeAttr("disabled");
// show the errors on the form
$(".payment-errors").html(response.error.message);
} else {
var form$ = $("#Payment_NewFromBlank_Default");
// token contains id, last4, and card type
var token = response['id'];
// insert the token into the form so it gets submitted to the server
form$.append("<input type='hidden' name='stripeToken' value='" + token + "' />");
// and submit
form$.get(0).submit();
}
}
$(document).ready(function() {
$("#Payment_NewFromBlank_Default").submit(function(event) {
document.MM_returnValue = false;
// disable the submit button to prevent repeated clicks
$('#Payment_submit').attr("disabled", "disabled");
// createToken returns immediately - the supplied callback submits the form if there are no errors
Stripe.createToken({
number: $('#Card_Number').val(),
cvc: $('#Card_CVV').val(),
exp_month: $('#Card_Exp_Month').val(),
exp_year: $('#Card_Exp_Year').val(),
address_line1: $('#Address_1').val(),
address_city: $('#City').val(),
address_state: $('#State').val(),
address_zip: $('#Country').val(),
address_country: $('#Postal_Code').val(),
name: $('#Last_Name, #First_Name').val() + " - reunion-donation"
}, stripeResponseHandler);
return false; // submit from callback
});
});
</script>