Releases: laterpay/supertab-browser
Releases · laterpay/supertab-browser
v8.1.2
v8.1.1
v8.1.0
v8.0.2
v8.0.1
v8.0.0
v7.0.0
7.0.0 (2024-10-31)
feature
BREAKING CHANGES
- Change currency type from
string
(isoCode) toobject
(isoCode, baseUnit)
Details
Offerings, tabs and tab purchases now contain more currency details in the form of an object. Before, they contained just the currency iso code string.
type PublicCurrencyDetails = Pick<Currency, "isoCode" | "baseUnit">;
// Example
const currency: PublicCurrencyDetails = {
isoCode: "USD",
baseUnit: 100,
};
Why
We're implementing Google's Monetization Provider API for experiences.js and we need to know the currency's base unit for the response data.
Changes
- fix: Correct typo in STG token URL
- Add missing data to mock user
- Include currency isoCode and baseUnit in offerings
- Include currency iso code and base unit in tabs
- Fix inconsitent currency handling in test mock api