Don't get card from local db
This commit is contained in:
parent
21f762d6b8
commit
640807eb62
1 changed files with 0 additions and 1 deletions
|
@ -580,7 +580,6 @@ class SettingsView(LoginRequiredMixin, FormView):
|
|||
def post(self, request, *args, **kwargs):
|
||||
if 'card' in request.POST and request.POST['card'] is not '':
|
||||
card_id = escape(request.POST['card'])
|
||||
user_card_detail = UserCardDetail.objects.get(id=card_id)
|
||||
UserCardDetail.set_default_card(
|
||||
stripe_api_cus_id=request.user.stripecustomer.stripe_id,
|
||||
stripe_source_id=user_card_detail.card_id
|
||||
|
|
Loading…
Reference in a new issue