Skip to main content

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.

1. Install the SDK

2. Create a payment intent

3. Listen for the result via webhook

When the payment completes, Lyel Pay sends a payment.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

The component handles the phone/password form and OTP confirmation UI automatically.

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.