chargebee

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?


Implementing Chargebee Portal Session integrating it into my app. If the users subscription is inactive, Im redirecting them to the portal to update their subscription.

The API provides:

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

My (ruby) code is like this, matches the example in the API:

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

I get the portal loading just fine.. but how does the user logout.. and trigger the return to my app? I can't see it.

Here's how it looks for me. How does the user logout and initate a return to my app?

enter image description here


Solution

  • Update for 2025!

    There's an exit button in the Chargebee portal now! Clicking it does in fact return the user to the redirect page as requested.