Setting up mandates#
Setting up Direct Debit mandates#
You'll need to provide a way for your users to set up Direct Debit mandates with their customers (whom we'll refer to from now on as "end customers") so they can start collecting payments from them.
A mandate allows you to pull money from an end customer's bank account with a simple API call.
Sending merchants to your app#
Firstly - once a merchant completes verification, there are two ways they might make their way to your platform to start setting up payments:
- Via the post-onboarding redirect - if you've configured a post onboarding URL in your App settings, GoCardless redirects the merchant there automatically after they finish verification. In this case they land directly on your platform can finish setting up their account with you and start setting up payments.
- Via the GoCardless dashboard - some merchants will land on the GoCardless dashboard, either by navigating there directly or returning after verification. To handle this, you can set a payment setup URL in your App settings. This controls where the "Get started with payments" prompt in the dashboard takes them - it should link to the page on your platform where they can begin creating mandates and payments.
If no payment_setup_url is set, the prompt falls back to your post_onboarding_url, or your website_url if neither is configured.


Making API Calls on behalf of your merchant#
Prerequisite: We must have gotten and saved merchants' access tokens after following the steps here.
To make an API call against a merchant's account, we will have to use the saved access token. See an example below:
Collecting Payments#
Once you have the client set up with your merchant's access token, use a Billing Request Flow to set up Direct Debit mandates or Pay By Banks on their behalf. This handles the full payer experience — collecting bank details, authorisation, and confirmation.
For a full walkthrough of Billing Request Flows and the payer journey, see collecting payments.