voltrue2/in-app-purchase

Documentation Question: setup

jphilipstevens opened this issue · 3 comments

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?

  • 1

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