Hi Ray,
On this Stripe setup I am trying to pass the customer name along with the cc info.
Here is the Strip code section:
$(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(),
name: $('#name').val()
}, stripeResponseHandler);
return false; // submit from callback
});
});
name: $('#name').val() grabs this hidden input on the confirm.php page:
<input name="name" type="hidden" id="name" value="<?php echo(WA_getSavedFormValue('CheckoutWizard_NewFromBlank_Default','Last_Name')); ?> - membership" data-stripe="name">
The problem is the saved form value is not showing up. How can I make sure that info is available on the confirm page?
thx
Eric