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?