Facebook Pay 对话框确认后不调用回调
我已经用 Java 实现了一个 servlet,用于处理与 Facebook 的积分通信(根据 API)。我实现了 servlet 以执行与示例 php 代码相同的功能,并遵循 API 中的指南。
我向 FB 发送商品的 id,并使用“ payment_get_items”方法获得响应。我正确响应,这会创建一个弹出对话框,要求确认付款(包含所有产品数据)。当我单击“确认”时,Facebook 不会再次调用我的 servlet,而是告诉我我的应用程序没有响应。我觉得这很奇怪,并且没有找到解决这个问题的方法。
下面是当我被要求执行“ payment_get_items ”时我发送回 FB 的 JSON。 image_URL 是一个有效的实际 URL。我的回复中可能遗漏了什么吗?
{"content":[{"description":"test","image_url":image_URL,"item_id":"siPremiumShotgun","price":2,"product_url":image_URL,"title":"Premium Shotgun"} ],"method":" payment_get_items"}
非常感谢
I have implemented a servlet in Java that handles the credits communications with Facebook (as per the API). I implemented the servlet to perform the same functionality as the example php code and following the guidelines in the API.
I send FB the id of the item and get a response with the method "payments_get_items". I respond correctly which creates a popup dialog asking for payment confirmation (with all the product data). When I click confirm, Facebook does not make another call to my servlet but instead tells me my app is not responding. I find this strange and have found no way to resolve this issue.
Below is the JSON i am sending back to FB when i am asked to perform "payments_get_items". image_URL is an actual URL which has works. Am i possibly missing something in my response?
{"content":[{"description":"test","image_url":image_URL,"item_id":"siPremiumShotgun","price":2,"product_url":image_URL,"title":"Premium Shotgun"}],"method":"payments_get_items"}
Many thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保您的 SSL 是非免费版本的真正正宗的 SSL 证书。
Ensure your SSL is a non-free version really authentic SSL cert.