AppStorePurchaseParam class

Apple AppStore specific parameter object for generating a purchase.

Constructors

AppStorePurchaseParam({required ProductDetails productDetails, String? applicationUserName, int quantity = 1, bool simulatesAskToBuyInSandbox = false, SKPaymentDiscountWrapper? discount})
Creates a new AppStorePurchaseParam object with the given data.

Properties

applicationUserName String?
An opaque id for the user's account that's unique to your app. (Optional)
finalinherited
discount SKPaymentDiscountWrapper?
Discount applied to the product. The value is null when the product does not have a discount.
final
hashCode int
The hash code for this object.
no setterinherited
productDetails → ProductDetails
The product to create payment for.
finalinherited
quantity int
Quantity of the product user requested to buy.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
simulatesAskToBuyInSandbox bool
Set it to true to produce an "ask to buy" flow for this payment in the sandbox.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited