Code Monkey home page Code Monkey logo

whatsapp-ecommerce-bot's Introduction

Whatsappcommerce Bot

Hello there,

This folder/repository contains the code to a tutorial I am working on relating to Whatsapp & Ecommerce.
The link to the tutorial will added here as soon as the article is published.

Thanks,
Daggie.

whatsapp-ecommerce-bot's People

Contributors

daggieblanqx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

whatsapp-ecommerce-bot's Issues

Send external link button with Whatsapp Message(URL links to redirect payment page)

We are utilizing "whatsappcloudapi_wrapper". our requirment is to include payment gateway part with this so we are trying to interact with Paypal API for the payment.
but we are facing three issues here.

  1. We want to redirect the flow to a payment URL for PayPal-Can we implement this scenario?
  2. How can we call external Api from this engine?
  3. Can we customize the button types and its properties (URL links to redirect payment)?

error: ReferenceError: signale is not defined

@DaggieBlanqx When configuring express server and test the webhook field messages show the following error

$ nodemon app.js
[nodemon] 2.0.19
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node app.js`
Execution environment selected is: "development"
App now running and listening on port 9000
GET: Someone is pinging me!
GET: Someone is pinging me!
POST: Someone is pinging me!
{
  error: ReferenceError: signale is not defined
      at module.exports (/home/macagua/proyectos/odoo/extra-addons/chatbot/whatsapp-ecommerce-bot/pidela-whatsapp-bot/node_modules/whatsappcloudapi_wrapper/msg_parser.js:17:9)
      at WhatsappCloud.parseMessage (/home/macagua/proyectos/odoo/extra-addons/chatbot/whatsapp-ecommerce-bot/pidela-whatsapp-bot/node_modules/whatsappcloudapi_wrapper/index.js:867:16)
      at /home/macagua/proyectos/odoo/extra-addons/chatbot/whatsapp-ecommerce-bot/pidela-whatsapp-bot/routes/index.js:43:29
      at Layer.handle [as handle_request] (/home/macagua/proyectos/odoo/extra-addons/chatbot/whatsapp-ecommerce-bot/pidela-whatsapp-bot/node_modules/express/lib/router/layer.js:95:5)
      at next (/home/macagua/proyectos/odoo/extra-addons/chatbot/whatsapp-ecommerce-bot/pidela-whatsapp-bot/node_modules/express/lib/router/route.js:144:13)
      at Route.dispatch (/home/macagua/proyectos/odoo/extra-addons/chatbot/whatsapp-ecommerce-bot/pidela-whatsapp-bot/node_modules/express/lib/router/route.js:114:3)
      at Layer.handle [as handle_request] (/home/macagua/proyectos/odoo/extra-addons/chatbot/whatsapp-ecommerce-bot/pidela-whatsapp-bot/node_modules/express/lib/router/layer.js:95:5)
      at /home/macagua/proyectos/odoo/extra-addons/chatbot/whatsapp-ecommerce-bot/pidela-whatsapp-bot/node_modules/express/lib/router/index.js:284:15
      at Function.process_params (/home/macagua/proyectos/odoo/extra-addons/chatbot/whatsapp-ecommerce-bot/pidela-whatsapp-bot/node_modules/express/lib/router/index.js:346:12)
      at next (/home/macagua/proyectos/odoo/extra-addons/chatbot/whatsapp-ecommerce-bot/pidela-whatsapp-bot/node_modules/express/lib/router/index.js:280:10)
}

My Node version is:

$ node -v
v14.15.1

How fix this error?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.