1.0.0 • Published 7 months ago
@ic-pay/sdk v1.0.0
IC Pay SDK for JavaScript/TypeScript
Official SDK for integrating IC Pay blockchain payments into your application.
Installation
npm install @icpay/sdkQuick Start
import { ICPay } from '@icpay/sdk';
const icpay = new ICPay({
apiKey: 'your_api_key_here',
network: 'mainnet' // or 'testnet' for testing
});
// Create a payment
const payment = await icpay.payments.create({
amount: 100_00000000, // 100 ICP
token: 'ICP',
description: 'Premium subscription'
});
console.log('Checkout URL:', payment.checkoutUrl);Documentation
Full documentation available at: https://docs.icpay.com
1.0.0
7 months ago