Create Order

POST https://lexholdingsgroup.com/create

Send a POST request to the URL to create an order. Decode the JSON response, select the ID in 'response', and redirect your customer to https://lexholdingsgroup.com/checkout/{response}

Request

Parameter Type Position # Description
secret String Body Required Your secret merchant key.
email String Body Required Customer's email address. Must be valid.
amount Float Body Required Total order amount. Must be equal or above 1.
webhookURL String Body Required The URL that we will send an IPN notification to after a successful payment.
returnURL String Body Required The URL the customer will be redirected to after a successful payment. You may add {id} into the URL and we will automatically replace it with the payment ID that we send back.
metadata String Body Optional Extra data that will be sent back in the IPN notification.

Response

HTTP/1.1 200 Success
{
    "status": "success",
    "response": "89c9d6dd-e225-4df6-85aa-dd4f785b16d0"
}
HTTP/1.1 400 Bad Request
{
    "status": "fail",
    "response": "Invalid parameter"
}
HTTP/1.1 401 Unauthorized
{
    "status": "fail",
    "response": "Invalid merchant"
}