Programmatic access to Apple's in-app-purchase pricing matrix
Provides lookups for Apple's pricing tiers, accurate as of 2019-05-08
Getting started
$ yarn add apple-pricing-matrix
; const tier1 = ; // returns object mapping iso country code to tiering data for tier 1 purchases const tier3Germany = ; // returns tier 3 data for Germany const germanCurrency = ; // returns the currency used by Apple for a supported iso country code const dollarRate = ; // returns the USD conversion rate used by Apple for the given tier and country code
Tests
To run the test suite, first install the dependencies, then run yarn test
:
$ yarn$ yarn test