habulaj commited on
Commit
16b9fb9
·
verified ·
1 Parent(s): 6117b36

Update routes/hello.py

Browse files
Files changed (1) hide show
  1. routes/hello.py +3 -3
routes/hello.py CHANGED
@@ -23,7 +23,7 @@ def create_account(account_data: AccountRequest):
23
  business_profile={
24
  "mcc": "7298",
25
  "name": account_data.name, # Using the name from the request body
26
- "product_description": "We connect Brazilian stylists with clients through subscription services.",
27
  "support_email": "[email protected]"
28
  },
29
  default_currency="brl", # Set currency to BRL (Brazilian Real)
@@ -58,8 +58,8 @@ def create_account_link(link_data: AccountLinkRequest):
58
  try:
59
  account_link = stripe.AccountLink.create(
60
  account=link_data.account_id,
61
- return_url="https://yourdomain.com/success", # Updated return URL
62
- refresh_url="https://yourdomain.com/retry", # Updated refresh URL
63
  type="account_onboarding",
64
  )
65
  return {"url": account_link.url}
 
23
  business_profile={
24
  "mcc": "7298",
25
  "name": account_data.name, # Using the name from the request body
26
+ "product_description": "We connect stylists with clients through subscription services.",
27
  "support_email": "[email protected]"
28
  },
29
  default_currency="brl", # Set currency to BRL (Brazilian Real)
 
58
  try:
59
  account_link = stripe.AccountLink.create(
60
  account=link_data.account_id,
61
+ return_url="closetcoach://closetcoach.com/onboarding?success=true", # Updated return URL
62
+ refresh_url="closetcoach://closetcoach.com/onboarding?success=false", # Updated refresh URL
63
  type="account_onboarding",
64
  )
65
  return {"url": account_link.url}