habulaj commited on
Commit
c8800aa
·
verified ·
1 Parent(s): 79a8c29

Update routes/hello.py

Browse files
Files changed (1) hide show
  1. routes/hello.py +6 -6
routes/hello.py CHANGED
@@ -195,7 +195,7 @@ def create_account(account_data: AccountRequest):
195
  account = stripe.Account.create(
196
  type="express",
197
  email=account_data.email,
198
- country="BR",
199
  business_type="individual",
200
  business_profile={
201
  "mcc": "7298",
@@ -203,7 +203,7 @@ def create_account(account_data: AccountRequest):
203
  "product_description": "We connect stylists with clients through subscription services.",
204
  "support_email": "[email protected]"
205
  },
206
- default_currency="brl",
207
  capabilities={
208
  "transfers": {"requested": True},
209
  "card_payments": {"requested": True}
@@ -211,9 +211,9 @@ def create_account(account_data: AccountRequest):
211
  settings={
212
  "payouts": {
213
  "schedule": {
214
- "interval": "monthly",
215
- "monthly_anchor": 15, # 🔹 Define o pagamento para o dia 15 de cada mês
216
- "delay_days": 5 # 🔹 Atraso opcional (pode ser ajustado)
217
  }
218
  }
219
  }
@@ -221,7 +221,7 @@ def create_account(account_data: AccountRequest):
221
  return {"account_id": account.id}
222
  except Exception as e:
223
  raise HTTPException(status_code=500, detail=str(e))
224
-
225
  @router.get("/check_onboarding/{account_id}")
226
  def check_onboarding(account_id: str):
227
  try:
 
195
  account = stripe.Account.create(
196
  type="express",
197
  email=account_data.email,
198
+ country="US", # 🇺🇸 Estados Unidos
199
  business_type="individual",
200
  business_profile={
201
  "mcc": "7298",
 
203
  "product_description": "We connect stylists with clients through subscription services.",
204
  "support_email": "[email protected]"
205
  },
206
+ default_currency="usd", # 💵 Dólar americano
207
  capabilities={
208
  "transfers": {"requested": True},
209
  "card_payments": {"requested": True}
 
211
  settings={
212
  "payouts": {
213
  "schedule": {
214
+ "interval": "monthly", # ✅ Suportado nos EUA
215
+ "monthly_anchor": 15, # 🔹 Pagamento no dia 15 de cada mês
216
+ "delay_days": 5 # 🔹 Atraso de 5 dias
217
  }
218
  }
219
  }
 
221
  return {"account_id": account.id}
222
  except Exception as e:
223
  raise HTTPException(status_code=500, detail=str(e))
224
+
225
  @router.get("/check_onboarding/{account_id}")
226
  def check_onboarding(account_id: str):
227
  try: