Open sojharo opened 3 years ago
@sojharo What is the status?
This is code complete now and can be tested with real order when we have real commerce manager account and shop created in USA attached to it.
this is still blocked as we are not able to make actual order from facebook page as it doesn't show the buy button to us.
After we made some test orders, I was able to test this. This is giving some sentry error when we try to fetch order status using order id. I am looking into the error and will update here once fixed.
https://sentry.io/organizations/cloudkibo/issues/2233027446/?project=292307&referrer=slack
Sentry issue: KIBOPUSH-35V
I have worked on this and fixed the error that was happening. It was actually because of two more permissions that we need to access from business manager account which were to read and manage orders. We can test it tomorrow with Sir Jawaid's account by giving these permissions again.
Sentry issue: KIBOPUSH-362
I have looked further into this. We are asking for correct permissions however I just found that these permissions are in closed beta of Facebook Commerce and we can't use them until we get invite from them. We can read more on the following page:
https://developers.facebook.com/docs/commerce-platform/order-management/using-api
This is the message that we were receiving previously when we were trying to fetch order status. But when I tried to access those permissions it did not allow as they are in closed beta.
Until, it becomes open, we can't get the status of orders, however, we can navigate the products using chatbot and visit them to purchase them.
Our Facebook Shops chatbot is live here: https://www.messenger.com/t/339232407266744
I am commenting out the code for now which asks for blocked permissions. We can discuss and hide the option to check order status for now.
coming from #10861
This is server side work on API layer to check the order status by order number.