CdvPurchase.Iaptic
Integrate with https://www.iaptic.com/
Example
const iaptic = new CdvPurchase.Iaptic({
url: 'https://validator.iaptic.com',
appName: 'test',
apiKey: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
});
store.validator = iaptic.validator;• new Iaptic(config, store?)
| Name | Type |
|---|---|
config |
IapticConfig |
store? |
Store |
• config: IapticConfig
• log: Logger
• get appStoreDiscountEligibilityDeterminer(): DiscountEligibilityDeterminer
Determine the eligibility of discounts based on the content of the application receipt.
The secret sauce used here is to wait for validation of the application receipt. The receipt validator will return the necessary data to determine eligibility.
Receipt validation is expected to happen after loading product information, so the implementation here is to wait for a validation response.
• get braintreeClientTokenProvider(): ClientTokenProvider
Provides a client token generated on iaptic's servers
Can be passed to the Braintree Adapter at initialization.
Example
store.initialize([
{
platform: Platform.BRAINTREE,
options: {
clientTokenProvider: iaptic.braintreeClientTokenProvider
}
}
]);• get validator(): string
Validator URL
string