Search the Community
Showing results for tags 'address_line1'.
-
In a previous post I mentioned this but I start new topic now. The issue is I cannot get the name and address information to Stripe. By email Stripe support thought my form was correct and asked how my javascript is passing in the data. (I am using your code.) So I looked at buy.js and it appears this is where I should include those fields, so I tried that but now my charge does not go though correctly. And if there is any error reported from this buy.js script, it flashes on the screen and then scrolls off (more accurately is covered up). I have seen these errors flash on the screen before and I would like to know how I can keep those errors showing. This time I don't see anything flash but the charge does not come through because my form shows again and my debugging line does not print the charge information. Here is my code where I get the values: var name = $('.name').val(), address_line1 = $('.address_line1').val(), address_line2 = $('.address_line2').val(), address_city = $('.address_city').val(),address_state = $('.address_state').val(), address_zip = $('.address_zip').val(), address_country = $('.address_country').val(); And here is the code where I create the token: Stripe.card.createToken({ number: ccNum, cvc: cvcNum, exp_month: expMonth, exp_year: expYear, name: name, address_line1: address_line1, address_line2: address_line2, address_city: address_city, address_state: address_state, address_zip: address_zip, address_country: address_country }, stripeResponseHandler); And also, if this where I pass through this information, should I also do a validate check on them.
- 9 replies
-
- address_line1
- buy.js
-
(and 1 more)
Tagged with: