See how customers can split payments across multiple cards
Drop-in widget for any website
<!-- Add to your checkout page -->
<script src="https://splitamount.com/widget.js"></script>
<div id="splitamount-checkout"
data-merchant-id="acct_merchant123"
data-amount="29999"
data-currency="usd">
</div>
<script>
// Listen for payment success
window.addEventListener('splitamount:success', (e) => {
console.log('Payment completed:', e.detail);
// Redirect to success page
window.location.href = '/success';
});
</script>For React/Next.js applications
import { MultiCardCheckout } from '@splitamount/react';
function CheckoutPage() {
return (
<MultiCardCheckout
merchantId="acct_merchant123"
amount={29999}
currency="usd"
onSuccess={(result) => {
console.log('Payment completed:', result);
// Handle success
}}
onError={(error) => {
console.error('Payment failed:', error);
// Handle error
}}
/>
);
}Custom implementation using our API
// 1. Create payment session
const session = await fetch('/api/payment-session', {
method: 'POST',
body: JSON.stringify({
merchant_id: 'acct_merchant123',
order_id: 'order_123',
total_amount: 299.99,
description: 'Your product'
})
});
// 2. Add payment methods
await fetch(`/api/payment-session/${sessionId}/payment-methods`, {
method: 'POST',
body: JSON.stringify({
payment_method_id: 'pm_card1',
allocated_amount: 150.00
})
});
// 3. Execute payment
const result = await fetch(`/api/payment-session/${sessionId}/execute`, {
method: 'POST',
body: JSON.stringify({ confirm: true })
});Customers complete purchases they couldn't afford with a single card
Customers spend 15% more when payment limits aren't a constraint
Flexible payment options increase customer satisfaction and loyalty