Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -387,7 +387,8 @@ def checkout():
|
|
387 |
for item in cart_items:
|
388 |
sf.Cart_Item__c.delete(item["Id"])
|
389 |
|
390 |
-
return jsonify({"success": True, "message": "Order placed successfully!"})
|
|
|
391 |
except Exception as e:
|
392 |
print(f"Error during checkout: {str(e)}")
|
393 |
return jsonify({"success": False, "error": str(e)})
|
|
|
387 |
for item in cart_items:
|
388 |
sf.Cart_Item__c.delete(item["Id"])
|
389 |
|
390 |
+
return jsonify({"success": True, "redirect": "/order", "message": "Order placed successfully!"})
|
391 |
+
|
392 |
except Exception as e:
|
393 |
print(f"Error during checkout: {str(e)}")
|
394 |
return jsonify({"success": False, "error": str(e)})
|