DocsInstallation

Installation

Learn how to install and set up PayKit in your React or Next.js project.

Installation

This guide will help you install and set up PayKit in your React or Next.js project.

Prerequisites

Before installing PayKit, make sure you have:

  • Node.js 18.0 or later
  • npm, yarn, or pnpm package manager
  • A React or Next.js project

Installing PayKit

Using npm

Using yarn

Using pnpm

Basic Setup

1. Wrap your app with PayKitProvider

2. Configure your payment providers

Environment Variables

Create a .env.local file in your project root and add your payment provider keys:

Next Steps

Now that you have PayKit installed, you can: