WebSDK Integration

This method is the fastest way to integrate the OSL Pay on-ramp.

Introduction

This method is the fastest way to integrate the OSL Pay on-ramp. It provides a link that includes your registered appId as a parameter, which directs users to the OSL Pay WebSDK for KYC verification and transaction processing.

OSL Pay will synchronize user identity information and transaction details in real time via webhooks. You can either redirect users directly to the OSL Pay WebSDK page or embed the page within your application using an iFrame for a smoother user experience.

Glossary

Traditional merchants

Operate via centralized payment channels (e.g., bank cards, third-party payment platforms). Users complete purchases without blockchain knowledge, similar to e-commerce checkouts.

Web3 merchants

A merchant that supports decentralized finance (Web3) payments. Transactions are conducted on blockchain networks, allowing users to pay directly using decentralized wallets and digital assets. These merchants require on-chain identity verification, KYC/AML compliance, and wallet binding within the payment flow to ensure regulatory compliance and transaction security.

Get Started

After contacting your account manager and signing the contract, you will receive the integration information from your manager.

Workflow overview

KYC-related process


Workflow overview

When using the WebSDK integration, OSL Pay executes different flows based on provided parameters. The main scenarios are as follows:

  1. Standard flow: Users log in with their email, complete KYC verification, and finalize payment within the OSL Pay WebSDK.
  1. Seamless login (no email required): Users can enter the WebSDK directly without email login, greatly improving user experience.
  1. Web3 merchant standard flow: The flow is similar to the standard flow but requires an additional merchantUser parameter, which binds to the user’s login email on their first interaction. After KYC completion, the bound email information is sent to the merchant via webhook.
  1. Web3 merchant authorization flow: If a Web3 merchant cannot perform email verification, then they can use this flow for email verification and authorization.

Security note When passing address, merchantUser, or redirectUrl via URL parameters, they must be signed to ensure security.

Access token for seamless login To use the no-email login flow, you need to obtain an accessToken via OpenAPI.

Flowchart