简体   繁体   English

亚马逊应用内购买如何测试付款

[英]Amazon in-app-purchases how to test payments

I am working with Amazon In-app-purchases for Android on flash using native extentions. 我正在使用本机扩展程序在Flash上​​使用Android应用内购买Android。 So, I have implemented purchase flow in sandbox ( I was using their file InAppSDK-SandboxData.json for debug). 所以,我在沙盒中实现了购买流程(我使用他们的文件InAppSDK-SandboxData.json进行调试)。 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. 但它抛出异常,它试图打开文件“InAppSDK-SandboxData.json”,但我已经删除了希望它将转到产品服务器,但它没有。 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. 我在上一个项目中实现了针对Android的亚马逊应用内购买,您必须测试的唯一方法是使用InAppSDK-SandboxData.json。 Once everything works fine then you commit the app to Amazon App Store and they'll debug for you. 一旦一切正常,那么您将应用程序提交到Amazon App Store,他们将为您调试。

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. 我的建议,如果使用InAppSDK-SandboxData.json工作正常,你不能等待一两个月(我很抱歉,但我不能告诉你了,因为我还在NDA下。我会编辑我的回复很快),你不要害怕并提交应用程序。 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. 现在,您可以在发布给客户之前使用“LiveApp测试”测试应用内购买。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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