简体   繁体   中英

Amazon in-app-purchases how to test payments

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.

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 ;)

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM