What I get is a white and pink dialog box (like an error message) saying "Invalid argument(s) One of the given arguments has an invalid or missing value" and "missing apiToken: This dialog can only be shown with a valid apiToken"
Here's my code:
- Code: Select all
window.parent.YahooGames.dialog('buy', {
name: order_data.description,
description: "Get more " + order_data.cur_name + " in your game!",
icon: order_data.icon,
currency: 'usd',
amount: order_data.price,
transactionid: order_data.req_token,
foo: 'bar'
}, function(data) {
// empty
});
What am I doing wrong? Yahoo's documentation doesn't mention that an "apiToken" parameter is required or expected. What should I do?