Can you please answer the following questions: 1 - Are all functions thread safe and reentrant? What if I call purchase while in onSearchResult? 2 - Aren't any of them blocking? (if they will represent a hiccup to the flow) 3 - Callbacks on requests are always guaranteed? 4 - Description of behaviors while connectivity problems?
Answers are inline below > > 1 - Are all functions thread safe and reentrant? What > if I call purchase while in onSearchResult? After onInitialized() is invoked, all APIs are thread safe and can be called from any threads. It means the developer can call these APIs from two different threads without having other synchronization mechanism. Also a request can be invoked from within a response callback. So you can call purchase in onSearchResult() callback. > 2 - Aren't any of them blocking? (if they will > represent a hiccup to the flow) Non of the request API is blocking. The APIs are based on an asynchronous mechanism so that call to initiate, search, searchByID, purchase will all return immediately. Please let us know if you experience any delays/hiccups when calling these APIs. > 3 - Callbacks on requests are always guaranteed? Yes. However in case like network going down, the response will be delayed > 4 - Description of behaviors while connectivity > problems? In case of connectivity problems search, searchByID and purchase might return FAILED. Other APIs will work as intended.