Create an order from with Elite NEO Bank from your backend
To process any payment on Elite PG, the merchant needs to create an order in the Elite system. This order must be created from your backend (as it uses your secret key). On successful creation of the order, you will receive a payment link which can be used to process payments from anywhere.
curl --request POST \
--url {api_base_url}/order \
--header 'Content-Type: application/json' \
--header 'order-source: rest-api' \
--header 'x-client-id: <App ID>' \
--header 'x-client-secret: <Secret Key>' \
--data '{
"order_id": "order_1626945143520",
"order_amount": 10.12,
"order_currency": "INR",
"order_note": "Additional order info",
"service_type": "DIGITAL || PHYSICAL_GOODS",
"customer_name": "name",
"customer_email": "[email protected]",
"customer_phone": "9816512345",
"customer_address_line1": "Capital Office, Kemp House",
"customer_address_line2": "152 - 160 City Road",
"customer_address_city": "London",
"customer_address_state": "London",
"customer_address_country": "UK",
"customer_address_postal_code": "EC1V 2NX",
"order_checksum": "dg65sdg41d6f5g4dfg4fg4df6gdg==",
"return_url": "https://merchant.in/process_return.php"
}'
{
"elite_order_id": 1539553,
"created_at": "2021-07-19T16:13:35+05:30",
"order_id": "order_1626945143520",
"order_status": "UN_PAID",
"order_token": "BtJEHHxOB9bFpNsaHmEL",
"payment_link": "{api_base_url}/payment/BtJEHHxOB9bFpNsaHmEL"
}
Name | Type | Description | Example |
---|---|---|---|
order_id | string, required | Order identifier for your system. | order_6765 |
order_amount | float, required (provide in two decimal places) | Order amount. | 12.70 |
order_currency | string, required | Valid order currency. We use the ISO 4217 currency list. | INR |
order_note | string, required | Order related extra detail | Payment for web host |
service_type | string, required | Order service type DIGITAL {for digital services} PHYSICAL_GOODS {for shipable goods} | DIGITAL |
customer_name | string, required | Name of your customer. | John Deo |
customer_email | string, required | Email of your customer. | [email protected] |
customer_phone | string, required | Contact details of your customer. | 9896989698 |
customer_address_line1 | string, required | Address of your customer. | Capital Office, Kemp House, 152 |
customer_address_line2 | string, optional | Extra details about address of your customer. | |
customer_address_city | string, required | City of your customer. | 152 - 160 City Road |
customer_address_state | string, required | State of your customer. | London |
customer_address_country | string, required | Country of your customer. | UK |
customer_address_postal_code | string, required | Postal code of your customer. | EC1V 2NX |
order_checksum | hash, required | Generated Checksum | dg65sdg41d6f5g4dfg4fg4df6gdg== |
return_url | url, required | Return on merchant website from Elite Payments checkout page to pass transation status | https://merchant.in/process_return.php |