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"
}'

Create an order.

POST https://merchant.fcfpay.com/api/v1/create-order

Creates a new order.

Request Body

{
  "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