@paywithpull/checkout
v0.2.0
Published
Payment integration SDK for checkout pages
Readme
@paywithpull/checkout
Lightweight Preact-based checkout SDK for integrating Pull payments into customer websites.
Bundle Size: ~29KB (ESM & UMD)
Installation
npm install @paywithpull/checkoutUsage
import { Pull } from '@paywithpull/checkout';
// Initialize (defaults to production environment)
Pull.initialize({
checkoutKey: 'your-checkout-key'
});
// Or specify environment explicitly
Pull.initialize({
checkoutKey: 'your-checkout-key',
environment: 'local' // 'local' or 'production'
});
// Mount checkout button
Pull.mount({
elementId: 'checkout-button',
products: [{ id: 'prod_123', quantity: 1 }]
});