1> 下载amazon IAP3.0 for unity plugin

2> 根据 https://developer.amazon.com/public/apis/earn/in-app-purchasing/docs-v2/using-the-iap-plugin-for-unity#GetProductData 完成android IAP代码移植

3> 下载amazon stroe, 下载app tester

4> 在调试purchase接口的时候出现JSON file does not exist on the device's external storage错误

5> apptester需要JSON file, 在亚马逊后台添加IAP项目, 下载JSON file放入手机SD卡根目录下

6> RVS 搭建, 下载apache-tomcat和相应的jdk

yum install java-1.8.0-openjdk

yum instal java-1.8.0-openjdk-devel

解压apache-tomcat, 在conf/tomcat-user.xml中, 添加<role rolename="manager-gui"/> <user username="MyUserName" password="MyPassword" roles="manager-gui"/>

sh bin/start.sh

访问ip:8080, 如果出现tomcat欢迎界面就是tomcat服务已经启动

部署亚马逊.war文件. Receipt Verification Service Sandbox is up! 即可.

验证脚本中改为sandbox, 测试IAP.