Skip to main content

GoCardless Integration

ERPNext integrates with GoCardless to collect payments through Direct Debit schemes such as SEPA. Once configured, businesses can securely send payment requests, manage mandates, and automatically record payments in ERPNext.

Summary

  • Accept Direct Debit payments using GoCardless.
  • Supports multiple GoCardless payment gateway accounts.
  • Automatically creates Payment Gateway and Bank accounts.
  • Supports SEPA mandate management.
  • Webhook support for automatic mandate updates.

Prerequisites

  • An active GoCardless account.
  • GoCardless Access Token.
  • Webhook Secret (recommended for automatic mandate updates).

Access GoCardless Settings

Navigate to:

Explore > Integrations > GoCardless Settings

Configure GoCardless

  1. Open GoCardless Settings.
  2. Enter your Access Token.
  3. Optionally enter the Webhook Secret Key.
  4. Save the configuration.
  5. Enable the GoCardless integration.

What Happens After Enabling?

  • A Payment Gateway record is created automatically.
  • A Bank account is created in the Chart of Accounts.
  • A Payment Gateway Account is generated for payment configuration.
  • Multiple GoCardless accounts can be configured if required.

Payment Gateway Account

The Payment Gateway Account acts as the central configuration point for GoCardless payments. From here you can:

  • Select the Bank account used for incoming payments.
  • Configure the default Payment Request email template.
  • Choose which GoCardless account is used for payment collection.

Chart of Accounts Entry

When the integration is enabled, ERPNext automatically creates a Bank-type account in the Chart of Accounts to record GoCardless transactions.

SEPA Payment Flow

GoCardless supports SEPA Direct Debit payments through mandate-based authorization.

  1. The customer initiates a payment.
  2. If no mandate exists, the customer enters their IBAN or local bank account details.
  3. The customer authorizes a SEPA mandate.
  4. After the mandate is approved, the payment request is submitted to GoCardless.
  5. If a valid mandate already exists, ERPNext sends the payment request directly to GoCardless without requiring customer approval again.
  6. GoCardless sends a confirmation email to the customer after the payment request has been processed.

How Existing Mandates Work

Customers who already have an active SEPA mandate do not need to authorize every payment. Future payment requests are submitted directly to GoCardless using the existing mandate.

Webhook Configuration

GoCardless webhooks allow ERPNext to automatically update cancelled or expired mandates.

Configure the following endpoint in your GoCardless account:

https://yoursite.com/api/method/erpnext.erpnext_integrations.doctype.gocardless_settings.webhooks

Important

After creating the webhook, enter the corresponding Webhook Secret Key in GoCardless Settings within ERPNext. This allows ERPNext to securely verify incoming webhook events.

Supported Transaction Currencies

Supported Currencies
EUR, DKK, GBP, SEK

Result

After completing the setup, ERPNext can securely collect Direct Debit payments through GoCardless, manage customer mandates, and automatically record payment transactions.

Rating: 0 / 5 (0 votes)