Merge branch 'empty_stripe_token' into charge_failed
commit
a62c82df9b
|
@ -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())
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue