In this article, you will find out how to integrate CopeCart with Slack via Zapier. The example configuration below triggers Slack to send a message in a selected channel to every user who purchases a product at CopeCart. Naturally, you can configure Slack to act in any other way that Zapier supports.

First, configure Slack. In this example, a new channel has to be created first to make Slack send messages in it:

Next, switch to Zapier to configure it properly.

To make Zapier know it should "listen" to your product sale process, you need to create a Webhook. In other words, you need to establish a mechanism of notifying the system that something had happened.

To do that, go to your Zapier account and follow the next steps:

  1. Go to Zaps menu

  2. Click on the Make a New Zap button

  3. Scroll down to Built-In Apps and select Webhooks by Zapier

  4. Choose Catch Hook as trigger event and press Continue

What you just created is a Webhook Endpoint. It is a unique address where the specific messages will be sent to when some action happens.

Next, you need to configure an IPN connection between Zapier and CopeCart so that CopeCart will send a notification to the Webhook Endpoint whenever the product is purchased. 

To do that, open the CopeCart member area in a new tab, click on your username in the upper-right corner, and proceed to IPN connections: 

Create and name a new generic IPN integration: 

Now you need to tell CopeCart to send notifications to the Webhook Endpoint you created at Zapier. To do that, copy the Webhook URL from Zapier to the Notification URL field at CopeCart, enter a key, and press Save changes:

Go to the Product edit page and enable an IPN integration with Zapier: 

Then, go to the product Checkout page and proceed to the Test order. Fill in the fields with whatever user information you want, select a payment plan and Test payment option, and click on Order now:

You have just completed a test order. Now, switch to Zapier and proceed to the next step by clicking on the Continue button. You will be redirected to the test step. We strongly recommend you to proceed to the test by pressing Test & Continue. If integration between CopeCart and Zapier works, you will be redirected to the next step:

Next, you should configure the interface between Zapier and Slack:

  1. Select Slack App and set an option Send Channel Message

  2. Select a Slack account

  3. Select a channel (the new one created)

  4. Configure a message to be sent to every new buyer and click on Continue

  5.  Test the connection between Zapier and Slack and turn on your Zap

A preconfigured message will appear in the Slack channel created at the very beginning:

That's it. 

In this example, Zapier sent a message in a Slack channel to a buyer. You also can configure Slack to send direct messages, set reminders, create channels, invite users to channels, etc.  

Did this answer your question?