fixed bug api

This commit is contained in:
2025-10-21 22:07:46 -04:00
parent 6a1cd0eab5
commit 47c3e98dbf

View File

@@ -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)