virtuozzo / OnApp-WHMCS-UsersModule

MIT License
12 stars 16 forks source link

Upgrade Functionality #1

Closed Felrenzler closed 10 years ago

Felrenzler commented 10 years ago

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.

ghost commented 10 years ago

I guess It can be implemented as one more button on customer's product page. Is it okay?

Felrenzler commented 10 years ago

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?

Felrenzler commented 10 years ago

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.

ghost commented 10 years ago

@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.

Felrenzler commented 10 years ago

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.

ghost commented 10 years ago

@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?

Felrenzler commented 10 years ago

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.

ghost commented 10 years ago

https://github.com/OnApp/OnApp-WHMCS-UsersModule/releases/tag/v3.2.0.4