ckPay SDK
This is the official Javascript SDK for ckPay, a decentralized payment processing solution built on the Internet Computer.
Installation
npm install ckpay-sdk
Usage
import { PaymentModal, openPaymentModal, closePaymentModal } from 'ckpay-sdk';
openPaymentModal({
canisterId: 'ryjl3-tyaaa-aaaaa-aaaba-cai',
productId: 'prod_123',
theme: { primary_color: '#3b82f6' },
containerId: 'ckpay-modal-container'
});
closePaymentModal();
Features
- Multi-token support (ICP, ckBTC, ckETH, etc.)
- Seamless payment modal integration
- Subscription and recurring payment management
- Coupon and discount functionality
- Secure and decentralized payment processing
For more information, please visit the ckPay website (coming soon).