GC Logo
Developer Docs

Guides

Collect Payments
Overview
Setting up MandatesDirect Debit Mandates Verified Mandates Collecting mandates offline Importing Mandates
One-off PaymentsOne-off Direct Debit Instant Bank Payment
Recurring PaymentsSubscription Instalments Variable Recurring Payments Instant Bank Payment + Direct Debit
Integration TypesGoCardless Hosted Pages Javascript Drop-in Flow Custom Payment Pages
Events & WebhooksMandate Events Billing Requests Events
Managing paymentsFX Payments Reconciling Payouts
Scheme guidanceACH and PAD Consent Types Billing Request Purpose Codes VRP Commercial Payment Purpose Codes PayTo Agreements and Payments

GoCardless Embed

View as Markdown

Handling webhooks

In this step of the GoCardless Embed guide you will use GoCardless' webhooks to respond to event actions and send payer notifications.

Follow the staying up to date with webhooks guide to:

  • create a webhook endpoint through the GoCardless dashboard.

  • set up a webhook handler to listen to webhook events.

The API reference docs contain the full list of event actions.

Payer Notifications

All direct debit schemes require certain notifications to be sent to payers, for example when a mandate is set up or a certain amount of time before a payment is taken. As a user of the GoCardless Embed product, we expect you will want to send your own payer notifications so that you can customise and brand them as you see fit.

GoCardless will send a webhook for every notification you need to send. This will allow you stay within the scheme rules. You can read this more detailed guide on handling payer notifications.

What's next?

Reconciling payouts