purchaseItemsRemote callback never gets called

2 posts

Flag Post

Hi,
I managed to follow all these steps described in this documentation (http://developers.kongregate.com/docs/all/dynamic-item-orders-api) on how to do dynamic item orders up to the point where i can test everything and my server can handle the callback just fine. I can see the requests and handle it properly on my server.

The only problem is the client side, purchaseItems/purchaseItemsRemote should call a callback function which in my case never gets called ergo my client can’t do the refresh or gets notification that the transaction is completed.

Is there something wrong? During the test using my account, the price is 0 and i got to the checkout stage just fine and kongregate shows a window that the purchase is completed.

Here’s a simple code on what i do :

public function buyPackage(e){
// call kongregate buy
if(QuickKong.mtx)
{
QuickKong.mtx.purchaseItemsRemote(order_info,onPurchaseResult);
}
}

public function onPurchaseResult(result:Object){
if(p){
if(p.dumpmc)
p.dumpmc.print(“Purchase success:” + order_info);
// do update data n shit
p.UpdateDataCompleted();
}
GlobalLoader.loadURL(“log.php?msg=purchase success”,“GET”,null);
this.visible=false;
}

Thanks

 
Flag Post

is there any body out there?