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 here)
- Your test mode API key (starts with
fl_test_sk_) curlor any HTTP client
Step 1: Get your API key
Log in to the Flowlix Dashboard and navigate to Settings > API Keys. Copy your test mode secret key. It looks like:Step 2: Create a payment
Run this command in your terminal (replacefl_test_sk_... with your actual key):
The card number
4242424242424242 is a test card that always succeeds in test mode.
See Test Cards for more numbers.Step 3: Check the response
A successful payment returns HTTP201 with a Payment object:
id— Save this. You need it to retrieve or refund the payment later.status—succeededmeans the payment went through.livemode—falseconfirms this is a test payment.
Step 4: Retrieve the payment
You can fetch the payment details at any time: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.