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.
-
Create an account. Sign up at
https://app.feitpay.com/auth/sign-upand verify your email, then create an organization and a store. The setup checklist tells you what’s left before the next step. -
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.
-
Create a live API key under Integrate → API keys with the
payments:writeandpayments:readscopes. The secret (gp_live_…) is shown once LIVE · after account activation. Keep it on your server. -
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. -
Create a payment intent.
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"}'import { FeitPay } from '@feitpay/sdk';const gp = new FeitPay({ apiKey: process.env.FEITPAY_API_KEY!, baseUrl: 'https://api.feitpay.com' });const intent = await gp.paymentIntents.create({store_id: 'store_YOUR_STORE_ID',amount: '59.90',currency: 'EUR',merchant_order_id: 'order-123',return_url: 'https://merchant.example/thank-you',},{ idempotencyKey: 'order-123' },);console.log(intent.status, intent.checkout_url);client, err := feitpay.New(os.Getenv("FEITPAY_API_KEY"), feitpay.WithBaseURL("https://api.feitpay.com"))if err != nil {log.Fatal(err)}intent, err := client.PaymentIntents.Create(ctx, &feitpay.PaymentIntentCreateParams{StoreID: "store_YOUR_STORE_ID",Amount: "59.90",Currency: "EUR",MerchantOrderID: "order-123",ReturnURL: "https://merchant.example/thank-you",IdempotencyKey: "order-123",})import osfrom feitpay import FeitPaygp = FeitPay(api_key=os.environ["FEITPAY_API_KEY"], base_url="https://api.feitpay.com")intent = gp.payment_intents.create(store_id="store_YOUR_STORE_ID",amount="59.90",currency="EUR",merchant_order_id="order-123",return_url="https://merchant.example/thank-you",idempotency_key="order-123",)print(intent["status"], intent["checkout_url"])The response is a
payment_intentwithstatus: "created",livemode: true, anexpires_at, a hostedcheckout_urlonhttps://checkout.feitpay.comand aprocessorobject (name: "feitpay",custodial: true). Retrying the same request with the sameIdempotency-Keyreturns the same intent. Leaveallowed_networksout: live payments offer every asset the platform accepts, and the field is refused withallowed_networks_unsupported. -
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. -
Watch the state machine. The intent moves
awaiting_payment → detected → confirming → confirmedas FeitPay’s payment processor reports the invoice paid, confirmed and complete. The checkout, the dashboard and your webhook endpoint all see the same states. -
Verify the webhook and fulfil. Your endpoint receives
payment.confirmed. Verify the signature over the raw body (see Verify webhook signatures), dedupe onevent_id, and fulfil only whendata.fulfillableistrue— re-checking withGET /v1/payment-intents/{id}before an irreversible action.
Withdraw your balance
Section titled “Withdraw your balance”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.
Run the examples
Section titled “Run the examples”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 |
Next steps
Section titled “Next steps”- Understand every status in the state machine.
- See what the customer sees in the hosted checkout.
- Read the security model before you design your integration.
- Read the regulatory status to see what FeitPay does and doesn’t hold.