...
The first step is create a merchant account on GoCardless, if you haven't done so already. Go to https://gocardless.com/ and click the "Sign Up" button; then follow the instructions.
Turn on Intelligent Retries/Success+. This increases the chance of GoCardless managing to collect the payment from the user if the first one fails.
This requires the Advanced or Pro GoCardless Plan. However, even with the Standard plan, you can still manually retry failed payments from myClubhouse.
Login to your GoCardless dashboard. Click “Switch on intelligent retries”
In the Dashboard, navigate to Success+ from the side navigation.
Select your currency.
Complete the wizard:
Retry Window: Set the time frame within which GoCardless will try to take the payment.
Retry Attempts: Set the maximum number of tries after the first payment failure within the above time frame.
Failure Filter: Turn this setting on.
Enable retries for currency: Click to save
Retry settings.
Under each scheme required, select “Enable retries for..." This feature is currently available for Bacs (GBP), SEPA (EUR), Autogiro (SEK), Becs (AUD), Becs NZ (NZD), PAD (CAD), and ACH (USD) payments. Click the toggle next to the currency you wish to enable.
A confirmation notification will confirm you have enabled Success+ for that scheme.
Once you have your merchant account in place you need to create an access token for your account:
Login to your GoCardless dashboard.
Click the "Developers" option on the left.
There should be three sections on the page: Access tokens, Webhook endpoints and Webhooks.
Click the green “Create” button in the top-right and select “Access Token”.
Fill in the form with
Name: myClubhouse
Scope: Read-write access
Click the green “Create access token” button.
Copy the access token from the pop-up immediately and paste it somewhere safe. Take note of the warning:
Make sure you take a copy of your access token now — you won't be able to view it again. To keep your account secure, you should treat it just as you'd treat your password.
Add a new GoCardless payment method to myClubhouse:
In a new browser window or tab, go to your myClubhouse site and login as somebody with administrative access.
In the main menu, select Admin > Finance > Payment Methods, Plans & Schemes.
Under “Payment Methods”, click the green "+ Add" button at the top right of the table. You will see the following pop-up:
Set the "Payment Type" to "GoCardless".
Set the "Name" to be "GoCardless" - you can call it whatever you want, but for the club's main GoCardless payment method, you could simply call it "GoCardless".or “Direct Debit via GoCardless”
If this is the club’s main GoCardless account, leave the Payee as “Club”. (If this GoCardless account is for paying a specific person, select “Member” and start typing the name of the person, then select them from the drop-down.)
Paste the Access Token you saved from the GoCardless merchant dashboard (step 2 above) into the "Access Token" field.
Leave the Webhook Endpoint Secret blank for now.
Enter any further instructions for the paying user into the “Notes” field.
Click OK.
Next create a webhook endpoint:
Whilst still on the payment methods page of myClubhouse, copy the webhook URL shown for the GoCardless payment method.
Switch back to your browser tab for GoCardless.
Click the "Developers" option on the left.
Click the green “Create” button in the top-right and select “Webhook endpoint”.
Fill in the form with
Name: myClubhouse
Paste the webhook URL you copied from myClubhouse (step 5a)
Secret: leave this blank
Webhook client certificate: leave this box un-checked
Click the green “Create webhook endpoint” button.
A list of Webhook endpoints will be displayed, click on the “myClubhouse” one you just created.
Copy the displayed webhook secret (a string of seemingly random characters).
Save the webhook secret to your payment method on myClubhouse:
Switch back to the myClubhouse payment methods browser tab.
Edit the newly created payment method and paste the webhook secret into the Webhook Endpoint Secret box.
Click OK.
...