Using Expresso Store and Stripe, I'm getting a conflict with either the naming convention of Expresso Store and stripe.js stripeResponseHandler, or my jQuery
Passing "user" details is null upon submit to Stripe.
My Expresso Store post details via firebug:
XID 7db7d1ad91f9fa13deeb13de67c784226ed345e7
billing_address 1 243 Blank Rd
billing_address2
billing_address3 Blastoff
billing_country us
billing_name Denny Test
billing_phone 330-000-0000
billing_postcode 44231
billing_region OH
form_name
next Confirm Order
next_url store/confirm-stripe
order_email [email protected]
return_url store/details
secure_return 1
shipping_address1
shipping_address2
shipping_address3
shipping_country us
shipping_name
shipping_phone
shipping_postcode 44281
shipping_region OH
shipping_same_as_billing 0
shipping_same_as_billing 1
site_id 1
My Response handler:
function stripeResponseHandler(status, response) {
$("#checkout_submit").attr('disabled', false);
if (response.error) {
alert(response.error.message);
} else {
var token = response['id'];
var form$ = $("#payment_token");
$(form$).val(token);
form$.append("<input type='hidden' name='stripeToken' value='" + token + "'/>");
$("#checkout_submit").unbind("click").click();
}
}
And the response in Stripe:
object: "card"
last4: "4444"
type: "MasterCard"
exp_month: 1
exp_year: 2014
fingerprint: "3HSdYop7eOmsdo3a"
country: "US"
name: "Denny Test"
address_line1: "undefined"
address_line2: "undefined"
address_city: null
address_state: null
address_zip: "undefined"
address_country: null
cvc_check: "pass"
address_line1_check: "pass"
address_zip_check: "pass"