1

I have a template that submits to stripe and gets back a 200 and a token through store.

But when the token comes back, I am getting no 'complete the order process' at all. The template doesn't submit and no error shows. I get no order in Store control panel, and no purchase call for stripe.

Can you shed some light on this?

https://gist.github.com/emagine/7248059

6
  • Any javascript errors in the console? What happens after the Stripe token is returned? Is the page submitted at all? Commented Oct 31, 2013 at 11:55
  • no javascript errors there at all. The stripe token is returned and the form does nothing from that point onward. nothing is submitted.
    – Aaron
    Commented Oct 31, 2013 at 11:59
  • just the console logs there you'll see that the info is correct in coming back, it just doesn't trigger anything in store itself [Log] stripe (checkout3, line 346) [Log] 200 (checkout3, line 364) [Log] tok_102r2H2kj2TUqVRwoW7rukOg (checkout3, line 365)
    – Aaron
    Commented Oct 31, 2013 at 12:08
  • register_member="yes" If I take this out of the checkout tag, it allows me to purchase as a logged-in member. If I am not logged in, how am I meant to purchase? This specifically was holding back the payment form.
    – Aaron
    Commented Oct 31, 2013 at 13:03
  • If there were errors then the form was definitely submitting. You generally need to check the network tab to see what is getting posted to the server. Commented Oct 31, 2013 at 21:57

1 Answer 1

2

When you have a form that is not submitting you should always remove error_handling="inline" error_delimiters='<span class="help-inline">|</span>' from your template to see if you have any errors being reported that are not templated.

Having said that if you are trying to register a member during the checkout process you need to include both a password and confirm_password field in your template at this point.

2
  • What do you do if you have both scenarios? one logged in and one not? Submit two different forms? one without register_member, and one not?
    – Aaron
    Commented Nov 1, 2013 at 12:59
  • You can use {field:register_member} instead in your checkout template along with some JavaScript to show/hide the password fields when a user ticks a checkbox. Commented Nov 1, 2013 at 18:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.