-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch between chargebee instances #65
Comments
Hello @atefrihane this is Samuel from the Chargebee engineering team. Hope this message finds you well! :) With Chargebee.js code, the initialization is done after cbInstance init() with the respective Chargebee site credentials, So in the current config irrespective of the wrapper(Vue/React), removing and reinitializing an active instance is not possible. A better approach would be to identify the site in context and then initialize Chargebee. Having said that, I have taken this up for discussion with my team and post that I will be adding this to our Product enhancement pipeline. Feel free to write to [email protected] for any queries related to Chargebee. |
Hi, @cb-samuel any update on this? |
@cb-samuel would also like to know if this is possible now. We want to use the test-site conditionally, based on the user who is logged in. So on login / logout we want to re-initialize the Chargebee instance or remove and replace with a new initialization. Thanks |
@cb-samuel Please any update with this? |
Hi everyone,
I've just started using Chargebee in a project and I'm having multiple chargebee accounts!
I'm using VueJs
I would like to initialize chargebee depending on user selection!
is there any way to remove the current instance and recreate it?
I tried
then
I get chargebee.ts:19 Chargebee.js has been already initialized
Is there any way to do it ?
The text was updated successfully, but these errors were encountered: