Skip to content
Create account
or
Sign in
The Stripe Docs logo
/
Ask AI
Create account
Sign in
Get started
Payments
Finance automation
Platforms and marketplaces
Money management
Developer tools
Get started
Payments
Finance automation
Get started
Payments
Finance automation
Platforms and marketplaces
Money management
Overview
About Stripe payments
Upgrade your integration
Payments analytics
Online payments
OverviewFind your use caseManaged Payments
Use Payment Links
    Overview
    Create a payment link
    Share a payment link
    Track a payment link
    Create a buy button
    Customize checkout for payment links
    Collect addresses
    Charge for shipping
    Promotion codes, optional items, and upsells
    After you receive payment from a payment link
    Use the API to create and manage a payment link
Build a checkout page
Build an advanced integration
Build an in-app integration
Payment methods
Add payment methods
Manage payment methods
Faster checkout with Link
Payment interfaces
Payment Links
Checkout
Web Elements
In-app Elements
Payment scenarios
Custom payment flows
Flexible acquiring
Orchestration
In-person payments
Terminal
Other Stripe products
Financial Connections
Crypto
Climate
HomePaymentsUse Payment Links

Customize checkout for Payment Links

Collect additional information, taxes, or update your branding.

Copy page

When you create a payment link, you can customize the look and feel of a checkout session for your user. You can also choose what type of customer information to collect and save for later.

See After a payment link payment for more information about customizing a session post-payment, such as redirecting the customer to a branded confirmation page or emailing a receipt.

Limit the number of times a payment link can be paid

You can limit the number of times a payment link is paid for. For example, you can place a limit if you have limited inventory, or only want the links to be used once. When the payment link reaches the limit, it automatically deactivates and customers can’t use it to make a purchase. If a customer tries to open the link after the limit has been reached, they’re shown the default message for deactivated links or a message that you can customize.

A payment link is considered “paid for” when a checkout session is complete. You can see the payments for completed checkout sessions in two different ways, depending on the type of payment link:

  • For payment links that include subscriptions (that is, any link that has a recurring price), go to Billing > Subscriptions.
  • For all other payment links, go to the payment link’s details page, then Payments and analytics > Recent payments.

To limit the number of payments using the Dashboard:

  1. Create or edit a payment link.
  2. Select Limit the number of payments and enter the number of payments you want to allow before the link deactivates.

Set a custom message for deactivated links

If customers try to open a deactivated payment link, they’re shown a default message. You can customize this message in the Dashboard or with the API.

You can customize the message for a deactivated link in the Dashboard in two ways:

  • When you create or edit a payment link, select Limit the number of payments. Then select Change deactivation message and add your custom message.
  • When you attempt to deactivate a payment link, a modal with a prompt to change the default deactivation message appears. Use that to update the message.

Collect customer addresses and phone numbers

You can collect addresses and phone numbers with payment links by adding those fields to the checkout session.

Collect an address

To collect addresses from your customers:

  1. Create or edit a payment link.

    To edit a payment link go to its details page and click the overflow menu ().

  2. Select Collect customers’ addresses in the Options section.

  3. You can collect Billing addresses only or you can collect Billing and shipping addresses. Choosing either makes these fields required for customers.

  4. If you collect shipping addresses:

    • You need to select the countries you ship to. These countries appear in the Country dropdown in the Shipping Address form in the checkout session.
    • You can optionally add shipping rates.

Collect a phone number

If you need to collect phone numbers to complete the transaction:

  1. Create or edit a payment link.
  2. Select Require customers to provide a phone number.

You can configure Payment Links to always collect a billing address, or always collect both a billing and a shipping address. When you collect shipping addresses, you can define the allowed values for shipping countries, and create one or more shipping rates to include in your link.

You can configure Payment Links to collect a phone number for shipping or invoicing. Only collect phone numbers if you need them for the transaction. When choosing this option, the payment page shows a required field to capture your customer’s phone number.

Collect business customer tax IDs

To display a customer’s tax ID and legal business name on invoices, enable tax ID collection on your Payment Links. Learn how to collect customer tax IDs with Checkout.

Collect taxes

Payment Links work with Stripe Tax to calculate and collect tax on your payments. Stripe Tax is a paid product that automatically calculates the tax on your transactions without the need to define the rates and rules.

Fees only apply after you’ve added at least one location where you’re registered to calculate and remit tax.

To get started, activate Stripe Tax in the Dashboard. Learn how to use products, prices, tax codes, and tax behavior to automatically calculate tax.

To enable automatic tax collection using the Dashboard:

  1. Create or edit a payment link.
  2. Select Collect tax automatically.

To accurately determine tax, Stripe Tax collects the customer’s billing address (full address for US customers).

Collect agreement to your terms of service

You can require that your customers accept your terms of service before completing their purchase. When your terms of service URL is set in your account’s Public details, you have the option to require a terms of service agreement when you create a payment link in the Dashboard. Enabling this setting requires that your customers click a checkbox to accept your terms in their checkout page. The checkout page also links to your Privacy policy when a URL to your Privacy policy is set your public details.

Add custom fields

Caution

Don’t use custom fields to collect personal, protected, or sensitive data, or information restricted by law.

You can add custom fields on the payment form to collect additional information from your customers. The information is available after the payment is complete and is useful for fulfilling the purchase. You can add the following types of fields.

TypeDescription
TextCollects freeform text up to 255 characters.
Numbers onlyCollects only numerical values up to 255 digits.
DropdownPresents your customers with a list of options to select from. Payment links created through the Dashboard support up to 10 options. You can add up to 200 options after you create a link through the API.
  1. Click Add custom fields in the Options section.
  2. Select a type of field to add.
  3. Enter a label for the field.
  4. (Optional) Mark your field as required.

Labels for custom fields aren’t translated, but you can use the locale URL parameter to set the language of your payment link to match the same language as your labels.

After your customer completes the payment, you can view the fields on the payment details page in the Dashboard.

The custom fields are also sent in the checkout.session.completed webhook upon payment completion.

Automatically convert prices to local currencies

Enable Adaptive Pricing in the Stripe Dashboard in either test or live mode to let prices automatically convert to an international customer’s local currency depending on their location.

You can also set pricing manually for each currency using manual currency prices.

Save payment details for future use

Caution

Consult with your legal counsel or compliance team regarding saving and using payment details. For example, the European Data Protection Board issued guidance regarding the saving of payment details for faster future checkouts.

If you want to save the payment method information to provide returning customers an optional 1-click payment experience in the future, we recommend using Link.

To save payment details for a customer, select Save payment details for future use in the Advanced options section when you create a Payment Link.

Apply branding

You can customize the look and feel of the payment page in the Stripe Dashboard. Go to your branding settings to:

  • Upload a logo or icon
  • Customize the payment page’s background color, button color, font, and shapes

Learn more about custom fonts and font compatibility.

Use your own domain

If you have your own custom domain, you can add it in the Stripe Dashboard. Instead of Stripe-branded payment links (buy.stripe.com/), you can create links using your own subdomain (pay.example.com)

Note

Learn more about custom domains.

Set store policies and contact information

You can display your return, refund, and legal policies on the payment page in addition to your support contact information.

Go to the Checkout and Payment Links settings to configure the information you want to display.

Presenting this information can increase buyer confidence and minimize cart abandonment.

Customize checkout with URL parameters

URL parameters allow you to add additional context to your payment page and streamline checkout. Specify the language that appears during checkout, prefill an email address or promotional code for your customers, track campaigns, and streamline reconciliation.

You can configure URL parameters directly from the Stripe Dashboard, and use them in the query string of your payment link URL. From the payment links page, click a specific payment link, then click the dropdown menu on the Copy button to add URL parameters.

Here’s an example link with prefilled email, promotional code, and locale parameters.

https://buy.stripe.com/test_eVa3do41l4Ye6KkcMN?prefilled_email=jenny%40example.com&prefilled_promo_code=20off&locale=de
ParameterDescriptionSyntax

prefilled_email

Use prefilled_email to enter an email address on the payment page automatically. Your end customer can still edit this field, so the email you pass in for prefilled_email might not be the same email that your customer uses to complete the payment.

prefilled_email must be a valid email address. Invalid values are silently dropped and your payment page continues to work as expected.

We recommend encoding email addresses that you attach as URL parameters to reduce the risk of them not being passed through to your payment page.

prefilled_promo_code

Use prefilled_promo_code to enter a promotion code on the payment page automatically. Your customer can still edit this field, so the promotion code you pass in for prefilled_promo_code might not be the same promotion code that your customer uses to complete the payment.

You must also enable promotion codes on your payment link, or this parameter has no effect.

prefilled_promo_code must be composed of alphanumeric characters and can’t use any special characters. Promotion codes are case insensitive. Invalid values are silently dropped, and your payment page continues to work as expected.

localeUse locale to display your payment link in a specific language for your customers regardless of their location.View the complete list of all supported languages.

You can also use URL parameters to track payment links and related campaigns.

Limit customers to one subscription

You can redirect customers that already have a subscription to the customer portal or your website to manage their subscription. Learn more about limiting customers to one subscription.

Support free trials without collecting payment method details

For Payment Links that you create with a product that includes a free trial, you can allow customers to sign up for a subscription without providing their payment method details.

To configure trials without payment methods for Payment Links in the Dashboard:

  • When you create or edit a payment link with a subscription product, select Include a free trial. Then select Let customers start trial without payment method.
  • Set subscription email reminders to make sure that Stripe prompts your customer to add their payment information before the trial ends. Otherwise, Stripe pauses the trial.
Was this page helpful?
YesNo
Need help? Contact Support.
Join our early access program.
Check out our changelog.
Questions? Contact Sales.
LLM? Read llms.txt.
Powered by Markdoc
Related Guides
Faster checkout with Link
Products Used
Payments
Payment Links