Getting Started

This guide will walk you through setting up xAPI-Fi in your development environment.

Prerequisites

Before you begin, make sure you have:

  • Node.js 18+ installed
  • npm or yarn package manager
  • A Web3 wallet (for testing payments)
  • Basic knowledge of TypeScript/JavaScript

Installation

Choose your preferred package manager:

terminal
npm install @xapi-fi/sdk

Get Your API Key

  1. Visit xapi-fi.com/dashboard
  2. Connect your wallet using Privy
  3. Navigate to Settings → API Keys
  4. Create a new API key for your project

Configure Environment Variables

Create a .env file in your project root:

terminal
XAPI_FI_KEY=your_api_key_here

Next Steps