purchasePackage

fun purchasePackage(    activity: Activity,     packageToPurchase: Package,     upgradeInfo: UpgradeInfo,     callback: ProductChangeCallback)

Make a purchase upgrading from a previous sku.

Parameters

activity

Current activity

packageToPurchase

The Package you wish to purchase

upgradeInfo

The upgradeInfo you wish to upgrade from, containing the oldSku and the optional prorationMode. Amazon Appstore doesn't support changing products so upgradeInfo is ignored for Amazon purchases.

callback

The listener that will be called when purchase completes.


fun purchasePackage(    activity: Activity,     packageToPurchase: Package,     listener: PurchaseCallback)

Make a purchase.

Parameters

activity

Current activity

packageToPurchase

The Package you wish to purchase

listener

The listener that will be called when purchase completes.

Sources

Link copied to clipboard
Link copied to clipboard