Before you start
You’ll need:- A Lyel Pay account — create one here
- An API key from your dashboard → Settings → API Keys
No sandbox environment yet. Contact support@lyelpay.com to get test credentials while we set up the sandbox.
Option A — Node.js (recommended for backend)
1. Install the SDK
2. Create a payment intent
3. Listen for the result via webhook
When the payment completes, Lyel Pay sends apayment.completed event to your webhook endpoint.
Option B — Browser (JavaScript SDK)
1. Install
2. Full payment flow
Option C — React (drop-in form)
1. Install
2. Wrap your app and drop in the form
Next steps
Authentication
Understand API keys, JWT tokens, and when to use each.
Webhooks
Receive real-time events when payments complete or fail.
Error handling
Handle errors gracefully with typed error codes.