question

M Twain avatar image
M Twain asked

Could Amazon have mirrored Google's implementation?

Since Google's in-app API v3 uses the billing service class as a Stub interface, is it possible that Amazon could've mirrored this same exact pattern, thus requiring no code on our part? Or maybe I'm wrong?
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 Twain, Could you please clarify your query a little? To implement Amazon IAP in your app, you do not have to bind your app to any service. Your app would communicate the app store client through Amazon IAP SDK library for every IAP calls. Basically you have two components in Amazon IAP, i.e PurchasingManager (to make high level call like getItemDetails, initiatePurchaseItem, initiatePurchaseUpdateRequests etc) and an observer to get back the callbacks for the calls being made to PurchasingManager. I do not think the pattern is similar as Google's Google's in-app API v3. You should find the implementation details here : https://developer.amazon.com/sdk/in-app-purchasing.html Thank you for writing to us.
10 |5000

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

M Twain avatar image
M Twain answered
My point is, 1) Google is the dominant store and 2) I have to write separate code for Amazon IAP. However, since Google used this stub / service interface, and all the in-app billing code is accessed through a service binding, Amazon could have made it so that us developers require no change in code - provide that same binding. Instead, we're forced to write Amazon IAP code.
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 Twain, Unfortunately, yes. You have to integrate Amazon IAP in your app and make the required changes in your project.
10 |5000

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