-
public final class RequestVerifyPurchaseWithIapkitResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classRequestVerifyPurchaseWithIapkitResult.Companion
-
Field Summary
Fields Modifier and Type Field Description private IapkitProductClientPayloadclientPayloadprivate StringproductIdprivate final BooleanisValidprivate final IapkitPurchaseStatestateprivate final IapStorestore
-
Constructor Summary
Constructors Constructor Description RequestVerifyPurchaseWithIapkitResult(Boolean isValid, IapkitPurchaseState state, IapStore store, IapkitProductClientPayload clientPayload, String productId)RequestVerifyPurchaseWithIapkitResult(Boolean isValid, IapkitPurchaseState state, IapStore store)
-
Method Summary
Modifier and Type Method Description final IapkitProductClientPayloadgetClientPayload()Available in OpenIAP Spec 2.4.0 / openiap-apple 2.4.1 / openiap-google 2.4.1. final UnitsetClientPayload(IapkitProductClientPayload clientPayload)final StringgetProductId()Available in OpenIAP Spec 2.4.0 / openiap-apple 2.4.1 / openiap-google 2.4.1. final UnitsetProductId(String productId)final BooleangetIsValid()True when the purchase is valid and actionable. final IapkitPurchaseStategetState()The current state of the purchase. final IapStoregetStore()final Map<String, Object>toJson()-
-
Constructor Detail
-
RequestVerifyPurchaseWithIapkitResult
RequestVerifyPurchaseWithIapkitResult(Boolean isValid, IapkitPurchaseState state, IapStore store, IapkitProductClientPayload clientPayload, String productId)
-
RequestVerifyPurchaseWithIapkitResult
RequestVerifyPurchaseWithIapkitResult(Boolean isValid, IapkitPurchaseState state, IapStore store)
-
-
Method Detail
-
getClientPayload
final IapkitProductClientPayload getClientPayload()
Available in OpenIAP Spec 2.4.0 / openiap-apple 2.4.1 / openiap-google 2.4.1. Public product payload when includeClientPayload was requested, the Apple or Google receipt is valid, and a payload exists for that product.
-
setClientPayload
final Unit setClientPayload(IapkitProductClientPayload clientPayload)
-
getProductId
final String getProductId()
Available in OpenIAP Spec 2.4.0 / openiap-apple 2.4.1 / openiap-google 2.4.1. Store-verified product identifier when the provider returns one.
-
setProductId
final Unit setProductId(String productId)
-
getIsValid
final Boolean getIsValid()
True when the purchase is valid and actionable. Only entitled, pending-acknowledgment, or ready-to-consume return true. Callers must still match productId and use the platform plus app-owned product type to choose the fulfillment path.
-
getState
final IapkitPurchaseState getState()
The current state of the purchase.
-
-
-
-