Skip to content

Charitable GoCardless

GoCardless is a payment processor laser-focused on providing affordable card-free payments through bank transfers and Direct Debit. The result is payments with radically lower fees than normal card payments.

Paid Extension

Charitable GoCardless is a premium plugin. Get it today with one of our plugin bundles.

How to install and activate the GoCardless plugin

Charitable GoCardless is a plugin and can be installed the same way as any other Charitable extension. Here are 5 quick steps to getting it up and running:

  1. Download the plugin from your account page.
  2. In your WordPress dashboard, go to Plugins > Add New.
  3. Next, click Upload Plugin.
  4. Choose the zip file you downloaded earlier and click Install Now.
  5. Activate your plugin!

Stuck? Check out read our guide to installing Charitable extensions for a detailed step-by-step tutorial with screenshots to help you along.

Activate the gateway

Now that the plugin is active, you still need to activate GoCardless as a payment gateway. For convenience, you can do this directly from the Plugins page by clicking on the “Activate GoCardless gateway” link:

You can also activate GoCardless on the Payment Gateways settings page:

  1. Go to Charitable > Settings > Payment Gateways
  2. In the GoCardless block, click on Enable Gateway.

Settings

To take payments with GoCardless, you will need to configure Charitable with your GoCardless Access Token, as well as set up a webhook endpoint in your GoCardless account.

  1. Go to Charitable > Settings > Payment Gateways.
  2. Click on Gateway Settings.

If you don’t have a GoCardless account yet, now is the time to set one up: https://gocardless.com/

Setting up your API keys

To generate your GoCardless:

  1. Log into your GoCardless account area.
  2. Click on Developers in the sidebar menu.
  3. At the top right, click on Create and then click Access token.
  4. Copy and paste your Access Token from GoCardless into the “Live Access Token” field in your Charitable settings.
  5. Save your Charitable settings.

Add your webhook

The next step is to add a webhook endpoint in your GoCardless dashboard. Without a webhook endpoint, Charitable would not be notified about any payment status changes, or renewal donations if you are using Recurring Donations.

To create a webhook endpoint:

  1. On the same Developers page where you created the access token, click on Create.
  2. Next, click Webhook endpoint. A modal window will pop up.
  3. Provide a “Name”. You may wish to name it Charitable to make it obvious what the webhook is used for.
  4. Set the “URL” setting to your website’s home URL followed by charitable-listener/gocardless. For example, if your website is https://mynonprofit.org, your webhook URL will be:
    https://mynonprofit.org/charitable-listener/gocardless
  5. It’s highly recommended to also provide a “Secret”. This should be hard to guess.
  6. You can keep the “Webhook client certificate” option unchecked.
  7. Finally, click Create webhook endpoint to save the webhook endpoint.

Using GoCardless in Test Mode

We always recommend testing payments when you first set up a new gateway. To test GoCardless, you will need to generate a new Access Token and Webhook Endpoint via the GoCardless sandbox. To do this:

  1. Go to https://manage-sandbox.gocardless.com/ and create/login to your account.
  2. The sandbox dashboard looks just like your live account dashboard. Follow the steps above to create your “Access Token”, and then save that in the “Sandbox Access Token” field in Charitable.
  3. Next, create a Webhook Endpoint, pointed to the same URL as the one you created earlier. Use the same “Secret” you used for your live account’s Webhook Endpoint.

With that done, you can test a donation by enabling Charitable’s Test Mode:

  1. In your WordPress dashboard, go to Charitable > Settings > Payment Gateways and check the “Turn on Test Mode” setting. Save your changes.
  2. Create a new donation via your website, using GoCardless as the payment gateway. For your payment, you can use the test bank details made available by GoCardless.
  3. After completing your “payment”, you will be returned to your website. Since GoCardless payments are not instantaneous, your donation will have a status of Pending in the WordPress dashboard under Charitable > Donations.
  4. In the meantime, click on the donation you just created and then find the “Gateway Transaction ID” field. Clicking this will take you directly to your GoCardless payment page where you can see the status of the payment.
  5. Check back in a few days to confirm that it has been marked as Paid — this will verify that your webhook endpoint is working as expected.