To start a payment, the merchant must generate a payment request using the Flouci API. This involves specifying the amount, currency, and other transaction details.
Once the payment request is generated, redirect the user to the Flouci payment page. The user can choose their preferred payment method and complete the transaction.
After the transaction, the user is redirected back to the merchant's site using the `success_link` or `fail_link`. Additionally, configure a `webhook` to receive server-to-server notifications for transaction completions.
# How to Build Requests
Source: https://docs.flouci.com/getting-started/requests
How to build requests to the Flouci Payment API, including authentication with public and secret keys.
The Flouci Payment API is built on REST principles and requires all requests to be made over HTTPS (TLS 1.2 or higher). Any requests sent over plain HTTP will be rejected.
## Authentication
To authenticate your requests, you must include an `Authorization` header in every API call. The value of this header should be your `public_key` and `secret_key` joined by a colon, in the following format: `Bearer