WhatsApp Configuration

Setting Up Twilio Sandbox for WhatsApp

To send messages with WhatsApp in production, we have to wait for WhatsApp to formally approve our account. But, that doesn't mean we have to wait to start building. With Twilio Sandbox for WhatsApp, we can test our app in a developer environment. To make use of the Sandbox we need to first connect to it by sending a WhatsApp message from our device to a number that will be made available to us. To get started, follow the instructions on the Learn tab. You’ll be able to send any message after your account is connected.
Once the sandbox is set up grab your Twilio credentials. We will use these for setting up access to the Twilio PHP SDK. Head over to your Twilio dashboard and copy both your ACCOUNT SID and AUTH TOKEN. Take note of the phone number that is assigned to your sandbox as that’s the number you’ll be sending your notifications from.
Next, Go to Admin Panel -> Settings -> WhatsApp Settings Update SID And TOKEN

Testing Our Application (Trail)

Create an account with the same phone number you added to your Sandbox. You should get a message similar to the one below once you click the “Place Order” button.
Last modified 8mo ago