schibsted / account-sdk-browser

Schibsted Account SDK for browsers
https://schibsted.github.io/account-sdk-browser/
MIT License
16 stars 11 forks source link

Multiple products checks in hasProduct #30

Open fredrikstave opened 6 years ago

fredrikstave commented 6 years ago

It would be great if one could pass an array of product ids to the Monetization.hasProduct function, instead of having to check each product id individually.

Something like this would be awesome:

const m = new Monetization(...);
const productIds = [12345, 23456];

m.hasProduct(productIds, spId)
  .then(...)
  .catch(...);
ole-martin commented 3 years ago

Solved with Monetization.hasProduct(way back) so can be closed.