Quickstart
This guide walks you through creating your first Flowlix payment using the Direct API. By the end, you will have a working test payment.Prerequisites
- A Flowlix account (sign up at portal.flowlix.dev)
- Your test mode API key (starts with
fl_test_sk_) curlor any HTTP client
Step 1: Get your API key
- Sign up at portal.flowlix.dev using Google or email.
- Enter your company name to create your merchant account.
- Go to Settings → API Keys in your Dashboard.
Step 2: Create a payment
Run this command in your terminal (replacefl_test_sk_... with your actual key):
The card number
4111111111111111 is a test card that always succeeds in test mode.
See Test Cards for more numbers.Step 3: Inspect the create response
The create call returns HTTP201 immediately with a Payment object in
pending state. The card brand and expiry have not been resolved yet —
those fields fill in once the upstream processor responds:
id— Save this. You need it to retrieve or refund the payment later.status—pendingmeans processing is underway. The payment will transition to one of:succeeded,failed,requires_action(3D Secure), orexpired. PollGET /v1/payments/{id}until you see a terminal state.provider_transaction_id— The payment provider’s reference for this transaction. Useful for dispute resolution and reconciliation.nullwhile the payment is still being submitted to the provider.livemode—falseconfirms this is a test payment.
Step 4: Poll until terminal
Fetch the payment until you see a terminal status:4111111111111111 you should see status: "succeeded"
within a couple of seconds, with the card brand, expiry, and succeeded_at
populated:
status is requires_action instead, the card needs 3D Secure — see
3D Secure for the redirect flow.
What’s next?
Direct API Guide
Deep dive into the Direct API payment flow.
Hosted Payment Page
Let Flowlix handle card collection for you.
Error Handling
Learn how to handle declined cards and API errors.
Test Cards
Simulate different payment scenarios in test mode.
