-
public interface MutationResolverGraphQL root mutation operations.
-
-
Method Summary
Modifier and Type Method Description abstract BooleanacknowledgePurchaseAndroid(String purchaseToken)Acknowledge a non-consumable purchase or subscription abstract StringbeginRefundRequestIOS(String sku)Initiate a refund request for a product (iOS 15+) abstract BooleancheckAlternativeBillingAvailabilityAndroid()Check if alternative billing is available for this user/device Step 1 of alternative billing flowReturns true if available, false otherwise Throws OpenIapError. abstract BooleanclearTransactionIOS()Clear pending transactions from the StoreKit payment queue abstract BooleanconsumePurchaseAndroid(String purchaseToken)Consume a purchase token so it can be repurchased abstract StringcreateAlternativeBillingTokenAndroid()Create external transaction token for Google Play reporting Step 3 of alternative billing flow Must be called AFTER successful payment in your payment system Token must be reported to Google Play backend within 24 hoursReturns token string, or null if creation failed Throws OpenIapError. abstract UnitdeepLinkToSubscriptions(DeepLinkOptions options)Open the native subscription management surface abstract BooleanendConnection()Close the platform billing connection abstract UnitfinishTransaction(Purchase purchase, Boolean isConsumable)Finish a transaction after validating receipts abstract BooleaninitConnection(InitConnectionConfig config)Establish the platform billing connection abstract BooleanpresentCodeRedemptionSheetIOS()Present the App Store code redemption sheet abstract ExternalPurchaseLinkResultIOSpresentExternalPurchaseLinkIOS(String url)Present external purchase custom link with StoreKit UI (iOS 18. abstract ExternalPurchaseNoticeResultIOSpresentExternalPurchaseNoticeSheetIOS()Present external purchase notice sheet (iOS 18. abstract RequestPurchaseResultrequestPurchase(RequestPurchaseProps params)Initiate a purchase flow; rely on events for final state abstract BooleanrequestPurchaseOnPromotedProductIOS()Purchase the promoted product surfaced by the App Store abstract UnitrestorePurchases()Restore completed purchases across platforms abstract BooleanshowAlternativeBillingDialogAndroid()Show alternative billing information dialog to user Step 2 of alternative billing flow Must be called BEFORE processing payment in your payment systemReturns true if user accepted, false if user canceled Throws OpenIapError. abstract List<PurchaseIOS>showManageSubscriptionsIOS()Open subscription management UI and return changed purchases (iOS 15+) abstract BooleansyncIOS()Force a StoreKit sync for transactions (iOS 15+) abstract VerifyPurchaseResultvalidateReceipt(VerifyPurchaseProps options)Validate purchase receipts with the configured providers abstract VerifyPurchaseResultverifyPurchase(VerifyPurchaseProps options)Verify purchases with the configured providers abstract VerifyPurchaseWithProviderResultverifyPurchaseWithProvider(VerifyPurchaseWithProviderProps options)Verify purchases with a specific provider (e.g. -
-
Method Detail
-
acknowledgePurchaseAndroid
abstract Boolean acknowledgePurchaseAndroid(String purchaseToken)
Acknowledge a non-consumable purchase or subscription
-
beginRefundRequestIOS
abstract String beginRefundRequestIOS(String sku)
Initiate a refund request for a product (iOS 15+)
-
checkAlternativeBillingAvailabilityAndroid
abstract Boolean checkAlternativeBillingAvailabilityAndroid()
Check if alternative billing is available for this user/device Step 1 of alternative billing flow
Returns true if available, false otherwise Throws OpenIapError.NotPrepared if billing client not ready
-
clearTransactionIOS
abstract Boolean clearTransactionIOS()
Clear pending transactions from the StoreKit payment queue
-
consumePurchaseAndroid
abstract Boolean consumePurchaseAndroid(String purchaseToken)
Consume a purchase token so it can be repurchased
-
createAlternativeBillingTokenAndroid
abstract String createAlternativeBillingTokenAndroid()
Create external transaction token for Google Play reporting Step 3 of alternative billing flow Must be called AFTER successful payment in your payment system Token must be reported to Google Play backend within 24 hours
Returns token string, or null if creation failed Throws OpenIapError.NotPrepared if billing client not ready
-
deepLinkToSubscriptions
abstract Unit deepLinkToSubscriptions(DeepLinkOptions options)
Open the native subscription management surface
-
endConnection
abstract Boolean endConnection()
Close the platform billing connection
-
finishTransaction
abstract Unit finishTransaction(Purchase purchase, Boolean isConsumable)
Finish a transaction after validating receipts
-
initConnection
abstract Boolean initConnection(InitConnectionConfig config)
Establish the platform billing connection
-
presentCodeRedemptionSheetIOS
abstract Boolean presentCodeRedemptionSheetIOS()
Present the App Store code redemption sheet
-
presentExternalPurchaseLinkIOS
abstract ExternalPurchaseLinkResultIOS presentExternalPurchaseLinkIOS(String url)
Present external purchase custom link with StoreKit UI (iOS 18.2+)
-
presentExternalPurchaseNoticeSheetIOS
abstract ExternalPurchaseNoticeResultIOS presentExternalPurchaseNoticeSheetIOS()
Present external purchase notice sheet (iOS 18.2+)
-
requestPurchase
abstract RequestPurchaseResult requestPurchase(RequestPurchaseProps params)
Initiate a purchase flow; rely on events for final state
-
requestPurchaseOnPromotedProductIOS
abstract Boolean requestPurchaseOnPromotedProductIOS()
Purchase the promoted product surfaced by the App Store
-
restorePurchases
abstract Unit restorePurchases()
Restore completed purchases across platforms
-
showAlternativeBillingDialogAndroid
abstract Boolean showAlternativeBillingDialogAndroid()
Show alternative billing information dialog to user Step 2 of alternative billing flow Must be called BEFORE processing payment in your payment system
Returns true if user accepted, false if user canceled Throws OpenIapError.NotPrepared if billing client not ready
-
showManageSubscriptionsIOS
abstract List<PurchaseIOS> showManageSubscriptionsIOS()
Open subscription management UI and return changed purchases (iOS 15+)
-
validateReceipt
abstract VerifyPurchaseResult validateReceipt(VerifyPurchaseProps options)
Validate purchase receipts with the configured providers
-
verifyPurchase
abstract VerifyPurchaseResult verifyPurchase(VerifyPurchaseProps options)
Verify purchases with the configured providers
-
verifyPurchaseWithProvider
abstract VerifyPurchaseWithProviderResult verifyPurchaseWithProvider(VerifyPurchaseWithProviderProps options)
Verify purchases with a specific provider (e.g., IAPKit)
-
-
-
-