Introduction to AccruPay
AccruPay is a modern payment processing platform that simplifies online payment integrations. Built with TypeScript and GraphQL, it provides a powerful API and SDK for managing transactions, payment methods, and payment plans.
Features
Core Capabilities
- Transaction Management - Process payments, refunds, voids, and track transaction history
- Payment Sessions - Secure client-side payment processing with provider integration
- Stored Payment Methods - Save and reuse customer payment methods
- Payment Plans - Create and manage recurring payments and subscriptions
- Multi-Provider Support - Integrate with multiple payment providers (Nuvei, etc.)
- Merchant Portal - Complete merchant management and user system
Developer Experience
- Type-Safe - Built with TypeScript for full type safety
- GraphQL API - Flexible querying with a self-documenting schema
- Node.js SDK - Official SDK for Node.js applications
- Comprehensive Error Handling - Detailed error messages and handling callbacks
- Multiple Environments - Support for production and QA environments
Quick Start
Get up and running in minutes:
import AccruPay, { TRANSACTION_PROVIDER, CURRENCY, COUNTRY_ISO_2 } from '@accrupay/node';
const sdk = new AccruPay({
apiSecret: 'your-api-secret',
environment: 'production',
});
// Start a payment session
const session = await sdk.transactions.clientSessions.payments.start({
transactionProvider: TRANSACTION_PROVIDER.NUVEI,
data: {
amount: 10000n, // $100.00 in cents
currency: CURRENCY.USD,
merchantInternalCustomerCode: 'customer-123',
merchantInternalTransactionCode: 'txn-456',
billing: {
billingFirstName: 'John',
billingLastName: 'Doe',
billingEmail: 'john@example.com',
billingAddressCountry: COUNTRY_ISO_2.US,
},
storePaymentMethod: false,
},
});
What's Next?
- Getting Started - Learn how to install and configure AccruPay
- API Reference - Explore the GraphQL API endpoints
- SDK Reference - Discover the Node.js SDK methods
- Guides & Tutorials - Follow step-by-step integration guides
Learn More
- Visit our GitHub for code and examples
- Check our website for more information
- Contact support@accru.co for assistance