Log urls at create_account_link
This commit is contained in:
parent
b12f8cc965
commit
5e66fa806b
@ -25,6 +25,14 @@ class StripeManager:
|
|||||||
async def create_account_link(self, account_id: str, link_type: str = "account_onboarding") -> Optional[str]:
|
async def create_account_link(self, account_id: str, link_type: str = "account_onboarding") -> Optional[str]:
|
||||||
account = stripe.Account.retrieve(account_id)
|
account = stripe.Account.retrieve(account_id)
|
||||||
# For account_update, try to show dashboard if TOS is accepted
|
# For account_update, try to show dashboard if TOS is accepted
|
||||||
|
|
||||||
|
self.module_logger.log_info("create_account_link urls",
|
||||||
|
{
|
||||||
|
"redirect_url": "{}/work".format(self.site_url_root),
|
||||||
|
"refresh_url": "{}/front-door".format(self.site_url_root),
|
||||||
|
"return_url": "{}/work".format(self.site_url_root)
|
||||||
|
}
|
||||||
|
)
|
||||||
if link_type == "account_update" and account.tos_acceptance.date:
|
if link_type == "account_update" and account.tos_acceptance.date:
|
||||||
login_link = stripe.Account.create_login_link(
|
login_link = stripe.Account.create_login_link(
|
||||||
account_id,
|
account_id,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user