Create Order
Create an order
Creating a new order
curl --location --request POST 'https://merchant.fcfpay.com/api/v1/create-order' \
--header 'Authorization: Bearer YOUR_LIVE_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"domain": "yourdomain.com",
"order_id": "3",
"user_id": "1",
"amount": "10",
"currency_name": "USD",
"order_date": "2022-04-26",
"redirect_url": "https://yourdomain.com/thank-you/",
"check_source_url": "https://yourdomain.com/api/v1/check-order"
}'
domain
Your domain name
"yourdomain.com"
order_id
The id
of the order
"3"
user_id
The user's ID (optional)
"1"
amount
The amount of the order
"10"
currency_name
The ISO-4217 currency
"USD"
order_date
The date of the order
"2022-04-26"
redirect_url
The page where you want to redirect users after the payment
"https://yourdomain.com/thank-you/"
check_source_url
Must be return true or false (not required for current version)
"https://yourdomain.com/api/v1/check-order"
Create an order.
POST
https://merchant.fcfpay.com/api/v1/create-order
Creates a new order.
Request Body
domain*
string
domain host of the order
order_id*
string
The id
of the order as a string
amount*
decimal
The amount as a string
currency_name*
string
The ISO-4217 currency
redirect_url*
string
The URL where will redirected
order_date
string
The date with "YYYY-MM-DD" format
check_source_url
string
The URL of source
user_id
String
The id
of the user as a string
{
"success": true,
"data": {
"checkout_page_url": "https://checkout.fcfpay.com/JDJ5JDEwJFB2WjFLZldnbEd0R2JRbWNKOS5Lci5SU1FIVkdSY0ZLQktSZkl2Q0FjclRLdlJXYUZ3VWF5",
"payment_status": "waiting"
},
"message": "Order successfully created. Waiting for the payment."
}
After order creation, our system will send you a checkout page URL. You should redirect your customers to that URL.
Last updated