Closed Felrenzler closed 10 years ago
I guess It can be implemented as one more button on customer's product page. Is it okay?
Yes the customer being able to see the option would be great. Would it then tell WHMCS to bill/prorate before pushing the change to OnApp?
Looking over the code would OnAppWrapper have to have the right function to change or modify the customer's billing plan? That seems to be missing.
@CoreyTouchet apologize for the delay, was busy with some internal stuff. The possibility to change user's billing plan was implemented in wrapper a long while ago.
Example:
include 'OnAppInit.php'; # include wrapper
$user = new OnApp_User();
$user->auth( 'server', 'user', 'password' );
$user->_id = 1; # user ID
$user->_billing_plan_id = 1; # billing plan ID
$user->save();
Let me know if you need any other assistance.
So the OnAppUsers plugin would take advantage of this now?
On Apr 24, 2014, at 2:23 PM, Lev-Bartashevsky notifications@github.com wrote:
@CoreyTouchet apologize for the delay, was busy with some internal stuff. The possibility to change user's billing plan was implemented in wrapper a long while ago.
Example:
include 'OnAppInit.php'; # include wrapper
$user = new OnApp_User(); $user->auth( 'server', 'user', 'password' );
$user->_id = 1; # user ID $user->_billing_plan_id = 1; # billing plan ID $user->save(); Let me know if you need any other assistance.
— Reply to this email directly or view it on GitHub.
@CoreyTouchet it has not been implemented in WHMCS module yet.
So, you want to have the possibility to change the client's billing plan to any other existing plan, or to predefine one, or something else?
We plan to offer 2 cloud products, static VM resources and Dymanic VM Resources. Dynamic is not an issue works just fine I think. But for static defined plans we would have a on app billing plan per plan, and right now we can’t automatically move customers between plans so they can upgrade their resources to the next highest plan type of setup. They then can grow their VM’s accordingly from the control panel.
On Apr 24, 2014, at 2:43 PM, Lev-Bartashevsky notifications@github.com wrote:
It has not been implemented in WHMCS module yet.
So, you want to have the possibility to change the client's billing plan to any other existing plan, or to predefine one, or something else?
— Reply to this email directly or view it on GitHub.
Lev can you make it where we can upgrade plans just by a function to update the client's billing plan.
Between 2 statically defined plans it just changes the name it does not change the actual billing plan on the account in OnApp.