0

I am working with Amazon In-app-purchases for Android on flash using native extentions. So, I have implemented purchase flow in sandbox ( I was using their file InAppSDK-SandboxData.json for debug). But now, I have an amazon account. I have created purchase items in my developers account, and I want to test flow of buying them.

String requestId = PurchasingManager.initiatePurchaseRequest(product_id);

but it throws an exception, it try to open file "InAppSDK-SandboxData.json", but I have deleted in hope that it will go to product servers, but it does not. I found that I can only make purchases when I will commit my app to Amazon app store((

So, how can I test my real payments to product servers and how can I debug this process?? Thanks.

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
yozhik
  • 4,644
  • 14
  • 65
  • 98

2 Answers2

2

Right now, you can't :(

I've implemented Amazon In-app-purchases for Android in my last project and the only way you have to test is using InAppSDK-SandboxData.json. Once everything works fine then you commit the app to Amazon App Store and they'll debug for you.

My advise, if it's working fine using InAppSDK-SandboxData.json and you can't wait a month or two (I'm sorry but I can't tell you anymore because I'm still under NDA. I'll edit my response soon), you don't be afraid and commit the app. I did it ;)

UPDATE:

It's official right now, you have a test app in the developer site, you only must use it ;)

gergonzalez
  • 2,488
  • 1
  • 22
  • 21
0

Now you can test in-app purchasing using "LiveApp testing" before publishing to customers.

Check this link https://developer.amazon.com/public/resources/development-tools/live-app-testing/docs/getting-started

San
  • 5,567
  • 2
  • 26
  • 28
  • I am getting "an error occurred while processing your purchase". It was working fine SAND BOX. I am using IAP 2.0. Can you please help me ? – Gangadhar Nimballi Aug 28 '14 at 13:06
  • Hope you have already set the in-app purchase item in the developer control. And you should give the correct SKU name in your code too. It is working for me... – San Aug 28 '14 at 16:02
  • saneesh, Yes it might be problem with SKU. {"com.mycompany.myapp.iap.subscription.yearly":{"price":1.99,"itemType":"SUBSCRIPTION","subscriptionParent":"com.mycompany.myapp.iap.subscription","smallIconUrl":"https:","description":"Yearly subscription to 911Cast","title":"Yearly Subscription"}} – Gangadhar Nimballi Sep 02 '14 at 08:45
  • I am using in MySku.java MY_MAGAZINE_SUBS("com.mycompany.myapp.iap.subscription", "US"); is it right ? – Gangadhar Nimballi Sep 02 '14 at 08:50
  • @San , I am also facing the same issue as describe in above comment. Please help me in it. $Gangadhar Nimballi did you resolved your issue? – nitin tyagi Jun 16 '19 at 11:28