Skip to main content

Prerequisites

Before you begin, make sure you have:

Hedge Pay Account

API Credentials

Get your API key and Partner ID from the dashboard

Installation

Choose your preferred SDK:

Initialize the SDK

Step 1: Create a User

Every round-up account needs a user. Create one for your customer:

Step 2: Connect a Bank Account

Generate a link token for your user to connect their bank account:
For React applications, use our pre-built <BankConnection> component for the smoothest integration

Step 3: Configure Round-up Settings

Set up how round-ups should work for this user:

Step 4: Process a Transaction

When a transaction occurs, calculate and process the round-up:

Step 5: Listen for Webhooks

Set up webhooks to receive real-time updates:

Complete React Example

Here’s a full React component with round-ups:

Testing in Sandbox

The sandbox environment provides test bank accounts and simulated transactions. Use these test credentials:
  • Bank: Test Bank
  • Username: user_good
  • Password: pass_good

Next Steps

API Reference

Explore all available endpoints

Webhook Events

Learn about webhook events

Going to Production

Production deployment checklist

Security Best Practices

Secure your integration