Commit 640807eb authored by PCoder's avatar PCoder

Don't get card from local db

parent 21f762d6
...@@ -580,7 +580,6 @@ class SettingsView(LoginRequiredMixin, FormView): ...@@ -580,7 +580,6 @@ class SettingsView(LoginRequiredMixin, FormView):
def post(self, request, *args, **kwargs): def post(self, request, *args, **kwargs):
if 'card' in request.POST and request.POST['card'] is not '': if 'card' in request.POST and request.POST['card'] is not '':
card_id = escape(request.POST['card']) card_id = escape(request.POST['card'])
user_card_detail = UserCardDetail.objects.get(id=card_id)
UserCardDetail.set_default_card( UserCardDetail.set_default_card(
stripe_api_cus_id=request.user.stripecustomer.stripe_id, stripe_api_cus_id=request.user.stripecustomer.stripe_id,
stripe_source_id=user_card_detail.card_id stripe_source_id=user_card_detail.card_id
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment