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 (contact developers@flowlix.eu to get started)
- Your test mode API key (starts with
fl_test_sk_) curlor any HTTP client
Step 1: Get your API key
Your Flowlix account includes test mode API keys. Contact your account manager or developers@flowlix.eu to receive your credentials. Your test mode secret key looks like: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: 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—pendingmeans the payment is being processed. PollGET /v1/payments/{id}until it becomessucceededorfailed.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.