Skip to content

Quickstart

Every FeitPay API key is a live key and every payment is real. You can sign up, set up your organization and create a store right away. There is no approval step for your account, and live API keys, payment intents, checkout sessions and payouts are available from the start.

All examples use placeholders such as gp_live_YOUR_KEY and store_YOUR_STORE_ID. Never paste real secrets into code.

  1. Create an account. Sign up at https://app.feitpay.com/auth/sign-up and verify your email, then create an organization and a store. The setup checklist tells you what’s left before the next step.

  2. Check your store is live. There is no approval step for your account. Once the store exists, the setup checklist marks its live-mode steps complete. For what FeitPay does and doesn’t hold, see Regulatory status.

  3. Create a live API key under Integrate → API keys with the payments:write and payments:read scopes. The secret (gp_live_…) is shown once LIVE · after account activation. Keep it on your server.

  4. Register a webhook endpoint under Integrate → Webhooks, or with the API. Store the whsec_… signing secret; it is shown once. Endpoints belong to one environment, and live events are delivered only to endpoints registered in live mode.

  5. Create a payment intent.

    POST/v1/payment-intentslive · after account activation
    Terminal window
    curl -X POST https://api.feitpay.com/v1/payment-intents \
    -H "Authorization: Bearer gp_live_YOUR_KEY" \
    -H "Idempotency-Key: order-123" \
    -H "Content-Type: application/json" \
    -d '{
    "store_id": "store_YOUR_STORE_ID",
    "amount": "59.90",
    "currency": "EUR",
    "merchant_order_id": "order-123",
    "return_url": "https://merchant.example/thank-you"
    }'

    The response is a payment_intent with status: "created", livemode: true, an expires_at, a hosted checkout_url on https://checkout.feitpay.com and a processor object (name: "feitpay", custodial: true). Retrying the same request with the same Idempotency-Key returns the same intent. Leave allowed_networks out: live payments offer every asset the platform accepts, and the field is refused with allowed_networks_unsupported.

  6. The customer pays in the hosted checkout. Send the customer to checkout_url. The checkout opens an invoice in FeitPay’s payment processor and shows, for each accepted asset, an address, the exact amount calculated with the processor’s exchange rate and a QR code. The customer pays FeitPay’s wallet; the amount is credited to your custodial balance once the payment is complete.

  7. Watch the state machine. The intent moves awaiting_payment → detected → confirming → confirmed as FeitPay’s payment processor reports the invoice paid, confirmed and complete. The checkout, the dashboard and your webhook endpoint all see the same states.

  8. Verify the webhook and fulfil. Your endpoint receives payment.confirmed. Verify the signature over the raw body (see Verify webhook signatures), dedupe on event_id, and fulfil only when data.fulfillable is true — re-checking with GET /v1/payment-intents/{id} before an irreversible action.

Confirmed payments are credited to your custodial balance (GET /v1/balances). To withdraw, add an address under Finance → Payouts → Payout addresses (usable after a cooling-off period), and request a payout. A FeitPay operator reviews every payout before the platform’s hot wallet sends it. Payouts are switched separately from live payments, and if they are ever switched off, a payout request is refused with payouts_unavailable.

The repository ships runnable receivers that verify signatures and process each event once:

Example Port Run
examples/node-saas 4400 FEITPAY_WEBHOOK_SECRET=whsec_… pnpm --filter @feitpay/example-node-saas start
examples/go-webhook 4401 cd examples/go-webhook && FEITPAY_WEBHOOK_SECRET=whsec_… go run .
examples/python-shop 4402 FEITPAY_WEBHOOK_SECRET=whsec_… python examples/python-shop/shop.py