Get started with HandyPay in your project. Choose your preferred installation method below.
Prerequisites
- Node.js 18 or higher
- A React project (Next.js, Vite, or Remix)
- Tailwind CSS configured in your project
CLI Installation
The fastest way to get started is using our CLI. It will automatically configure your project and install the necessary dependencies.
Terminal
npx handypay@latest initbash
Manual Installation
If you prefer to set things up manually, you can install the core package and configure it yourself.
Terminal
npm install @handypay/react
npm install @handypay/corebash
Configuration
After installation, you need to configure your environment variables and set up the provider in your app.
Environment Setup
Add these variables to your .env file
.env
NEXT_PUBLIC_HANDYPAY_KEY=your_public_key
HANDYPAY_SECRET_KEY=your_secret_keybash