#1
  1. A Change of Season
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    3,545
    Rep Power
    221

    A design question. What if the customer don't upgrade? How can I limit the service?


    Hi;

    It's a monthly payment system. The client can buy 3 account types:

    1 - Basic, 2 - Pro, 3 - Consultant

    Basic allows them to have 10000 emails in their account.
    Pro allows them to have 100000 emails in their account.
    Consultant allows them to have 200000 emails in their account.

    They can add prospects emails to their account using my API endpoint.

    Scenario:

    If they buy a Basic account and at some point the number of the emails in their account increase over the limit:

    1 - How can I give them X days to upgrade and what if they don't upgrade?
    2 - How can I calculate the number of days they've been over the limit (without making things complicated and shet in the code)

    I want to give them maybe X days notice. After that 2 things could happen:

    1 - They upgrade
    2 - They don't upgrade

    What if they stay on the same account type? I can't cancel their account because they still paying.

    Tanx
  2. #2
  3. Impoverished Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,815
    Rep Power
    9646
    Originally Posted by English Breakfast Tea
    1 - How can I give them X days to upgrade and what if they don't upgrade?
    Warn them at 90% or 95% or something, then
    a) cut them off at 10k, or
    b) give them a grace amount of like 1-2% (maybe only if they haven't gone over the quota recently) then cut them off.

    Originally Posted by English Breakfast Tea
    2 - How can I calculate the number of days they've been over the limit (without making things complicated and shet in the code)
    You don't? I mean you could since I assume you're tracking when each email was sent, but it'd be easier to just tell them how many emails have been over the limit.

    Originally Posted by English Breakfast Tea
    I want to give them maybe X days notice.
    If you're limiting them by the number of emails then you should be warning them by the number of emails. The days doesn't matter, nor is it even practical to try to figure the amount out.

    Originally Posted by English Breakfast Tea
    1 - They upgrade
    Great. Expand their quota for the current month and let them keep going. You might want to hold on to the unsent emails for a couple days and give the user the option to have them sent out after upgrading.

    Originally Posted by English Breakfast Tea
    2 - They don't upgrade
    Then you cut them off at 10k (plus grace if any).

    Originally Posted by English Breakfast Tea
    What if they stay on the same account type? I can't cancel their account because they still paying.
    They agreed to your terms of 10k emails. Hold up your end by limiting them to 10k. Don't punish your users because they hit the limit.

IMN logo majestic logo threadwatch logo seochat tools logo