Use your custom domain
Custom domains is a paid feature, and costs 10 USD per month while active.
In this article you’ll learn how to connect your own custom domain to Stripe Checkout by:
- Adding your domain to the Stripe Dashboard
- Creating DNS records to point at Stripe
- Verifying your DNS setup
- Setting your domain as active
Add your custom domain to the Stripe Dashboard
First decide what subdomain to use with your Checkout Sessions.
If your domain is example.com
, we recommend using payments.example.com
as your custom Checkout subdomain. You can replace payments
with anything you like, as long it’s valid subdomain. You can’t use a path like example.com/checkout
—you must specify a subdomain of your existing domain.
After you decide on a subdomain, visit the Custom domains settings page to start the domain connection process.
On the settings page, find the Checkout box, and click Add your own. You now see a form with an input to enter your desired subdomain:
Enter your desired subdomain, and click Connect. You’ll see a Connecting
indicator, and a popup with instructions for setting up your DNS records.
Your custom domain is activated automatically when your DNS records are verified. If you want to disable this behavior, uncheck the Set as active when ready checkbox.
When your domain is in the Connecting...
state, we’re waiting to verify your DNS records that you’ll set up in the next step. After Stripe verifies the DNS records, we create TLS certificates for your subdomain, set up the correct CDN routing, and then your domain is ready
to enable and use.
Identify your DNS Provider
To start, figure out what service is managing your DNS records, so you know exactly where to login and create the new records.
If you already know your DNS provider, you can move on to the next section.
Often, it’s the same place you registered your domain, but sometimes the DNS provider is different from your domain registrar.
If you’re not certain who your DNS provider is, try looking up your domain’s nameservers, replacing stripe.com with your own domain in this command:
nslookup -querytype=NS stripe.com
You’ll see a list of nameservers for your domain in the output. Here’s some example output for stripe.com:
# Looks like AWS is providing our DNS here: stripe.com nameserver = ns-423.awsdns-52.com. stripe.com nameserver = ns-705.awsdns-24.net. stripe.com nameserver = ns-1087.awsdns-07.org. stripe.com nameserver = ns-1882.awsdns-43.co.uk.
If you’re more comfortable using a browser-based tool, go to MXLookup’s DNS Lookup tool and enter your domain. It might be able to tell you who your DNS provider is (but not always).
Create required DNS records
In this section, you’ll create the DNS records you need to connect your domain. As you go through each step, check each checkbox to keep track of where you are in the process.
Select the tab that matches your DNS provider from the tabs below—this gives you specific, guided instructions for creating the required DNS records. If your DNS provider isn’t an option, follow the Standard instructions:
Now that you’ve created your DNS records and verified them, Stripe verifies the connection and provisions your domain on our end. We’ll send you an email and a Dashboard notification when the domain is ready for you to enable it. You can also visit the Dashboard settings at any time to see the current status of your custom domain connection.
Use your custom domain
Before completing this section, read back through the documentation and make sure you’ve checked off every action item.
Automatic activation
When the Set as active when ready checkbox is checked, you will see the following state after your DNS records have been verified.
At this point, your custom domain is being used for Checkout Sessions in test mode and live mode.
Manual activation
If you unchecked the Set as active when ready checkbox, you will see the following state after your DNS records have been verified:
At this point, your custom domain is only being used for Checkout Sessions in test mode. You can test your domain before activating if you choose.
After clicking the Activate button, your custom domain is now active for Checkout Sessions in test mode and live mode.