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;

Constructors

Properties

config: IapticConfig
log: Logger

Accessors

  • 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.

    Returns DiscountEligibilityDeterminer

  • get validator(): string
  • Validator URL

    Returns string