Learn how to send requests and catch webhooks using Rapyd Checkout and WhatsApp.
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.
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.
Use your favorite SDK for your favorite programming language. We used PyCharm for Python. See jetbrains.com.
We used Bitbucket. See bitbucket.org.
To access Bitbucket, you need an SSH connection. See https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/
Set up your host program on a server. We used ServaRICA. See servarica.com.
Install the following Python packages in your development environment:
- base64
- datetime
- flask
- hashlib
- hjson
- hmac
- json
- os
- random
- redis
- rejson
- requests
- string
- time
- uuid