Configurations
Configure Payment Links UI
Note: Payment Links can currently only be configured via APIs. Configuration through the HyperSwitch dashboard is under development, and this section will be updated once it is available.
Available configurations
UI configurations
Payment link UI can be configured at a business profile level and the same configuration will be used when payment links are created for that profile. This UI can be configured during payment links creation as well, doing this overrides any configuration that was set in the business profile.
Primary color
The primary color of the payment link UI can be set using the theme
field in the configuration. This color is represented as a hex value.
Example: #2167AE
Merchant logo
You can display a custom logo in the details section of the payment links by providing a URL.
Example: https://hyperswitch.io/favicon.ico
Merchant name
Customize the display name shown in the details section of the payment links.
Example: HyperSwitch Inc.
Dynamic details
Include a list of key-value pairs in the details section of payment links. This list can be customized with optional configurations for each entry.
Note: The list is displayed in the specified order. Use the position attribute to control the sequence of entries.
Example:
Background image
Customize the details section with a background image.
Example:
The url specifies the image source, while position and size define its placement and scaling.
For available options, refer to the API reference here.
Details section layout
Choose a layout for the details section of the payment links.
Please reach out to our Support for adding any custom layouts needed for this.
SDK layout
Configure layout for the payment widget of the payment links. For a list of available options, refer to this section - SDK layouts.
Render only payment widget
Set a boolean value to render only the payment widget in the payment links. Defaults to false.
Saved payment methods
Enable rendering of saved payment methods and allow customers to save new ones in the payment widget. This is available only for secure payment links.
Hide card nickname input
Toggle the visibility of the card nickname input field in the payment widget.
Show card form by default
Set a boolean value to control the default form rendered in the payment widget. Enabling this shows the card payment form by default when a payment link is opened.
Payment button text
Customize the text displayed on the "Pay Now" button in the payment widget.
Other configurations
These configurations can only be made at business profile level and cannot be overridden during payment links creation.
Domain name
A custom domain for hosting payment links.
Note: custom domains must be enabled before setting the custom domain name. Refer to this section for setting up custom domain names - custom domain name for payment links.
Multiple style IDs
This is for configuring multiple styles. This is a key value pair where key represents the style ID and value is the UI configurations which were mentioned above.
Example:
Style IDs are used during payment link creation, which can be specified using payment_link_config_id
in the create request.
Allowed domains
This is a list of trusted domains where payment links can be embedded in an iframe. This is used only for secure payment links. More info on secure links here.
Example: ["localhost:5500", "my.custom.domain.com"]
Branding visibility
A boolean value for toggling the visibility of HyperSwitch branding in the payment links.
Configure Payment links in business profile
Use the API to configure payment link settings at the business profile level. These settings are automatically applied to any payment link created for the associated profile.
Refer to API reference for updating business profile here.
List of defaults for the payment link UI config
Next step:
Create Payment LinksLast updated