In Plug&Pay you have the option to set up a webhook. Setting up a webhook ensures that a certain action is performed in another system or tool after an order is placed, after a subscription expires, or after an affiliate is accepted.
Example: setting up a webhook ensures that after an order is placed, your customer automatically receives login credentials for an environment.
What Are Webhooks?
Webhooks can be seen as automatic messages that Plug&Pay sends to another system whenever something happens. The other system can then do something, such as registering a customer, sending an email, or creating an invoice.
Webhooks ensure that Plug&Pay passes on events directly to other systems, so that everything continues to run automatically without you having to do anything yourself.
Which Triggers Can I Use?
With Plug&Pay you can set the following starting points for a webhook:
Affiliate accepted
Affiliate rejected
Affiliate stopped
Invoice created
Subscription ended
Adding a Webhook
Within Plug&Pay you have the option to set up a specific webhook for one product or a universally applicable webhook for all products.
Setting Up a Universal Webhook
A universal webhook is triggered every time the chosen trigger occurs. For example, with every order or every accepted affiliate.
Go to Settings > Integrations to get started. Click Add Integration, give your rule a name, choose a trigger, and select the Webhook option under 'Action'.
Enter the webhook URL of the system you want to connect to. Click 'Create rule' to save your new webhook.
If you want the webhook to be triggered for every order line in an order, check the option 'Call webhooks per order line instead of per entire order'. This option can be used when working with an order bump.
Webhook Key
The webhook key can be found under Settings > Developers and is used to validate that requests are genuinely coming from your Plug&Pay environment.
Setting Up a Webhook per Product
If you want to set up a webhook that is not triggered for every order but only for a specific product, follow these steps:
Navigate to Products and open the desired product. Go to the Integrations tab and create a new rule.
Give your rule a name, choose the trigger, select Webhook, and enter the webhook URL. Save your rule via 'Create rule'.
Setting Up a Webhook per Payment Page
If you want to set up a webhook that is not triggered for every order but only for a specific payment page, follow these steps:
Navigate to Pages > Payment Pages and open the desired page. Go to the Integrations tab and create a new rule.
Give your rule a name, choose the trigger, select Webhook, and enter the webhook URL. Save your rule via 'Create rule'.
Good to Know
If you have created a universal integration with the Invoice created trigger, a webhook will also be triggered after a successful transaction with the one-click upsell.
βWould you like to trigger a webhook for a specific upsell? You can fill in the webhook field with the desired webhook URL via the upsell settings under the Advanced tab.
βWant to connect with Huddle? Read this article π
βWant to connect with MailBlue (ActiveCampaign)? Read this article π
