Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 3.55 KB

CdvPurchase.Test.md

File metadata and controls

57 lines (40 loc) · 3.55 KB

Namespace: Test

CdvPurchase.Test

Test Adapter and related classes.

Table of contents

Classes

Variables

Variables

testProducts

Const testProducts: Object

Definition of the test products.

Type declaration

Name Type Description
CONSUMABLE { id: string = 'test-consumable'; platform: Platform ; type: ProductType = ProductType.CONSUMABLE } A valid consumable product. - id: "test-consumable" - type: ProductType.CONSUMABLE
CONSUMABLE.id string -
CONSUMABLE.platform Platform -
CONSUMABLE.type ProductType -
CONSUMABLE_FAILING { id: string = 'test-consumable-fail'; platform: Platform ; type: ProductType = ProductType.CONSUMABLE } A consumable product for which the purchase will always fail. - id: "test-consumable-fail" - type: ProductType.CONSUMABLE
CONSUMABLE_FAILING.id string -
CONSUMABLE_FAILING.platform Platform -
CONSUMABLE_FAILING.type ProductType -
NON_CONSUMABLE { id: string = 'test-non-consumable'; platform: Platform ; type: ProductType = ProductType.NON_CONSUMABLE } A valid non-consumable product. - id: "test-non-consumable" - type: ProductType.NON_CONSUMABLE
NON_CONSUMABLE.id string -
NON_CONSUMABLE.platform Platform -
NON_CONSUMABLE.type ProductType -
PAID_SUBSCRIPTION { id: string = 'test-subscription'; platform: Platform ; type: ProductType = ProductType.PAID_SUBSCRIPTION } A paid-subscription that auto-renews for the duration of the session. This subscription has a free trial period, that renews every week, 3 times. It then costs $4.99 per month. - id: "test-subscription" - type: ProductType.PAID_SUBSCRIPTION
PAID_SUBSCRIPTION.id string -
PAID_SUBSCRIPTION.platform Platform -
PAID_SUBSCRIPTION.type ProductType -
PAID_SUBSCRIPTION_ACTIVE { id: string = 'test-subscription-active'; platform: Platform ; type: ProductType = ProductType.PAID_SUBSCRIPTION } A paid-subscription that is already active when the app starts. It behaves as if the user subscribed on a different device. It will renew forever. - id: "test-subscription-active" - type: ProductType.PAID_SUBSCRIPTION
PAID_SUBSCRIPTION_ACTIVE.id string -
PAID_SUBSCRIPTION_ACTIVE.platform Platform -
PAID_SUBSCRIPTION_ACTIVE.type ProductType -

testProductsArray

Const testProductsArray: IRegisterProduct[]

List of test products definitions as an array.