question

101apps avatar image
101apps asked

Testing item data api

hi, i'd like to use the tester to test the item data api. in the interactive mode, i can choose either default, successful with unavailable skus or failed. however to do so, the docs state i need to call initiateGetItemDataRequest but this does not exist! neither does the process onGetItemDataResponse! it seems it should be initiateItemDataRequest and onItemDataResponse. if this is the case, initiateItemDataRequest() requires Set (which is a set of SKUs i wish to retrieve) - could you please explain this set, if, for example i have 20 entitled items, and i want to test for these items, would i need to supply these 20 items as the set? do i have to create the set or is the a method i can use to get the set? is there a way of testing for all items, i.e all the sku's? appreciate some help thanks regards 101apps
iap
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi 101apps, Thank you for writing to us. Yes you are correct that the method names are initiateItemDataRequest and onItemDataResponse. You are supposed to pass all sku names from your app to initiateItemDataRequest as a Set. Purchasing manager would validate whether the sku names are correct and well configured in the IAP server and respond back accordingly to onItemDataResponse of purchasingOveserver() so that you can make available the returned skus in the app for the user to buy.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

101apps avatar image
101apps answered
hi, thanks for the reply. seems crazy to have to manually build a set! is there no way to get the set from the jason file? after all the sku's already exist there, why have to create another set manually? surely there must be a method/function that can do this? thanks regards 101apps
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
That's how it is.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.