[Stratos-dev] Allow users to pay monthly fee when they register tenant
sanjeewa at wso2.com
Mon Nov 7 20:11:29 EST 2011
Thanks for your ideas.by activation i mean usage plan activation. As you
said we must collect all tenant information before we redirect them to
paypal. So i think best way is
01. Allow user to select usage plan then show him message saying you have
to pay this amount before use your tenant and if he press yes allow him to
continue registration else change usage plan to demo
02.When he filled all necessary information and click on submit button as
usually we allow to continue tenant creation process.
03.If tenant creation success we will redirect him to Paypal with amount of
(At this moment we have tenant created so we have all
04.We have to block send email action till this completes
05.After completion payment we will send email saying you have registered
domain , you have paid this amount etc.
06.Then he can click on email validation and continue process
What do you think?
On Mon, Nov 7, 2011 at 7:07 PM, Amila Maha Arachchi <amilam at wso2.com> wrote:
> On Mon, Nov 7, 2011 at 1:01 AM, Selvaratnam Uthaiyashankar <
> shankar at wso2.com> wrote:
>> On Mon, Nov 7, 2011 at 11:03 AM, Sanjeewa Malalgoda <sanjeewa at wso2.com>wrote:
>>> i went through the payment code and my plan is get the first month
>>> payment from tenants when they are trying to create account.
>> This shouldn't not be first month payment, but configurable amount. It
>> can be a fixed amount or percentage of monthly payment. Keep it as general
>> as possible.
> You can add a registration fee entry to the multitenancy-packages.xml.
>>> When they select a usage plan(paid) we show them a message saying you
>>> have to pay this amount ask weather they want to continue it. If said yes
>>> we will redirect to payment page allow to do payment. if it succeed we will
>>> activate that tenant and send mail. I think we need some dummy paypal
>>> account to test this. Advice me how should i proceed with this.
> We do not activate the user at the time of registration. It is done when
> the link in the activation mail is clicked
> There are few things to consider.
> 1. When do we add the record to the userstore, before the payment or after
> the payment. If it is before the payment, when the user clicks the submit
> button you have to let it store the record in the UM_TENANT table and then
> redirect the user to the paypal site and do the rest of things.
> 2. If it is after the payment, when you redirect the user to paypal, you
> will loose the data entered by the user (While I was trying to implement
> this I faced this problem). So, when we return after the payment process,
> you dont have registration data.
> Regarding the dummy paypal accounts, you can create it in the paypal
> sandbox environment. Thilanga will help if needed.
>>> *Sanjeewa Malalgoda*
>>> Software Engineer
>>> *WSO2, Inc.*
>>> mobile : +94 713068779
>>> web: http://wso2.com
>>> Stratos-dev mailing list
>>> Stratos-dev at wso2.org
>> Senior Architect & Senior Manager
>> WSO2 Inc.
>> http://wso2.com/ - "lean . enterprise . middleware"
mobile : +94 713068779
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Stratos-dev