fixed bug api
This commit is contained in:
@@ -625,15 +625,16 @@ def create_a_delivery(user_id):
|
||||
|
||||
if cash_payment is True:
|
||||
delivery_payment_method = 0
|
||||
if card_payment is True:
|
||||
# Check if Authorize.net API should be used (type 11) vs physical (type 1)
|
||||
# This logic can be enhanced to check user preferences or other criteria
|
||||
elif card_payment is True:
|
||||
delivery_payment_method = 1 # Default to Tiger physical machine
|
||||
if check_payment is True:
|
||||
elif check_payment is True:
|
||||
delivery_payment_method = 3
|
||||
if other_payment is True:
|
||||
elif other_payment is True:
|
||||
delivery_payment_method = 4
|
||||
else:
|
||||
delivery_payment_method = 5
|
||||
|
||||
|
||||
if delivery_driver_id:
|
||||
get_driver = (db.session
|
||||
.query(Employee_Employee)
|
||||
|
||||
Reference in New Issue
Block a user