habulaj commited on
Commit
4587654
·
verified ·
1 Parent(s): 5e5ee01

Update routes/subscription.py

Browse files
Files changed (1) hide show
  1. routes/subscription.py +0 -9
routes/subscription.py CHANGED
@@ -584,15 +584,6 @@ async def stripe_webhook(request: Request):
584
 
585
  elif event_type == "payment_intent.succeeded":
586
  payment_intent = payload.get("data", {}).get("object", {})
587
-
588
- # Pegando o Stylist Stripe Account ID
589
- stylist_stripe_id = payment_intent.get("metadata", {}).get("stylist_stripe_id")
590
-
591
- if not stylist_stripe_id:
592
- logger.error("❌ Stylist Stripe ID não encontrado nos metadados do Payment Intent.")
593
- return {"status": "error", "message": "Stylist Stripe ID missing."}
594
-
595
- logger.info(f"🔹 Pagamento recebido. Preparando para transferir fundos para {stylist_stripe_id}.")
596
 
597
  # 🔹 Pegando os valores do metadado
598
  stylist_id = payment_intent.get("metadata", {}).get("stylist_id")
 
584
 
585
  elif event_type == "payment_intent.succeeded":
586
  payment_intent = payload.get("data", {}).get("object", {})
 
 
 
 
 
 
 
 
 
587
 
588
  # 🔹 Pegando os valores do metadado
589
  stylist_id = payment_intent.get("metadata", {}).get("stylist_id")