Managing purchases
Overview
OpenTV Video Platform supports:
- Client-based purchases – the ability for a user to initiate the purchase of a product directly from a client application
- Device-specific purchases – the ability to limit the consumption of purchased content to:
- The device on which it was purchased, or
- A particular class of device (for example, only mobile devices)
These are described in detail in the following sections.
Client-based purchases
OpenTV Video Platform's Purchase Service enables a client application to initiate the purchase of a product. It handles the client request and:
- Calls the operator's CRM to inform it about the purchase and to get authorisation.
If the CRM authorises the request, it returns an approved or denied response. Optionally, this can include a request ID (
purchaseAuthRequestReference
) that the client app can use in the approved/denied message that it displays to the user.If the CRM does not supply a
purchaseAuthRequestReference
, the Purchase Service uses thex-correlation-id
from the initial call.- The Purchase Service responds to the client request with a success response.
- When the purchase is complete, the Purchase Service notifies the CRM.
This following pages explain:
- Implementing the purchase endpoint (that is, the interface that the CRM must implement to enable this functionality)
- How the CRM subscribes to and handles purchase completion notifications
- Third-party CRM purchase authorisation API documentation
Device-specific purchases
OpenTV Video Platform supports device-specific products – that is, the ability to:
- Specify that a product purchased on a device may only be consumed on that device, or
- Specify that a particular product can only be consumed on particular classes of device (for example, only on mobile devices)
To enable device-specific products:
- See Device specific products (in OpCon) for an explanation of how to:
- Enable or disable this functionality.
- Define device classes.
- See Products (in OpCon) for details of how to configure a product so that it can only be consumed on devices of a particular class.
- Managing entitlements for instructions on how to add a device-specific or device class-specific entitlement.
When an open device signs into the platform for the first time, it can specify a playoutDeviceClass
in the deviceInformation
section of the request body. (See Authentication token and First time and n-th time sign on.)
For device-specific purchases to work correctly, the playoutDeviceClass
that the client supplies at first sign-on must match the device classes that you add in OpCon (above).
For example, if your open device clients report a playoutDeviceClass
of mobileDevice
, you should add mobileDevice
as a device class in OpCon's Platform > Device Specific Products > Device Class screen. See Device specific products.
See also
See:
- Making a purchase for an explanation of how a client app initiates a purchase.
- Device Profiles Service in the Account and Device Manager (ADM) API documentation for details of defining a device profile.
- The
/v3/token/actions/selfServiceSignOnByUserNamePassword
and/v3/token/actions/signOnByCasn
endpoints in the Identity Authentication Service (IAS) API documentation.