Skip to content

Kinds_of_transaction

Victor Porton edited this page Oct 1, 2018 · 3 revisions

Item is something sold.

There are two subclasses of Item:

  • SimpleItem is a one-time sale
  • SubscriptionItem is a service to which one subscribes to pay regularly

and two subclasses of Purchase (class denoting a particular purchase of an item):

  • SimplePurchase is a one-time sale
  • SubscriptionPurchase is a service to which one subscribes to pay regularly

If the user is subscribed (say through PayPal) SubscriptionPurchase.subscription_reference refers to this PayPal subscription.

If SubscriptionItem.subscribed == False then the subscription is in manual mode, that is despite the service is a subscription service, the user pays with regular payments (for example, he may pay for two months in advance).

Clone this wiki locally