whatsapp-cloud-api icon indicating copy to clipboard operation
whatsapp-cloud-api copied to clipboard

Receive shopping cart message

Open irq20xdfr opened this issue 1 year ago • 1 comments

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/whatsapp-cloud-api/dist/startExpressServer.js b/node_modules/whatsapp-cloud-api/dist/startExpressServer.js
index 23b17a1..c7ae54d 100644
--- a/node_modules/whatsapp-cloud-api/dist/startExpressServer.js
+++ b/node_modules/whatsapp-cloud-api/dist/startExpressServer.js
@@ -71,6 +71,12 @@ const startExpressServer = (options) => new Promise((resolve) => {
                     ...(rest.interactive.list_reply || rest.interactive.button_reply),
                 };
                 break;
+            case 'order':
+                event = type;
+                data = {
+                    order: rest.order,
+                };
+                break;
             default:
                 break;
         }

This issue body was partially generated by patch-package.

irq20xdfr avatar Apr 27 '23 14:04 irq20xdfr

Hi @irq20xdfr 😊 Thank you for sharing this! I'll work on adding the functionality to the main package.

tawn33y avatar Apr 27 '23 16:04 tawn33y

Closing - please read more here.

tawn33y avatar Jul 25 '24 04:07 tawn33y