Skip to content

Commit 62179aa

Browse files
committed
Addition of check for amount
1 parent 9bfde57 commit 62179aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/api/orders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def is_payment_valid(order, mode):
6969

7070

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

0 commit comments

Comments
 (0)