Get Started
This guide will help you get started with SpherePay.
Introduction
Learn how to embed a pre-built transfer user interface in your website to accept on/off ramps from your customers. We'll walk you through using our Ramp Widget solution, which manages the on/off ramp process.
Overview
SphereRamp simplifies the process of adding Sphere's comprehensive feature set to merchant applications. It provides everything needed right away, making the setup process effortless for engineers and eliminating the need for direct API connections.
Additionally, SphereRamp takes care of regulatory, security, and privacy concerns on behalf of the merchants.
Everything happens within the widget and Sphere's infrastructure, providing a secure and compliant service environment.
How it works
SphereRamp is hosted on a CDN as a JavaScript bundle.
Installation comes down to initializing the widget within your app adding the associated HTML element ID to the target element.
The following quickstart will show you everything you need to integrate.
Before you start
Make sure you have an account with SpherePay.
Visit the Settings page and copy the Merchant Application Id
Live Testing
Important
Although designed for experimentation, the SphereRamp widget loaded under the special /_ramp route is still connected to our production environment.
You can experiment with SphereRamp without writing any code. Just visit the RampDemo page and provide your application ID as the applicationId query parameter.
You can even enable the Debug Mode by adding debug=true as an extra parameter.
Setup
-
Import the SphereRamp script into your application.
-
Add a
script
tag that points to the SphereRamp's bundled source code URL. -
Ensure you have a root HTML element in place for SphereRamp to mount on.
-
-
Assign an
onload
property to the script tag to call a function that initializes the widget. -
Implement the initializer function.
SphereRamp Properties
The SphereRamp
constructor accepts the following properties:
Prop | Type | Default |
---|---|---|
containerId | string | string |
applicationId | string | string |
theme? | object | {} |
debug? | boolean | - |
customerSupport? | string | string |
allowKyb? | string | string |
Debug mode
Only for Development
Ensure this option is disabled before deploying to production.
SphereRamp provides a debug
mode for inspecting the application's behavior and exploring customization options.
To enable debug
mode, pass debug: true
to the configuration object of the SphereRamp instance:
You then should be able to see the debugger beneath the widget:
Further customization
SphereRamp allows merchants to comprehensively customize the look and feel of the widget, as well as branding assets such as the logo on the top left of it.
To start customizing, simply pass the theme
property to the configuration object. See Theming for all the available options.
Theming
Give SphereRamp the look and feel of your application.
Getting started
SphereRamp enables merchants to easily customize the widget to match their application's appearance. You do so by creating a theme
object and including it in the SphereRamp instance's configuration.
API Reference
Example
Last updated on