This guide walks you through embedding the SpherePay Ramp Widget in your web application. The setup requires no package installation — you import a hosted script, add a container element, and initialize the widget with your application ID.Documentation Index
Fetch the complete documentation index at: https://docs.spherepay.co/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- A SpherePay merchant account. Request access if you do not have one.
- Your Merchant Application ID from the Settings page of your SpherePay dashboard.
Setup
Add a container element to your HTML
Add a
<div> element to your page where you want the widget to appear. Give it an ID you’ll reference during initialization.Import the Ramp Widget script
Add a
<script> tag in your <head> that points to the hosted Ramp Widget bundle. Set the onload attribute to call your initializer function once the script loads.Full example
Here is a minimal HTML page that embeds the Ramp Widget:RampWidget constructor properties
| Property | Type | Required | Description |
|---|---|---|---|
containerId | string | Yes | The id of the HTML element where the widget mounts. |
applicationId | string | Yes | Your Merchant Application ID from the SpherePay Settings page. |
theme | object | No | Customizes the widget’s colors, border radius, and logo. See Theming. |
debug | boolean | No | Enables debug mode for inspecting widget behavior. Disable before production. |
customerSupport | string | No | URL or email to surface as a customer support contact inside the widget. |
allowKyb | string | No | Controls whether business customer KYB onboarding is allowed in the widget. |
Debug mode
Debug mode lets you inspect the widget’s behavior and explore customization options. To enable it, passdebug: true to the constructor:
?debug=true to the URL.
Next steps
- Customize the appearance — apply colors, border radius, and a custom logo to match your brand

