voltrue2 / in-app-purchase

A Node.js module for in-App-Purchase for iOS, Android, Amazon and Windows.
http://iap.gracenode.org
Other
1.05k stars 289 forks source link

Documentation Question: setup #326

Open jphilipstevens opened 4 years ago

jphilipstevens commented 4 years ago

I'm looking at the documentation and I am not sure if the iap.setup call can/should be called before every validation or if its needed once and can be done with multiple validation calls?

RonaTross commented 3 years ago

+1

markmorris commented 2 years ago
CyrusNG commented 11 months ago

+1 As I read source: config() function is for reading custom configuration. setup() function is for reading environment variables. so, if your code uses one iap instance, I think it should can call once to finish initialization, then can multiple validation calls.