In this article, you will learn how to connect your PayPal Business account to Manychat. It will allow you to accept PayPal payments via Messenger and Instagram.
⚠️ You must connect an existing PayPal Business account to access the Buy Button in your Automation.
To set up the PayPal integration, you need to create a PayPal App to receive payments that will use Manychat's Buy Button. Let's see how you can do that and what needs to be set up inside Manychat and PayPal.
Setting up PayPal
1. Open PayPal and log into your business account. If you haven't had a business account yet, you can create one on their website.
2. When you log into your PayPal Business account, open the PayPal Developer Dashboard and select the Apps & Credentials tab.
3. Click the Create App button and create a new App.
This App has two modes: Sandbox (for testing) and Live (for real transactions). You can switch between them by using the corresponding toggle.
4. In the created App, scroll the page down and click the Add Webhook button.
⚠️ If you don't do that, you can't see the order history in Manychat.
You need to create a webhook with the following information:
Webhook URL: https://hooks.manychat.com/paypalwh/webhook/*%Manychat_Page_ID%*
Event types: All event types
💡 To find your Manychat Page ID, open the Manychat account that you want to connect to PayPal. Watch the URL link in the browser. The part of the URL after fb and before / is your Page ID. Page ID contains only numbers (without fb and / ):
Once the webhook is created, you’ll see a corresponding notification.
This webhook was created for the Sandbox mode. Now, you need to switch the App state to Live and repeat this operation with the webhook creation again. To change the App state, just select the Live tab and create the same webhook:
Setting up Manychat
Now, when the PayPal account is ready, we can set it up to work with Manychat. To do so, we need to transfer the Client ID and Webhook ID information from both Sandbox and Live versions of the PayPal App to Manychat.
1. Open your PayPal App and click the Sandbox tab. Copy the Client ID and Webhook ID:
2. Open Manychat, proceed to Settings > Payments and paste the Sandbox Client ID and Webhook ID into the corresponding fields.
💡 In the Payments tab, you can also choose the currency type for your Buy Buttons, select the type of payment notifications, and track the order history for all purchases.
3. Now, let’s repeat this operation for the Live version of the App. Go back to PayPal and click the Live tab. Сopy-paste the Client ID and Webhook ID from PayPal to Manychat.
4. Once you enter the needed data, click the Connect PayPal Account button.
That’s it. Now, you can add the Buy Button to your automations!