簡體   English   中英

Chargebee Portal Session API 包含一個用於用戶注銷時的redirect_url。 從他們的用戶界面我看不到用戶如何注銷?

[英]Chargebee Portal Session API includes a redirect_url for when user logs out. From their UI I can't see how the user can logout?

實施 Chargebee 門戶 Session 將其集成到我的應用程序中。 如果用戶訂閱處於非活動狀態,我會將他們重定向到門戶以更新他們的訂閱。

API 提供:

redirect_url
URL to redirect when the user logs out from the portal.

我的(ruby)代碼是這樣的, 與 API 中的示例匹配

result = ChargeBee::PortalSession.create({
      :customer => {
        :redirect_url => current_lessons_url,
        :id => chargebee_customer_token
        }
      })

我的門戶加載很好..但是用戶如何注銷..並觸發返回到我的應用程序? 我看不到它。

這就是我的樣子。 用戶如何注銷並返回到我的應用程序?

在此處輸入圖像描述

Assuming that you are using SSO via API portal auth setup, In order to handle the Logout scenario, you can call Chargebee's Logout a portal session API endpoint and pass the respective portal session ID from which the user is trying to log out. 因此,在注銷調用時,使用在創建 function 中傳遞的重定向 URL 並將最終用戶重定向到指定的 URL 目的地/應用程序。

參考 - https://apidocs.chargebee.com/docs/api/portal_sessions?lang=ruby#logout_a_portal_session

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM