我正在使用Github示例代码来创建Facebook Credits (callback.php和index.php),但它给了我以下错误。谁有什么解决方案?
“使用无效的状态转换调用了Order::update_order:3 -> 0”
谢谢..
发布于 2012-03-15 13:59:51
如果不看到你正在使用的代码,很难回答,但是你发送的响应应该是这样的:
{
"method": "payments_status_update",
"content": {
"order_id": ORDER_ID,
"status": "settled"
}
}ORDER_ID应替换为fB随请求发送的订单id。
有一些不正确的例子表明:
{
"method": "payments_status_update",
"content": [{
"order_id": ORDER_ID,
"status": "settled"
}]
}但是第二个不起作用。检查以确保您没有将内容作为数组发送。
https://stackoverflow.com/questions/8848809
复制相似问题