StoreProductPurchaseOption¶
Inherits: RefCounted < Object
Represents an option that can be supplied when purchasing a StoreProduct.
Description¶
You create instances of this class and you can pass those to StoreKitManager.purchase_with_options().
Methods¶
app_account_token(stringUuidToken: String) static |
|
introductory_offer_elligibility(jws: String) static |
|
quantity(value: int) static |
|
simulate_ask_to_buy_in_sandbox(enabled: bool) static |
|
win_back_offer(offer: StoreProductSubscriptionOffer) static |
Method Descriptions¶
StoreProductPurchaseOption app_account_token(stringUuidToken: String) static 🔗
Creates a purchase option with an app account token. This token should be a UUID string that associates the transaction with a user account on your service.
StoreProductPurchaseOption introductory_offer_elligibility(jws: String) static 🔗
Creates a purchase option with a specific introductory offer eligibility. This requires the signed JWS string from the App Store.
StoreProductPurchaseOption quantity(value: int) static 🔗
Creates a purchase option specifying the quantity of the product to purchase.
StoreProductPurchaseOption simulate_ask_to_buy_in_sandbox(enabled: bool) static 🔗
Creates a purchase option to simulate the “Ask to Buy” flow in the sandbox environment.
StoreProductPurchaseOption win_back_offer(offer: StoreProductSubscriptionOffer) static 🔗
Creates a purchase option for a win-back offer.