Skip to content

Rapyd-Samples/whatsapp-checkout

Repository files navigation

Rapyd WhatsApp Checkout - INTERNAL HACKATHON WINNER

Learn how to send requests and catch webhooks using Rapyd Checkout and WhatsApp.

Context

Last July, Rapyd held a 24-hour internal hackathon to compete and build on ideas using the Rapyd API. One of our winning teams helped build and present a WhatsApp payment application for businesses to communicate with their customers while allowing customers to make an order and accept payments right within the chat.

How to set up Rapyd for Restaurants Via WhatsApp

WhatsApp account

To use the WhatsApp API, you must have an account with a third-party provider. Out of dozens available, we chose 360dialog. They were responsive and enthusiastic. Website: 360dialog.com. When you are testing, use one mobile phone to function as the restaurant's server and two or more for modeling customer behavior. Each phone must have WhatsApp installed.

Development environment

Use your favorite SDK for your favorite programming language. We used PyCharm for Python. See jetbrains.com.

Code repository

We used Bitbucket. See bitbucket.org.

SSH connection

To access Bitbucket, you need an SSH connection. See https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/

Web server

Set up your host program on a server. We used ServaRICA. See servarica.com.

Code libraries

Install the following Python packages in your development environment:

  • base64
  • datetime
  • flask
  • hashlib
  • hjson
  • hmac
  • json
  • os
  • random
  • redis
  • rejson
  • requests
  • string
  • time
  • uuid

Get Support