[Stratos-dev] Allow users to pay monthly fee when they register tenant

Sanjeewa Malalgoda 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
payment
     (At this moment we have tenant created so we have all
necessary information)
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?
Thanks.

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:
>>
>>> Hi,
>>> 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.
>>
>
> +1
>
> You can add a registration fee entry to the multitenancy-packages.xml.
>
>>
>> Shankar
>>
>>
>>
>>> 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.
>
> Thanks,
> AmilaM.
>
>>
>>> Thanks.
>>>
>>> --
>>> *Sanjeewa Malalgoda*
>>> Software Engineer
>>> **
>>> *WSO2, Inc.*
>>> lean.enterprise.middleware.
>>>
>>> mobile : +94 713068779
>>> web: http://wso2.com
>>>  <http://sanjeewamalalgoda.blogspot.com/>blog
>>> :http://sanjeewamalalgoda.blogspot.com/<http://sanjeewamalalgoda.blogspot.com/>
>>>
>>> [image:
>>> http://wso2.com/wp-content/themes/wso2ng-v2/images/logos/stratos_logo_h42.gif]
>>>
>>>
>>> _______________________________________________
>>> Stratos-dev mailing list
>>> Stratos-dev at wso2.org
>>> https://wso2.org/cgi-bin/mailman/listinfo/stratos-dev
>>>
>>>
>>
>>
>> --
>> S.Uthaiyashankar
>> Senior Architect & Senior Manager
>> WSO2 Inc.
>> http://wso2.com/ - "lean . enterprise . middleware"
>>
>
>


-- 
*Sanjeewa Malalgoda*
Software Engineer
**
*WSO2, Inc.*
lean.enterprise.middleware.

mobile : +94 713068779
web: http://wso2.com
 <http://sanjeewamalalgoda.blogspot.com/>blog
:http://sanjeewamalalgoda.blogspot.com/<http://sanjeewamalalgoda.blogspot.com/>

[image:
http://wso2.com/wp-content/themes/wso2ng-v2/images/logos/stratos_logo_h42.gif]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://wso2.org/pipermail/stratos-dev/attachments/20111108/f8bc3337/attachment.html>


More information about the Stratos-dev mailing list