✅ 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:
⚠️ Make sure the domain embedding the iframe matches one of the entries in the allowed_domains list. Otherwise, the secure link will not load.