"Metered Usage" with upfront payment (credits/points)

dominik's Avatar

dominik

26 Feb, 2013 11:16 PM

Hi,

how would I implement a credit based system like postmark does?
What I want basically is something like this:

  • Users can purchase (packets of) credits
  • Using feature X costs one credit per usage
  • Once all credits are used up - access to feature X is denied
  • Users can stock up credits any time - credits don't expire
  • Users can set up auto-renewal of credits, e.g. when credits are < 10% of last credits purchase, a credit-package is automatically purchased

is that possible?
Thanks!

  1. Support Staff 1 Posted by Marc Guyer on 27 Feb, 2013 12:53 PM

    Marc Guyer's Avatar

    Hi Dominik - You can do that with tracked items. The standard way to do it is to track the amount of usage over the billing period and then charge for the amount used at the end of the period. You can do it in reverse, too. The technique isn't documented so I'll describe it here:

    • Name: Prepaid Credits
    • Quantity Included: 99999999.9 -- Unlimited. Yes, this is confusing. What this indicates in the case of prepaid credits is that you can prepay for an unlimited number of credits (as far as CheddarGetter is concerned).
    • Overage Amount: 0 -- There's no such thing as overage with prepaid credits. You could, however, set this to the amount you charge per credit so you can make it different on each plan and use CG's config as the authority on what you charge on each plan.
    • Monthly: No -- The current quantity allocated to the customer is carried over to the next billing cycle. If set to Yes, the quantity is reset to zero at the beginning of each billing cycle.

    So, that's the pricing plan config for prepaid credits. The other piece is the act of prepayment and recording the amount currently allocated. Use a one-time invoice to charge for a block of credits. The charge uses the customer's payment method on file so it can be a "one click" buying experience. You could even make it automatic. Upon a successful charge for more credits, use the CG API to add the amount purchased to the customer's current quantity of the item.

    The key API calls are:

    Let us know if you have questions.

  2. Jess Pendley closed this discussion on 21 Nov, 2013 07:35 PM.

Discussions are closed to public comments.
If you need help with Cheddar please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

28 Mar, 2024 10:45 PM
24 Jan, 2024 08:33 AM
11 Jan, 2024 07:13 AM
30 Nov, 2023 02:07 AM
22 Nov, 2023 08:41 AM