Merge branch 'empty_stripe_token' into charge_failed

pull/1/head
Raymond Yee 2012-11-14 10:58:01 -08:00
commit a62c82df9b
2 changed files with 3 additions and 4 deletions

View File

@ -4,4 +4,4 @@ import logging
logger = logging.getLogger(__name__)
class StripePledgeForm(forms.Form):
stripeToken = forms.CharField(required=False, widget=forms.HiddenInput())
stripeToken = forms.CharField(required=True, widget=forms.HiddenInput())

View File

@ -536,9 +536,8 @@ class Processor(baseprocessor.Processor):
def make_account(self, user, token=None):
"""returns a payment.models.Account based on stripe token and user"""
if token == None:
# shouldn't happen
return None
if token is None:
raise StripelibError("input token is None", None)
sc = StripeClient()