facebook-payments

Local Currency - How to handle real time updates for refunds, disputes and chargebacks?

泪湿孤枕 提交于 2019-12-13 06:12:29
问题 I'm a bit confused on how we are expected to handle real time updates for refunds, chargebacks and disputes.. I've subscribed to both the actions and disputes real time updates fields but when a dispute is filed by a user the changed_fields array contains 'actions' and not disputes?! This is an example of the JSON response we get: {"object":"payments","entry":[{"id":"409105399200862","time":1377079956,"changed_fields":["actions"]}]} Surely the changed_fields should be set to 'disputes' as

Facebook Realtime Updates - Dispute - Response

夙愿已清 提交于 2019-12-13 02:22:43
问题 Noobish question: Are you supposed to respond to realtime updates (RTUs) somehow? Keep getting RTUs on the same dispute which FB has already refunded. So, should one echo something in the RTU callback? Just been through all the documentation I can find (again) and can't seem to find anything on response. 回答1: Yes, you need to return a 200. The content type or response body do not matter. Anything else results in Facebook retrying the callback until a 200 is received, so you'll get lots of