When using ChargeBee's hosted pages API, the customer will be redirected from the merchant's server to ChargeBee's server.
How can I save the customer's state and information about the customer and get them back after a successful checkout?
When calling ChargeBee's Hosted Page API, pass the state of the customer and details about customers using the pass_thru_content parameter. On redirect from ChargeBee, you can retrieve the content passed to the pass_thru_content using the hosted page id passed along the redirect url.
For info on the pass_thru_content, checkout our API docs.
Check out our sample app & tutorial on how to store and retrieve pass_thru_content: