Theme configurations Guide

Payment Links & Theme Customization Guide

1. Understanding Style IDs

Style IDs are design templates for your payment links, allowing you to create different themes for different purposes - separate looks for your premium brand, holiday sales, or regional markets.

What you can customize in each theme:

  • Your brand's visual identity (colors, logos, backgrounds, button styles)

  • Custom messaging and terms & conditions

  • Display preferences (how forms behave)

  • Language preferences (we support 19+ languages including English, Hebrew, Arabic, Japanese, German, Spanish, Chinese, and more!)

Important: Custom terms and conditions can only be configured when using a custom domain for your payment links. By default, payment links are hosted on the Hyperswitch domain. To use custom domains and unlock the ability to set custom terms and conditions, please refer to our Setup Custom Domain guide.

How it works: When creating a payment link, simply specify which style ID you want to use (via the payment_link_config_id parameter), and your customers will see that themed experience.

Examples of Style IDs you might create:

  • brand-default - Your main brand theme

  • brand-premium - Elevated experience for premium customers

  • holiday-2024 - Special theme for seasonal promotions


2. Configuration Hierarchy & Cascading

Payment link configurations work in a flexible, cascading manner that gives you control at multiple levels:

Three levels of configuration:

  1. Default Style ID - Set at the business profile level

    • Applied to all payment links by default

    • Your baseline theme and settings

  2. Named Style IDs - Also configured at business profile level

    • Create multiple pre-defined themes (e.g., premium, holiday-2024, regional-eu)

    • Reference by name when creating payment links

  3. API configuration which overrides - Applied during payment link creation

    • Override any configuration for maximum granular control

    • Perfect for one-off customizations or special cases

How cascading works:

Default Style ID

Named Style ID (if specified in payment link creation)

API config overrides (if provided during creation)

Final Payment Link Appearance

Example workflow:

  1. Set your default theme at business profile level with your standard brand colors

  2. Create a holiday-sale style ID with special promotional colors

  3. When creating a payment link:

    • Use default: Don't specify any payment_link_config_id → gets default theme

    • Use named style: Specify payment_link_config_id: "holiday-sale" → gets holiday theme

    • One-off customization: Specify payment_link_config_id: "holiday-sale" AND provide API config overrides → gets holiday theme with your custom tweaks

This cascading approach means you can maintain consistency while having flexibility for special cases!


3. Smart Text Handling

The system works intelligently by default:

Out of the box, the payment link automatically:

  • Adapts text based on the purpose of the payment link (payment, authorization, or payment method storage)

  • Changes button text to match the transaction type

  • Translates everything into your customer's language automatically (across 19+ languages!)

Important consideration when customizing text:

If you decide to write your own custom text for terms and conditions, here's what changes:

  • 💡 The system will use your exact text across all scenarios

  • 🌍 Automatic translations stop working - you'll need to provide translations for each language you support

  • 📝 Automatic text inference is lost since a single text is configured for all transaction types

If you do customize text, here's a pro tip:

Write in a way that works for any scenario your customers might encounter:

  • Don't say: "By clicking Pay Now, you authorize..." (too specific - button might say something different!)

  • Instead say: "By submitting your payment information, you authorize..."

  • Or even better: "By completing this form, you authorize..."

Universal example that works everywhere:

"By submitting your payment information, you authorize [Your Business Name] to 
charge your payment method or store your payment details as applicable."

This works whether your customer is paying now, setting up a subscription, or just saving their card!


4. Choosing Your Approach

You have two ways to set up your payment link themes:

Option A: Keep It Simple

  • Use one universal theme with messaging that works for everything

  • Easier to manage and maintain

  • Consistent brand experience for all customers

  • Recommended for streamlined operations

Option B: Get Specific for Each Flow

  • Create different themes for different purposes:

    • payment-flow-theme - For regular purchases

    • authorization-flow-theme - For payment verification

    • storage-flow-theme - For saving payment methods

  • Use precise messaging for each scenario (like "By clicking 'Pay Now'..." for actual payments)

  • When creating a payment link, choose which theme fits that transaction

  • What to know: More control and precision, but more themes to keep updated

When specialized themes make sense:

  • You want different experiences for different flows (like a simpler look for quick payments vs detailed for subscriptions)

  • You're optimizing conversion rates and want to test different approaches

  • You have the resources to maintain multiple themes


5. Real-World Use Cases

Running multiple brands? Create a style ID for each brand (like brand-a-default, brand-b-default). When you create a payment link, just specify which brand's theme to use. Each brand keeps its own look and feel!

Operating in different regions? Set up region-specific themes (us-theme, eu-theme, apac-theme) with appropriate languages, currency displays, and localized messaging. Route your customers to the right theme based on where they are.

Planning a seasonal promotion? Create a special campaign theme (holiday-2024, summer-sale) that you can easily turn on for promotional periods and turn off when the campaign ends.


6. Handling Different Transaction Types

Payment links support three main transaction types. Here's the recommended messaging for each:

0 amount authorizations (doing 0 amount auth (CIT) for future MITs):

Universal messaging that works for this flow:

"By submitting your payment information, you authorize [Your Business Name] to 
charge your payment method or store your payment details as applicable."

Manual captures:

Authorization happens first, capture occurs later. Use messaging that acknowledges this two-step process:

"By submitting your payment information, you authorize [Your Business Name] to 
reserve and later capture payment from your payment method."

Normal payments (immediate capture):

Authorization and capture happen together. Use straightforward messaging about the immediate charge:

"By submitting your payment information, you authorize [Your Business Name] to 
charge your payment method."

Saving payment methods / Subscriptions:

Cover both storing credentials and future charges with universal language:

"By submitting your payment information, you authorize [Your Business Name] to 
charge your payment method or store your payment details as applicable."

Last updated

Was this helpful?