def METHOD_NAME(
    subscription_id: str, plan_id: str
) -> str:
    params = {"subscription": {"id": subscription_id, "plan_id": plan_id}}
    checkout_existing_response = chargebee.HostedPage.checkout_existing(params)
    return checkout_existing_response.hosted_page.url