Moibe commited on
Commit
d233859
·
1 Parent(s): 9abf8ba
Files changed (1) hide show
  1. main.py +3 -2
main.py CHANGED
@@ -18,6 +18,8 @@ app.state.stripe_customer_id = None
18
  @app.get("/")
19
  def start():
20
 
 
 
21
  return {f"Status":"Deployed {string_key}",}
22
 
23
  @app.post("/webhook")
@@ -25,8 +27,7 @@ async def webhook_received(request: Request, stripe_signature: str = Header(None
25
  webhook_secret = os.environ["STRIPE_WEBHOOK_SECRET"]
26
 
27
  print("Entré al webhook 182...")
28
- time.sleep(1)
29
-
30
  data = await request.body()
31
  try:
32
  event = stripe.Webhook.construct_event(
 
18
  @app.get("/")
19
  def start():
20
 
21
+ print(string_key)
22
+
23
  return {f"Status":"Deployed {string_key}",}
24
 
25
  @app.post("/webhook")
 
27
  webhook_secret = os.environ["STRIPE_WEBHOOK_SECRET"]
28
 
29
  print("Entré al webhook 182...")
30
+
 
31
  data = await request.body()
32
  try:
33
  event = stripe.Webhook.construct_event(