nagasurendra commited on
Commit
5f9d4fe
·
verified ·
1 Parent(s): e93043a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1107,13 +1107,12 @@ def checkout():
1107
  for item in cart_items:
1108
  sf.Cart_Item__c.delete(item["Id"])
1109
 
1110
- return jsonify({"success": True, "message": "Order placed successfully!"})
1111
 
1112
  except Exception as e:
1113
  print(f"Error during checkout: {str(e)}")
1114
  return jsonify({"success": False, "error": str(e)})
1115
 
1116
-
1117
  @app.route("/order", methods=["GET"])
1118
  def order_summary():
1119
  email = session.get('user_email') # Fetch logged-in user's email
 
1107
  for item in cart_items:
1108
  sf.Cart_Item__c.delete(item["Id"])
1109
 
1110
+ return jsonify({"success": True, "message": "Order placed successfully!", "discount": discount, "totalBill": total_bill})
1111
 
1112
  except Exception as e:
1113
  print(f"Error during checkout: {str(e)}")
1114
  return jsonify({"success": False, "error": str(e)})
1115
 
 
1116
  @app.route("/order", methods=["GET"])
1117
  def order_summary():
1118
  email = session.get('user_email') # Fetch logged-in user's email