Process Payment
Wallets & Users
Process Payment
Process payments using cards, crypto, ACH, or wallet-to-wallet transfers with instant settlement
POST
Process Payment
Overview
Process a payment transaction using various payment methods including credit cards, bank transfers, cryptocurrency, or internal wallet transfers. This endpoint supports both one-time payments and authorizations. Powered by CoinFlow: This endpoint uses CoinFlow’s payment infrastructure for processing card, ACH, and crypto payments.Authentication
Request Body
Transaction amount in the smallest currency unit (cents for fiat, wei/lamports for crypto)Examples:
- USD:
10000= $100.00 - EUR:
5000= €50.00 - SOL:
1000000000= 1 SOL - USDC:
1000000= 1 USDC (6 decimals)
Three-letter currency code (ISO 4217) or crypto tickerSupported: USD, EUR, GBP, BTC, ETH, SOL, USDC, USDT
Payment method to useOptions:
card- Credit/debit cardach- ACH bank transfer (US only)wire- Wire transferwallet- Wallet-to-wallet transfercrypto- Direct cryptocurrency paymentapple_pay- Apple Paygoogle_pay- Google Pay
ID of a saved payment method (for card, ACH, bank transfers)Required for: card, ach, wallet methods when not using one-time tokens
Wallet ID to debit funds from (required for wallet-to-wallet transfers)
Wallet ID to credit funds to (required for wallet-to-wallet transfers)
Human-readable description of the transactionExample:
"Order #12345 - Premium Subscription"Custom key-value pairs to attach to the transactionExample:
Unique key to prevent duplicate transactions (recommended for all requests)Example:
"payment-order_12345-2025-11-18"Request Examples
Response
Unique transaction identifier
Transaction type:
deposit, withdrawal, transfer_in, transfer_out, payment, refund, fee, adjustmentCurrent status:
pending, processing, completed, failed, reversed, refunded, cancelledTransaction amount in smallest currency unit
Currency code
Processing fee charged
Net amount after fees (amount - fee)
Wallet debited (if applicable)
Wallet credited (if applicable)
Payment method used
Transaction description
Custom metadata attached
ISO 8601 creation timestamp
ISO 8601 completion timestamp (null if not completed)
Response Examples
Code Examples
Payment Methods Comparison
| Method | Processing Time | Settlement | Fees | Reversible | Geographic |
|---|---|---|---|---|---|
| Card | Instant | T+1 to T+3 | ~2.9% + $0.30 | Yes (chargebacks) | Global |
| ACH | 1-3 days | T+3 to T+5 | ~1% | Yes (returns) | US only |
| Wire | 1-3 days | Same day | $25 flat | No | Global |
| Wallet | Instant | Instant | 0% | No | Global |
| Crypto | 5-60 min | Instant | Network fees | No | Global |
| Apple Pay | Instant | T+1 to T+3 | ~2.9% + $0.30 | Yes | Global |
| Google Pay | Instant | T+1 to T+3 | ~2.9% + $0.30 | Yes | Global |
Error Codes
| Code | HTTP | Description | Action |
|---|---|---|---|
INSUFFICIENT_FUNDS | 402 | Not enough balance | Add funds or use different payment method |
CARD_DECLINED | 402 | Card issuer declined | Contact card issuer or try different card |
INVALID_PAYMENT_METHOD | 400 | Payment method not valid for currency | Use supported method |
PAYMENT_METHOD_NOT_FOUND | 404 | Payment method ID doesn’t exist | Verify payment method ID |
AMOUNT_TOO_SMALL | 400 | Below minimum amount | Increase amount (min $0.50) |
AMOUNT_TOO_LARGE | 400 | Exceeds limits | Split into multiple transactions |
DUPLICATE_TRANSACTION | 409 | Idempotency key already used | Use unique key or retrieve existing |
RATE_LIMIT_EXCEEDED | 429 | Too many requests | Implement backoff |
Webhooks
Transaction events trigger webhooks:Best Practices
1. Always Use Idempotency Keys
2. Handle Async Payments
Some methods (ACH, wire) are asynchronous:3. Implement Retry Logic
Related Endpoints
- List Transactions - View transaction history
- Get Transaction - Retrieve transaction details
- Refund Transaction - Process refunds
- Add Payment Method - Save payment methods
Support
Questions? Contact us:- Email: support@hedgepayments.com
- Discord: discord.gg/hedgepayments
- Status: status.hedgepayments.com

