Secure Payment Links are designed to be embedded within an iframe hosted on a trusted domain. These links are not accessible directly in a browser tab and are ideal for use cases where users need a secure and contained environment, such as saving payment methods.Documentation Index
Fetch the complete documentation index at: https://docs.switch.vaultera.co/llms.txt
Use this file to discover all available pages before exploring further.
✅ How Secure Payment Links Work
When secure payment links are enabled:-
Two URLs are returned:
- An open link: usable in standard browsers.
- A secure link: intended for embedding within an iframe.
-
The domain hosting the iframe must match one of the trusted domains configured in your business profile’s
allowed_domainslist.
🔧 Step 1: Configure allowed_domains in Business Profile
To enable secure payment links, first set up the list of trusted domains (e.g., localhost:5500):
🧾 Step 2: Create a Payment Link
Once the trusted domains are configured, create a payment link using the standard Payments Create API. This response will include both open and secure versions of the link.🖼️ Step 3: Embed Secure Link in an iframe
To display the secure link within your app or website, embed it in an<iframe> like so: