DocsQuick Start

Quick Start

Get started with PayKit in minutes using the local provider.

Overview

This guide will help you create your first payment with PayKit using the local provider. We'll build a simple checkout flow that works seamlessly with any provider.

Prerequisites

Installation

Install the required packages:


Create Your API Route

Set up a webhook endpoint to handle payment events:


Configure PayKit

Create your PayKit instance with the local provider:


Create Your First Checkout

Add this to your component or API route:


Check Subscription Status

Create a page to display subscription information:


Test Your Integration

  1. Start your development server
  2. Navigate to your checkout page
  3. Complete a test payment
  4. Check your webhook logs
  5. Visit the subscription page to see the status

Next Steps