What does this mean for me? You will always be able to play your favorite games on Kongregate. However, certain site features may suddenly stop working and leave you with a severely degraded experience.
What should I do? We strongly urge all our users to upgrade to modern browsers for a better experience and improved security.
We suggest you install the latest version of one of these browsers:
Kongregate is a community-driven browser games portal with an open platform for all web games.
Get your games in front of thousands of users while monetizing through ads and virtual goods.
Learn more »
Currently with the game I am working on, I make the user purchase or use Kreds to get Ocho (the in-game currency for my game)
I’m using the skeleton giving here
for the callback url.
All i did was make items for the $all\_items array and added code to give the user Ocho under the commented line:
// Award items to the user here!
The problem I am having is that the Ocho is credited to the user, and the log in my database shows this as well saying the purchase is complete. However, once I’m done with this purchase, I get an email from Kongregrate saying:
* * *
You recently purchased the following item in \*\*\*\*\*\*\*:
We were unable to communicate with the game server in order to deliver you the item in-game, so your account has been automatically refunded with 0 Kreds.
Please feel free to contact us with any questions at [email@example.com](mailto:firstname.lastname@example.org).
I’m not quite sure if it’s because I’m not ‘using’ the item via Kongregate’s API or not or something.
Could anybody be so kind to enlighten me possible reasons why this is happening?
btw, I have not published this game yet. Don’t want to publish it if the user can get unlimited Ocho’s for a cost of no Kreds lol
I’m willing to bet you aren’t sending a confirmation JSON call back. Check out the bottom of [this page](http://developers.kongregate.com/docs/all/dynamic-item-orders-api).
> At this point you should render a JSON response object with a single attribute state. You may either set state to completed or canceled. If you cancel the order the **user’s Kreds will be refunded and they will be notified via private message**. If you wish to complete the order, you should render the completed status and award the user their virtual items at this point. Here is an example of a valid completed JSON response:
(See bolded part for why I think its this)
so after talking to some peeps on here i tried instead of
print(json\_encode(array(“state” =\> “completed”)));
$object0 = array(“state” =\> “completed”);
and to no avail :(
also tried exit(); instead of return; **sighs**