1) In my payments.views.register, my app crashes upon a post request because stripe_token is None. I understand it is using the hiddenInput widget, and therefore must get set from the server, but I do not see where this happens anywhere. For example if UserForm was a ModelForm, specifying a default value for stripe_token would fix this problem. How is this dealt with in your code?
2) In templates/cardform.html, line 26 defines a label that seems to never be used.
label for="expiry_date">Expiration date</label
Did you mean for line 26 to be this?
div class="input" id="expiry_date
Nevermind, I see now that step (1) is taken care of in static/application.js.
I'm pretty sure Step (2) is a typo, but it doesn't really affect anything.
1) In my payments.views.register, my app crashes upon a post request because stripe_token is None. I understand it is using the hiddenInput widget, and therefore must get set from the server, but I do not see where this happens anywhere. For example if UserForm was a ModelForm, specifying a default value for stripe_token would fix this problem. How is this dealt with in your code?
2) In templates/cardform.html, line 26 defines a label that seems to never be used. label for="expiry_date">Expiration date</label Did you mean for line 26 to be this? div class="input" id="expiry_date
Thank you! Jonathan