Skip to main content
Follow this guide when you want your server to create Kyren Pay checkout sessions through the API. If you want to learn the dashboard first, start with Dashboard overview.

Prerequisites

  • A Kyren Pay merchant account (sign up here)
  • Your API key (found in the Developer section of your dashboard)
  • A product created in the dashboard or through the Products API
  • A server-side environment where your API key can be stored securely
  • A Webhook endpoint for payment notifications before you go live

Step 1: Get your API Key

After signing up, navigate to Dashboard > Developer and copy your API key.
  • Live key: kyren_live_xxxxxxxxxxxx — use this for production
Keep your API keys secure. Never expose them in client-side code or public repositories.

Step 2: Create a Product

Create a product that represents what you’re selling:
Save the id from the response — you’ll need it to create checkout sessions.

Step 3: Create a Checkout Session

When a customer wants to pay, create a checkout session:
Use displayMerchantName when this checkout should show a campaign, store, or app name that differs from your account name. The response includes a url field — redirect your customer to this URL to complete payment.

Step 4: Redirect to Checkout

Redirect the customer to the checkout URL returned in Step 3. They will see a hosted payment page where they can choose their preferred payment method.

Step 5: Handle the Webhook

After payment is completed, Kyren Pay sends a webhook to your server:
Configure your webhook URL in Dashboard > Developer > Webhook Settings.

What’s Next?

Authentication

Learn about API authentication in detail

Webhook Signatures

Implement secure webhook verification

Testing

Test safely with Kyren-issued staging credentials or low-risk live checks

Code Examples

See examples in Python, Node.js, Go, and more