Skip to main content
This endpoint creates a new payment and returns a URL to redirect the user to for completing the payment.

Body

string
required
The amount to be paid in millimes.
The URL to redirect the user to after a successful payment.
The URL to redirect the user to after a failed payment.
string
The webhook URL you want to receive payment confirmation on. Every call is signed with X-Flouci-Signature; see Payment Webhooks.
integer
default:"1"
The format of the webhook call. 1 sends GET <webhook>?payment_id=<id>&success=<True|False>; 2 sends a POST with a signed JSON payment.succeeded or payment.failed event. Any other value is rejected with 400. See Payment Webhooks.
string
An ID for you to track the payment. This is a free field that Flouci doesn’t check against.
integer
default:"1200"
The session timeout in seconds.
boolean
default:"false"
Whether to accept card payments.
URL
The URL of the image to display on the payment page. This field is optional, and the default image is the image of the merchant in the Flouci portal.