- An AcountPay account – You’ll need your Client ID from the merchant dashboard
- A supported environment – JavaScript/TypeScript (browser or Node.js), React optional
Installing AcountPay SDK
Choose from multiple installation methods based on your setup.Quick Start (Recommended)
For fastest setup, use our CDN:Package Manager Installation
NPM Installation
Yarn Installation
Usage Methods
ES Module Import
ES Module Import
CDN Script Tag (Recommended)
CDN Script Tag (Recommended)
NPM Package UMD Build
NPM Package UMD Build
Unpkg CDN
Unpkg CDN
Platform-Specific Integration
E-commerce Platforms
- Shopify
- WooCommerce
Method 1: Simple Product/Cart Page IntegrationMethod 2: Checkout Integration (Advanced)For checkout page integration, you’ll need Shopify Plus or use checkout extensibility:Configuration Steps:Important Notes:
- Go to Online Store → Themes → Actions → Edit code
- Find
theme.liquidand add the SDK before</head>:
- Create a new snippet file
snippets/acountpay-button.liquid:
- Add AcountPay settings to your theme:
config/settings_schema.json and add this section:- Add the button to product pages by editing
sections/product-form.liquid:
- Add to cart page by editing
templates/cart.liquid:
- Create
checkout.liquid(Shopify Plus only):
- Go to Online Store → Themes → Customize
- Navigate to Theme settings → AcountPay Settings
- Enter your Client ID and enable AcountPay
- Save and test with a product
pages/payment-success.liquid:- Test thoroughly before going live
- Consider inventory management for successful payments
- Set up webhooks to handle order fulfillment
- This integration works alongside existing payment methods
Frontend Frameworks
- React
- Vue.js
- Next.js
- Angular
Installation:Implementation:Environment Variables:
Package Information
Contents
Contents
- Core payment flow utilities
- TypeScript definitions
- ESM/CJS/UMD builds for broad compatibility
- No embedded UI components (integrates with your existing design)
Browser Support
Browser Support
- Modern browsers with ES6 support
- Chrome 60+, Firefox 60+, Safari 12+, Edge 79+
Bundle Sizes
Bundle Sizes
- UMD: ~15KB gzipped
- ESM: ~12KB gzipped
- No external dependencies
Environment Variables
For framework integrations, set up environment variables:- React
- Vue.js
- Next.js
- Angular
Important Notes
Global Constructor Name
Global Constructor Name
- NPM/ESM: Import as
AcountPay - UMD/Script Tag: Global constructor is
Acount(notAcountPay)
Client ID Setup
Client ID Setup
- Get your Client ID from AcountPay merchant dashboard
- Use sandbox Client ID for testing
- Switch to production Client ID for live payments
Version Pinning
Version Pinning
For production, pin to specific versions:
Next Steps
- Get Client ID: Sign up at merchant.acountpay.com
- Test Integration: Use sandbox Client ID for testing
- Go Live: Switch to production Client ID

