by azuanagames » November 26th, 2010, 11:31 pm
by Henrik » November 29th, 2010, 5:43 pm
by azuanagames » November 29th, 2010, 5:55 pm
by Henrik » November 29th, 2010, 8:53 pm
azuanagames wrote:Clarify something for me. How does player.io realize that the payment went through? It can't be through the email. Is it only when "Return to Merchant" is clicked? If so, what happens if the user simply closes that browser window? Is there a different mechanism?
by azuanagames » December 1st, 2010, 12:47 am
// buy the 'lifetime_adfree' item directly with PayPal
client.payVault.getBuyDirectInfo(
"paypal", //Provider name
{currency:"USD", item_name:"Azuana Bingo 2 Ad Free For Life",
sandbox: true,
cpp_header_image:"http://www.azuanagames.com/img/abingo2_150x50.png",
"return":"http://apps.facebook.com/azuana-bingo/thanks",
cancel_return:"http://apps.facebook.com/azuana-bingo/cancel",
no_shipping:1
}, //Purchase arguments
[{itemKey:"lifetime_adfree"}], //Items to buy
// Success handler
function(info:Object):void {
// Open paypal in new window
navigateToURL(new URLRequest(info.paypalurl), "_blank");
popup.showMessage("Thank You!", "We will now open a new tab for you to complete the payment process.\n\nOnce the payment is processed you may press 'OK' to disable ads, or reload Azuana Bingo 2 by clicking the 'Play' tab above.", okFunction);
},
// Error handler
function(e:*):void {
popup.showMessage("Unable to buy item", e)
}
);
by Henrik » December 1st, 2010, 10:13 pm
by azuanagames » December 1st, 2010, 11:20 pm
by azuanagames » December 2nd, 2010, 12:16 am
by Henrik » December 2nd, 2010, 11:46 am
by azuanagames » December 2nd, 2010, 2:25 pm
by Henrik » December 3rd, 2010, 1:42 pm
by azuanagames » December 4th, 2010, 2:38 am
by Henrik » December 6th, 2010, 10:43 am
by wbsaputra » February 28th, 2011, 9:41 pm
by Henrik » February 28th, 2011, 10:04 pm
by wbsaputra » March 1st, 2011, 9:20 am
by Henrik » March 1st, 2011, 11:04 am
by wbsaputra » March 2nd, 2011, 8:38 am
by wbsaputra » March 2nd, 2011, 11:16 am
by Henrik » March 3rd, 2011, 1:36 pm
wbsaputra wrote:But returning url is not working, is because im testing in localhost? not in live session?
wbsaputra wrote:Just need some advice for updating user vault after succesfull transaction, i have to update player object and remove user payvault item. Did i have to create returning page with as3 snippet to update player objects?
can i use different connection with auth key and point to same player object table?
wbsaputra wrote:also did i will be charged if i test payvaul using paypal sandbox? because i really need test hundred times before.
by wbsaputra » March 4th, 2011, 9:12 am
Second, how do you connect with your players? Regular connect? Quickconnect? You can do it from the client, but you have to connect through regular connect, as that user, and on a secured connection that has the access rights to modify the vault. If your game is a multiplayer game, it's highly recommended that you do this in serverside code instead.
The PayVault system makes no difference between test transactions and real transactions, regardless of which provider you are using. This means that test transactions will show up in the transaction log and revenue statistics, and also that you will be charged for test transactions. I suggest that you hold off on the full tests until you absolutely have to, for example you can use the give method in payvault to give a user an item so you don't have to complete an actual transaction before it appears in that user's vault.