Getting Started
Integrate CasPay into your application in 5 minutes
What is CasPay?
CasPay is a modern payment gateway built on the Casper Network blockchain. It enables businesses to accept cryptocurrency payments securely and efficiently with support for both one-time payments and recurring subscriptions.
Key features:
Blockchain-Powered
Built on Casper Network for secure, transparent, and immutable transactions
Easy Integration
Simple SDK and REST API with comprehensive documentation and examples
Flexible Payment Options
Support for one-time payments, subscriptions, and custom billing intervals
Real-time Webhooks
Stay synchronized with payment events through secure webhook notifications
Prerequisites
API Key
Get your API key from merchant page
Casper Wallet
Users need Casper wallet extension
Installation
# Via npm
npm install @caspay/sdk
# Via CDN
<script src="https://cdn.jsdelivr.net/npm/@caspay/sdk"></script>
Quick Start
import CasPay from '@caspay/sdk'; // Initialize const caspay = new CasPay({ apiKey: 'your_api_key', environment: 'testnet' }); // Create payment const payment = await caspay.payments.create({ productId: 'prod_123', amount: 100, currency: 'CSPR' });