Skip to content

Commit

Permalink
Addition of check for amount
Browse files Browse the repository at this point in the history
  • Loading branch information
kushthedude committed Sep 15, 2019
1 parent 9bfde57 commit 62179aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/orders.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def is_payment_valid(order, mode):


def check_billing_info(data, order):
if order.event.is_billing_info_mandatory and data.get('amount') and data.get('amount') > 0 and not (data.get('company')
if order.event.is_billing_info_mandatory and data.get('amount') and data.get('amount') > 0 and not (data.get('company')
and data.get('address') and data.get('city') and data.get('zipcode') and data.get('country')):
raise UnprocessableEntity({'pointer': '/data/attributes/is_billing_enabled'},
"Billing information incomplete")
Expand Down

0 comments on commit 62179aa

Please sign in to comment.