Cloudkibo / KiboPush

0 stars 1 forks source link

(Shops) See order status by order number API layer work #10935

Open sojharo opened 3 years ago

sojharo commented 3 years ago

coming from #10861

This is server side work on API layer to check the order status by order number.

jekram commented 3 years ago

@sojharo What is the status?

sojharo commented 3 years ago

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.

sojharo commented 3 years ago

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.

sojharo commented 3 years ago

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-io[bot] commented 3 years ago

Sentry issue: KIBOPUSH-35V

sojharo commented 3 years ago

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-io[bot] commented 3 years ago

Sentry issue: KIBOPUSH-362

sojharo commented 3 years ago

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.

Screenshot 2021-02-25 at 10 51 28

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.