- Code: Select all
YahooGames.dialog('buy', {
apiToken: API_TOKEN,
name: item.name,
description: item.description,
icon: item.icon,
currency: item.currency,
amount: item.amount,
transactionid: item.transactionid
}, function (data) {
if ( !data.error )
{
var transactionID = (data.transactionId !== undefined ? data.transactionId : data.transactionid);
alert('transactionID: ' + transactionID);
//call flash
}
else
{
//call flash
}
});
The problem is I get an error in the dialog that tries to open: "Invalid Argument(s)" On of the given arguments had an invalid or missing value
missing apiToken This dialog can only be show with a valid apiToken. The api token looks to be correct.. am I passing it wrong? do I add to somewhere else? The documentation does not mention this and I've tried just about everything.
Can anyone shed any light on this?