npm install @vegaci_shared/vsplit-payment-gatewayimport { VSplitPaymentGateway } from '@vegaci_shared/vsplit-payment-gateway';
// Initialize the gateway
const gateway = new VSplitPaymentGateway({
stripePublishableKey: 'pk_test_...',
environment: 'sandbox',
currency: 'usd'
});
// Configure split payment
const splitConfig = {
splits: [
{
amount: 8500, // $85.00
label: 'Merchant Revenue',
recipient: 'merchant_account_id'
},
{
amount: 1500, // $15.00
label: 'Platform Fee',
recipient: 'platform_account_id'
}
]
};
// Process the payment
await gateway.processSplitPayment(splitConfig);Split payments across unlimited recipients with custom amounts or percentages.
Full TypeScript support with comprehensive type definitions and IntelliSense.
Pre-built React components and hooks for seamless integration.
Built on Stripe's secure infrastructure with PCI compliance included.
Simple 2-way split between merchant and platform fee.
View Demo →3-way split between restaurant, driver, and platform.
View Demo →Multi-vendor marketplace with complex split logic.
View Demo →Additional demos coming soon: Freelance, Events, and Custom.
Coming Soon