PurchaseResult class

Backward-compatible purchase result exposed by the Flutter façade.

Native and legacy callers continue to use url and purchaseStatus. Web checkout metadata is additive so applications can persist checkoutId and later verify the authoritative state with handlePaymentReturn.

Annotations
  • @JsonSerializable.new()

Constructors

PurchaseResult({String? url, PurchaseStatus? purchaseStatus, String? checkoutId, String? checkoutStatus, String? nextActionType, InappifyMobilePurchaseData? mobile})
Creates a purchase result.
PurchaseResult.fromJson(Map<String, dynamic> json)
factory

Properties

checkoutId → String?
Opaque Web checkout identifier used to verify payment return.
final
checkoutStatus → String?
Provider-defined checkout state returned when the purchase starts.
final
hashCode → int
The hash code for this object.
no setterinherited
mobile → InappifyMobilePurchaseData?
Native/Dart mobile workflow; DELIVERY_REQUIRED is not a completed grant.
final
nextActionType → String?
Provider-defined next action, including the documented redirect type.
final
purchaseStatus → PurchaseStatus?
Legacy purchase status retained for existing host application call sites.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
url → String?
Server-issued redirect URL, when payment must continue in a browser.
final

Methods

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

Operators

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