react-native-qonversion
Version:
Qonversion provides full in-app purchases infrastructure, so you do not need to build your own server for receipt validation. Implement in-app subscriptions, validate user receipts, check subscription status, and provide access to your app features and co
12 lines (11 loc) • 583 B
TypeScript
import Entitlement from './Entitlement';
export interface PromoPurchasesListener {
/**
* Fired each time a promo purchase from the App Store happens.
* Call {@param promoPurchaseExecutor} in case of your app is ready to start promo purchase.
* Or cache that executor and call later when you need.
* @param productId StoreKit product identifier.
* @param promoPurchaseExecutor a function that will start a promo purchase flow.
*/
onPromoPurchaseReceived(productId: string, promoPurchaseExecutor: () => Promise<Map<string, Entitlement>>): void;
}