In Plug&pay you can set up webhooks. Setting up a webhook ensures that a certain action is triggered in another tool and/or software, after invoice creation or payment.
ℹ️ For example, setting up a webhook ensures that after placing an order a user automatically receives login details for a particular environment.
Setting up a webhook in Plug&Pay
Within Plug&Pay, you can create webshooks for one product or a general webhook for all products.
Setting up a general webhook
If you want to set up a general webhook, go to Settings > Webhooks to get started:
API key
You can use your API key to link Plug&Pay to another tool and/or software. You can copy your API key with this copy button:
Orders
Under Webhook URL you enter the URL you receive from your other tool or software.
There are two additions settings you can activate:
Trigger global webhook for direct debits and instalment payments: Tick this box if you want to activate the webhook for each direct debit or instalment payment.
Trigger webhooks per order line instead of per entire order: Tick this box if you want to activate the webhook for each product, for example if you are working with order bumps.
Cancellations
In this final field you enter a webhook that is activated as soon as a subscription becomes inactive or ends.
Setting up a webhook per product
If you want to set up a webhook per product, navigate to your Product > Connections > Add rule
In the pop-up that opens you create the webhook connection. Do not forget to click Create a rule when you have filled in everything correctly!
💡Read the articles on linking your Plug&Pay with Huddle and linking your Plug&Pay with Zapier if you want to create a link with Huddle or create a specific link via Zapier.
Important to know
If you have set up a general webhook. The webhook is also activated after a succesful transaction for an upsell.
Do you want to activate a webhook for a specific upsell? Enter the webhook URL under the Advanced tab for the specific upsell:
You can also add webhooks at a specific checkout. Similarly to a product, you do this at the Connections tab. This webhook is only activated when an order is palced via this specific checkout.