Guides
Setting up Mandates
Direct Debit Mandates Verified Mandates Collecting mandates offline Importing MandatesSend an outbound payment
Adding a new recipient Initiate an outbound payment Approve an outbound payment Cancel an outbound paymentSetting up mandates / collecting payments
Billing Request with Actions: Setting up a Direct Debit mandate Collecting a Direct Debit payment Billing Request with Actions: Taking an Instant Bank Payment Billing Request with Actions Dual Flow: Taking an Instant Bank Payment and setting up a Direct Debit mandateJavascript Drop-in Flow
What is the JavaScript Drop-in Flow?
Embed a pre-built payment flow directly in your website. The customer completes mandate setup and payment authorisation without leaving your domain.
Supports: Direct Debit only. Does not support Instant Bank Pay or Commercial VRP.
For these payments, use Hosted Payment Pages or Custom Payment Pages. See how all of our integration types compare.
Best for:
Keeping customers on your site throughout the payment flow
Moderate customisation with less development than a full custom build
Modern web applications (React, Vue, etc.)
Balance between speed of implementation and control
How it works
Create a Billing Request and Billing Request Flow via the API (same as Hosted Pages)
Include the GoCardless Drop-in JavaScript library on your page
Initialise the component with the flow ID
The component renders the payment flow inline on your page
Listen for completion events and webhooks
Customisation:
Style the component to match your brand colours and fonts
Control the container element and placement
Handle events (success, exit, error) in your application code
Step-by-step guide
Pre-collecting customer details Optional
If you already have the customer's name, email, and address, submit them before creating the flow. The hosted page skips those fields or locks them if you prefer.