Skip to main content
This guide walks you through a complete payment integration using a Node.js backend as an example. The same concepts apply to any programming language.

Choose your setup path

  • Use the dashboard guide if you want to create products and review orders manually first.
  • Use the API guide if your application should create checkout sessions from your server.
Related pages:

Overview

1. Set Up Your Server

Install the required dependencies:
Create your server file:

2. Create a Product (One-Time Setup)

You only need to create a product once. You can do this via the API or the Dashboard.

3. Create Checkout Endpoint

Add an endpoint that creates a checkout session when the customer clicks “Buy”:

4. Handle the Frontend Redirect

On your frontend, redirect the customer to the checkout page:

5. Handle Webhooks

Add a webhook endpoint to receive payment notifications:

6. Start the Server

Run your server:

7. Test the Flow

  1. If Kyren has issued staging credentials or enabled a test-capable gateway for your merchant account, run the flow with those credentials and the payment scenarios Kyren provides.
  2. If you only have live credentials, verify the flow with a low-risk real payment in production.
  3. Confirm your customer is redirected to the Kyren Pay checkout page.
  4. Confirm your server receives the payment Webhook and that your fulfillment logic handles the event correctly.
  5. If you used a real payment for verification, refund or handle it operationally according to Kyren support guidance if needed.
Your integration is ready when checkout creation, redirect handling, Webhook receipt, and fulfillment have all been verified with the credentials and gateway Kyren has enabled for your account.

Next Steps

Webhook Events

See all available webhook event types

Code Examples

See integration examples in other languages