我正在尝试将 fortumo 应用内购买插件集成到我的游戏中
我目前正在关注主页上的文档,但我不明白。
http://developers.fortumo.com/in-app-purchasing-for-corona/making-a-payment/ http://www.coronalabs.com/blog/2013/05/30/increasing-app-revenue- with-fortumo-mobile-payments/
在这里,我尝试这样做,但我认为这不是正确的方法。我已将整个代码放在按钮单击侦听器上。
local GUI = display.newGroup();
local fortumo = require("plugin.fortumo")
local request = fortumo.newPaymentRequest();
request:setDisplayString("Super Powers #1");
request:setService("463ab812a5d0483c06a976b3d8084ef8", "9c21d58f14c1328fc9772b6d507ca566");
request:setProductName("ProductSKU-User123");
request:setConsumable(false);
fortumo.makePayment(request, onPaymentComplete);
function onPaymentComplete(response)
print("complete=" .. response.billingStatus);
end
onPayme
请问有什么帮助吗?