应用内付款亚马逊 [英] In-App payment in amazon

查看:221
本文介绍了应用内付款亚马逊的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照以下步骤如图形象..steps在AppPayment亚马逊  但问题是,当我运行SDK中提供的code,如图4图像时,我点击  按钮点击的次数应扣除但事实并非如此。  我有地方string.xml英里的follwing值权论文步骤?

I have followed the following steps As shown in image ..steps in In AppPayment amazon but the problem is when i run the code provided in sdk as shown in image 4 when i click the button the number of clicks should be deducted but it is not. I have place the follwing values in string.xml m i right in theses steps?

  <string name="app_name">amazoncheckout</string>
 <string name="nothing"></string>
<string name="consumable_sku">com.amazon.checkout</string>
<string name="entitlement_sku_purple">com.amazoncheckoutconsumable</string>
<string name="entitlement_sku_green">com.amazoncheckoutentitlementn</string>
<string name="entitlement_sku_blue">com.amazon.buttonclicker.blue_button</string>
<string name="parent_subscription_sku">com.amazoncheckoutsubscription</string>
<string  name="child_subscription_sku_monthly">com.amazoncheckoutsubscriptionmonthly</string>

以上SKU是由我生成的,我也想知道在图像显示三个的JSON文件,我已经下载了,放在 在断言文件夹..什么是这个JSON文件? 一种提供在那里我错了......点击数显示5上我的脚步评论,但是当我点击它没有扣除,为什么? 任何帮助将appricated .... 谢谢

The above sku is generated by me and i also want to know the the json file shown in image three , i have downloaded that and placed in assert folder .. what is this json file for ? kind provide comment on my steps where i m wrong ... the click number is shown 5 but when i click it is not deducted why? any help will be appricated .... Thanks

推荐答案

我将试图解释你怎么能有演示的工作,因为,我认为,那是你的问题,对不起,如果我错了..

I'm going to try to explain how can you have the demo working, because, I think, that's your question, sorry if I'm wrong...

  1. 在你的设备上安装AmazonSDKTester.apk并打开它。这是在SDK包内tools文件夹。对于安装它,你可以在终端使用:

  1. Install the AmazonSDKTester.apk in your device and open it. It's inside tools folder in the SDK package. For install it you can use in terminal:

ADB安装AmazonSDKTester.apk

下一步您的项目添加到Eclipse

文件&gt;新&GT;项目...&GT;的Andr​​oid项目从现有的code,浏览按钮唱首歌演示项目的SDK文件夹,并完​​成

的amazon.sdktester.json文件复制到SD记忆。在ButtonClicker项目文件夹,进入资产文件夹和amazon.sdktester.json文件添加到SD记忆。一个简单的方法它拖动文件使用DDMS文件浏览器的SD文件夹。您的SD文件夹可能会有所不同取决于设备,在我的Nexus S是一样可以在图像中看到的。

Copy the amazon.sdktester.json file to SD memory. In the ButtonClicker project folder, go to assets folder and add the amazon.sdktester.json file to the SD memory. An easy way it's dragging the file to the SD folder using DDMS file explorer. Your SD folder may be different depends on device, in my Nexus S is like you can see in the image.

就是这样,你必须有按钮Clicker的演示样品完全工作。当你进行购买,你可以去AmazonSDKTester,看到所有的采购。希望它可以帮助你解决您的问题。

And that's it, you must have Button Clicker Demo sample fully working. When you make a purchase you can go to the AmazonSDKTester and see all your purchases. Hope it helps you and solves your problem.

更新:

我要复制和;从开发文档粘贴一些文字(请阅读此文档,因为它说明了一切伟大的)< /一>,我希望这可以帮助你:

I'm going to copy & paste some text from developer docs (please read this doc because it explains everything great) and I hope this helps you:

该SDK测试仪是一个开发工具,允许亚马逊移动应用SDK的用户提交给亚马逊出版之前测试其在模拟生产环境中实现。这将允许开发者以一个测​​试用例覆盖由亚马逊移动应用SDK的API生成的所有响应,并给他们信心,他们的应用程序将予以公布,并正常运行。

The SDK Tester is a developer tool that allows users of the Amazon Mobile App SDK to test their implementation in a production-like environment before submitting it to Amazon for publication. This will allow developers to construct test cases that cover all responses generated by the Amazon Mobile App SDK APIs, and give them confidence their apps will be published and run correctly.

这意味着,你必须在生产环境类似使用AmazonSDKTester.apk测试,一旦它的工作原理,你可以提交应用程序进行公布。

That means, you must use the AmazonSDKTester.apk for test in a production-like environment, once it works you can submit your app for publication.

该SDK测试仪使用一个JavaScript对象符号(JSON)文本文件包含用于向IAP API调用响应IAP项目的信息。此文件驻留含有被测和SDK测试该应用在设备上。一旦创建,文件需要驻留在路径下的设备的文件系统:/mnt/sdcard/amazon.sdktester.json

The SDK Tester Uses a JavaScript Object Notation (JSON) text file to contain the IAP item information used to respond to IAP API calls. This file resides on the device containing the app under test and the SDK Tester. Once created, the file needs to reside on the device's file system under the path: /mnt/sdcard/amazon.sdktester.json

的点击数量不减少,因为被点击返回一个SKU无效消息的按钮时(看logcat中),由于没有.json文件SD卡路径中找到。

The click number doesn't decrease because when is clicked the button a SKU INVALID message is returned ( Look at the logcat ) due to no .json file is found in the sd card path.

这篇关于应用内付款亚马逊的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆