nagasurendra commited on
Commit
35a5b3c
·
verified ·
1 Parent(s): e35b13d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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)})