I’m running Fortumo in sandbox mode (haven’t clicked ‘Go Live’ yet), and the entire process runs through smoothly. Only thing is that the callback doesn’t get called…
[lua]
function onPaymentComplete(response)
– this showAlert is never getting called…
native.showAlert(“Fortumo Payment”, response.billingStatus, {‘OK’})
end
local request = fortumo.newPaymentRequest()
request:setDisplayString(“Pack of Undos”)
request:setService(fortumoID, fortumoSecret)
request:setConsumable(true)
fortumo.makePayment(request, onPaymentComplete)
[/lua]
fortumoID and fortumoSecret are my two vars to hold those values. Overall, the native.showAlert()'s not getting called in the callback to indicate the callback function is never getting called. However, the whole series of Fortumo dialogs goes all the way through payment straight through to a final confirmation dialog that the purchase was made. Only problem is without the callback running I can’t tell if that purchase was made successfully.
Anyone else run into this?
Thanks,
Nate