> ## Documentation Index
> Fetch the complete documentation index at: https://docs.straddle.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Payments overview

> Learn how charges, payouts, and funding events work together in Straddle to power ACH bank payments, settlements, and reconciliation for your platform.

Straddle's payment system provides a unified API for moving money between your platform and your customers' bank accounts. This guide covers the core concepts and workflows for processing payments through Straddle.

> [!NOTE]
>
> Before processing payments, you'll need to have [verified customers](https://docs.straddle.com/guides/identity/customers.md) and [connected bank accounts](https://docs.straddle.com/guides/bridge/overview.md) set up through Straddle's Identity and Bridge services.

## Core payment concepts

Straddle organizes payment operations into three primary concepts:

> [card] [Charges](https://docs.straddle.com/guides/payments/charges.md)
>
> Collect money from your customers' bank accounts

> [card] [Payouts](https://docs.straddle.com/guides/payments/payouts.md)
>
> Send money to your customers' bank accounts

> [card] [Funding Events](https://docs.straddle.com/guides/payments/funding.md)
>
> Track money movement between Straddle and your business

### Understanding the flow

When you process payments through Straddle:

1. **Charges** pull money from customer accounts into Straddle's network
2. **Payouts** push money from Straddle's network to customer accounts
3. **Funding Events** represent the settlement of these transactions to your business bank account

## Payment rails

Straddle automatically optimizes payment routing across multiple rails to balance speed, cost, and reliability. You don't need to specify which rail to use. Straddle selects the optimal option automatically:

> [accordion] ACH (Automated Clearing House)
>
> **Processing Time**: 1-3 business days
>
> **Use Cases**:
>
> * Standard recurring payments
> * High-value transactions
> * Batch processing
>
> **Characteristics**:
>
> * Lower cost per transaction
> * Higher daily limits
> * Reversible for up to 60 days

> [accordion] RTP (Real-Time Payments)
>
> **Processing Time**: Seconds
>
> **Use Cases**:
>
> * Instant disbursements
> * Time-sensitive payments
> * Enhanced customer experience
>
> **Characteristics**:
>
> * 24/7/365 availability
> * Irrevocable once completed
> * Maximum \$1 million per transaction

> [accordion] FedNow
>
> **Processing Time**: Seconds
>
> **Use Cases**:
>
> * Government payments
> * Instant settlement needs
> * Critical payment flows
>
> **Characteristics**:
>
> * Federal Reserve operated
> * 24/7/365 availability
> * Enhanced security and compliance

> [accordion] Same Day ACH
>
> **Processing Time**: Same business day
>
> **Use Cases**:
>
> * Urgent business payments
> * Payroll disbursements
> * Time-sensitive refunds
>
> **Characteristics**:
>
> * Multiple processing windows daily
> * Business days only
> * Higher limits than standard ACH

## Quick start example

Here's a complete payment flow from customer creation to fund settlement:

**1. Create a verified customer**

First, onboard your customer through Straddle's Identity service:

```bash theme={null}
curl --request POST \
  --header 'Authorization: Bearer YOUR_SECRET_API_KEY' \
  --url https://sandbox.straddle.com/v1/customers \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Ron Swanson",
  "type": "individual",
  "email": "user@example.com",
  "phone": "+12128675309",
  "device": {
    "ip_address": "192.168.1.1"
  }
}'
```

**2. Connect a bank account**

Use Bridge to securely link the customer's bank account and generate a paykey:

```bash theme={null}
curl --request POST \
  --header 'Authorization: Bearer YOUR_SECRET_API_KEY' \
  --url https://sandbox.straddle.com/v1/bridge/plaid \
  --header 'Content-Type: application/json' \
  --data '{
  "customer_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
  "plaid_token": "<string>"
}'
```

This returns a session for the customer to complete bank authentication, resulting in a `paykey`.

**3. Create a charge**

Use the paykey to charge the customer:

```bash theme={null}
curl --request POST \
  --header 'Authorization: Bearer YOUR_SECRET_API_KEY' \
  --url https://sandbox.straddle.com/v1/charges \
  --header 'Content-Type: application/json' \
  --data '{
  "paykey": "<string>",
  "description": "Monthly subscription fee",
  "amount": "10000",
  "currency": "<string>",
  "payment_date": "2019-12-27",
  "consent_type": "internet",
  "device": {
    "ip_address": "192.168.1.1"
  },
  "external_id": "<string>",
  "config": {
    "balance_check": "required"
  }
}'
```

> [!NOTE]
>
> All fields shown are required. See the [charges guide](https://docs.straddle.com/guides/payments/charges.md) for complete parameter documentation.

**4. Monitor the payment**

Track the charge status through [webhooks](https://docs.straddle.com/webhooks/overview/events.md):

* `created` → Payment initiated
* `scheduled` → Queued for processing
* `pending` → Sent to payment network
* `paid` → Successfully completed

See [payment statuses](https://docs.straddle.com/guides/payments/statuses.md) for complete lifecycle details.

**5. Reconcile funding**

View the corresponding funding event once the payment settles:

```bash theme={null}
curl -X GET https://api.straddle.com/v1/funding?charge_id=ch_abc123 \
  -H "Authorization: Bearer YOUR_API_KEY"
```

Learn more about [funding and reconciliation](https://docs.straddle.com/guides/payments/funding.md).

## Payment security

Straddle implements multiple layers of security for payment processing:

> [card] Transaction Monitoring
>
> Real-time fraud detection and risk scoring on every transaction

> [card] Balance Verification
>
> Optional pre-transaction balance checks to reduce NSF returns

> [card] Velocity Controls
>
> Configurable limits on transaction amounts and frequency

> [card] Hold & Review
>
> Ability to pause suspicious transactions for manual review

## Common workflows

### Recurring subscriptions

Process regular charges using stored paykeys:

* Store customer paykeys after initial authentication
* Create charges on your billing schedule
* Handle failures and retries automatically
* Update payment methods when needed

### Marketplace payouts

Distribute funds to your sellers or service providers:

* Verify recipient identity and bank accounts
* Create payouts with detailed descriptions
* Track payout status and handle failures
* Reconcile platform fees and net settlements

### Instant transfers

Provide immediate fund availability:

* Use RTP rail for sub-second processing
* Verify account eligibility for instant payments
* Handle fallback to standard ACH if needed
* Communicate clear timing to customers

## Testing payments

Straddle provides comprehensive sandbox testing capabilities:

* **Deterministic outcomes** - Control payment success/failure scenarios
* **Accelerated processing** - Payments process in minutes instead of days
* **Webhook simulation** - Test your event handling logic
* **Error scenarios** - Simulate NSF, closed accounts, and returns

See [sandbox testing guide](https://docs.straddle.com/guides/resources/sandbox-paybybank.md) for detailed examples.

## Next steps

> [card] [Process Charges](https://docs.straddle.com/guides/payments/charges.md)
>
> Learn to collect payments from customers

> [card] [Send Payouts](https://docs.straddle.com/guides/payments/payouts.md)
>
> Understand disbursing funds to customers

> [card] [Payment Statuses](https://docs.straddle.com/guides/payments/statuses.md)
>
> Master payment lifecycles and status flows

> [card] [API Reference](https://docs.straddle.com/api-reference/charges/create.md)
>
> Explore the complete API documentation


## Related topics

- [Payment status and lifecycle reference](https://docs.straddle.com/guides/payments/statuses.md)
- [Identity verification overview](https://docs.straddle.com/guides/identity/overview.md)
- [Bridge API overview](https://docs.straddle.com/guides/bridge/overview.md)
- [Straddle Embed for platforms overview](https://docs.straddle.com/guides/embed/overview.md)
- [Pay by Bank: account-to-account payments](https://docs.straddle.com/guides/paybybank.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.