After receiving aDocumentation Index
Fetch the complete documentation index at: https://docs.fortepayments.io/llms.txt
Use this file to discover all available pages before exploring further.
data object from either a payment intent or a KYC request, embed and initialize the widget in your page.
Step 1 — Embed the Widget Script
Add a container<div> and a <script> tag inside your <body>.
| Environment | CDN URL |
|---|---|
| Sandbox | https://payments.sandbox.lemmax.com/forte-payments-widget.js |
| Production | https://payments.prod.lemmax.com/forte-payments-widget.js |
SRI Compliance (Recommended)
If your application enforces a Content Security Policy with Subresource Integrity, fetch the versioned filename and integrity digest from the manifest endpoint first. Fetch the manifestdata.file_name to construct the src URL, and data.integrity.digest as the integrity attribute on the <script> tag.
Fetch the manifest on every new widget session. This ensures the
integrity digest matches the version currently being served from the CDN.Step 2 — Initialize the Widget
After embedding the widget script, initialize it by passing the fulldata object from your intent response. Add this <script> tag outside of <body>.
The widget session expires after 30 minutes of inactivity. If the session expires, re-initiate the intent and re-initialize the widget.
Next Steps
Payment Events
Handle client-side events from the Payments widget
Compliance Events
Handle client-side events from the Compliance widget