Commerce License – Commerce File 2.x – Commerce License billing



Commerce License – Commerce File 2.x – Commerce License billing

2 0


digital-ecommerce-ecosystem


On Github bojanz / digital-ecommerce-ecosystem

Bojan Živanović

Commerce Kickstart v2 Views, Views Bulk Operations, Inline Entity Form

David Kitchen

Commerce VAT, Commerce Funds, Commerce Checkout AJAX

Paris, France   ·   London, England   ·   Ann Arbor, MI, USA

Digital commerce

  • Downloadables (ebooks, songs, movies)
  • Premium content
  • Support
  • Subscriptions (SaaS products)

One time OR recurring

Manage subscriptions to services

Sell support tickets

Handle renewable subscriptions

(Commerce Platform)

Our cloud Platform, This implies recurring billing, subscription renewal...

I need a way to track the user's right to access a resource

Our problem is that we have no way of tracking the user's right to access something. A user completes checkout, you give him a role to track access, but the "API" stops there. No expiration, nothing

A separate entity type

A separate entity type

A separate entity type

A separate entity type

Entity Bundle Plugin

Commerce License

Nested slides.

Features

Licenses can be time limited, and are automatically expired.

Features

A license can be configurable and have fields that are filled-in by the user

Features

A license can be remote/synchronized with an external service.

Talk about the status change (Retrigger sync when expires or revoked...). We're displaying the access details, could be application id, account email etc...

Commerce License Role

Commerce File 2.x

New architecture based on Commerce License, addresses all feedback received for the 1.x branch. Allows access to files to be sold (one or multiple files attached to a product) Licensed files can be downloaded or streamed. Number of downloads / streams can be limited. If an admin uploads new files to the product, they will show up automatically for all users.

Need streaming? No problem

Shown example uses mediaelement.js (library and drupal module) Just like with downloads, the number of streams can be limited too. Only complete streams (start to finish) count.

Full Amazon S3 integration

Triggering a download gets the file from S3 without touching our server. Download limitations are respected. The S3 url is secret and temporary.

Commerce License Node

Recurring

Payment

You need a payment module with Card on File support.

You need to store credit card information to process further payments Auth.net, Paymill, explain the token stored. we need a capable COF payment method. Handle 0$ auth.

Physical Subscription

  • 4 June: Checkout, Pay, Ship
  • 4 July: Recur, Bill, Ship
  • 4 August: Recur, Bill, Ship
  • ...

Commerce recurring

Digital Subscriptions

Commerce License billing

Features

It supports plans and plan changing.

Features

It supports metered billing.

Features

Prepayment, postpayment and estimations.

Instead of showing the actual order displaying a 0 amount, we're displaying the theme function. It properly handles VAT, discounts...

Features

Synchronous and asynchronous billing cycles.

Or write your own plugin!

Features

Billing dashboard, powered by views_megarow.

Discounts

Easily discount the first X billing cycles.

1. If [commerce-line-item:type] is "recurring"

2. If [commerce-line-item:commerce-license:num-renewals] is 0.

3. Add 100% discount

Dunning process

What happens if I can't charge the user anymore?

Dunning management (Delinquent User Notification) is the automated process that's kicked off when a charge attempt of a recurring order fails. This process involves periodic customer communication and payment retries. Soft decline (When the daily limit of the card has been exceeded) Hard decline (Card is expired, cannot charge anymore).

Commerce Funds

Real money management

Taxes on Digital Goods & Services

Digital goods & services can be sold anywhere.

Physical goods taxed at customs as they cross international borders.

Countries with or implimenting digital import taxes:

Commerce VAT

Two stage tax calculation:

Place of Supply Product rate for that.

API for defining country and rates - contribute your country module.

Defines VAT rates for all (EU) countries, B2B, VOES.

Questions?

What did you think?

Evaluate this session: austin2014.drupal.org/schedule

Thank you!