在购买基于订阅的项目(可能也会影响其他项目)时,我遇到了钛中Storekit模块的问题。
我在购买该项目时得到的错误代码是:
[WARN] error in transaction: Error Domain=SSServerErrorDomain Code=5002 "An unknown error has occurred" UserInfo=0x9b3a660 {NSLocalizedDescription=An unknown error has occurred}用于引用该产品的代码如下:(Javascript)
requestProduct('553XXXXXX.testproductname', function (product) {
var buySingleItem = Ti.UI.createButton({
title: 'Buy ' + product.title + ', ' + product.formattedPrice,
top: 60, left: 5, right: 5, height: 40
});
buySingleItem.addEventListener('click', function () {
purchaseProduct(product);
});
win.add(buySingleItem);
});一些注意事项:
Tested with iPad Simulator and iPhone 4S running 5.1.1
Module is called Ti.Storekit version 1.5
Titanium SDK version is 2.1.1发布于 2012-08-15 20:42:37
您不能在模拟器: StoreKit中使用请参阅本文件:测试应用程序内的采购。
注意:商店套件不操作在iOS模拟器。在iOS模拟器中运行应用程序时,如果应用程序试图检索支付队列,Store将记录一个警告。必须在实际设备上对存储进行测试。
还请参考此堆栈过流问题。
https://stackoverflow.com/questions/11974346
复制相似问题