Skip to content
Snippets Groups Projects
Commit fa684d69 authored by Christian Dresen's avatar Christian Dresen
Browse files

[WarpPay] Fixed Cash paid

parent f67f8a0b
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,8 @@ def transaction(request, user_id=None):
if 'cash_paid' in request.data:
t.cash_paid = bool(request.data['cash_paid'])
t.amount = product.price_vk
u.credit -= t.amount
if not t.cash_paid:
u.credit -= t.amount
except:
return Response(status=status.HTTP_406_NOT_ACCEPTABLE)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment