Enkash Developer Portal
Home
Home
Login
  1. Home
  • Back to home
  • Payment Gateway APIs
  • Authorisation
    • Get Authorization Token
  • Order
    • Create Order
    • Get Order Status
    • Get Order By Merchant Order Id
    • Get BNPL Payment Methods
    • Get Dynamic UPI QR
    • UPI Intent Links
  • Payment
    • Submit Payment Request
    • Get Transaction Status
    • Validate OTP
    • Resend OTP
    • Payment Notify Request
    • Get UPI Transaction Status
    • Verify UPI VPA
  • Refund
    • Refund
  • Settlement
    • Get Settlement Payout By ID
    • Search Settlement Payouts
  • Split Settlement
    • Create Split Settlement Account
    • Update Split Settlement Account
    • Get All Split Settlement Account
    • Deactivate Split Settlement Account
    • Activate Split Settlement Account
    • Submit Payment with Split Details
    • Edit Or Deferred Split Settlement
  • E-Commerce Plugins
  • UPI QR
    • Create UPI QR
    • Get UPI QR
    • Search UPI QR
    • Create Customer
    • Search Customer
    • Cancel UPI QR
  • UPI Autopay
    • Create UPI Mandate
    • Update UPI Mandate
    • Revoke UPI Mandate
    • Get UPI Mandate
    • UPI Mandate Callback
    • Mandate Pre-debit Notification
    • Execute Mandate Debit
    • Mandate Debit Callback
  • Payment Links
    • Payment Link APIs
    • Create Payment Link
    • Get Payment Link Details
    • Delete Payment Link
    • Webhook Request
  1. Home

Order Initialization for Payment Processing

Creating an order is the first and critical step in processing a payment through the EnKash Payment Gateway. The Order API generates a unique OrderID, which acts as the core reference throughout the transaction lifecycle.

Purpose#

Order Security: Ensures transaction integrity by preventing tampering with amount or details.
Payment Binding: Ties a single successful payment to each order to avoid duplicates.
Integration Backbone: Links the order to Checkout, enabling a secure and traceable flow.

Workflow#

1
Customer Action
The customer clicks the "Pay" button on your platform.
2
Order Creation
Your backend calls the Order API, which returns a unique Order ID along with transaction details (amount, currency, etc.).
3
Checkout Integration
The Order ID is passed to the EnKash Checkout for secure and streamlined payment handling.

Advantages#

Single Successful Payment Enforcement
Prevents multiple payments from being accepted against the same order.
Optimized Querying
Simplifies reconciliation by associating multiple payment attempts to a single order.

Key Integration Steps#

1
Create Order
Use the Create Order API with transaction metadata such as amount, currency, and optional custom fields.
2
Initiate Checkout
Pass the generated OrderID to EnKash Checkout for rendering the payment UI.
3
Track Order
Use Get Order Status or related APIs to monitor order status through the payment lifecycle.

Order Lifecycle Statuses#

StatusDescription
CREATEDOrder successfully created and ready for Checkout
CHECKOUT_RENDEREDCustomer redirected to EnKash Checkout
ATTEMPTEDCustomer attempted payment
PAIDPayment completed successfully
CANCELLEDCustomer canceled the transaction
EXPIREDOrder expired due to timeout or inactivity
Modified at 2025-07-05 12:02:02
Previous
Get Authorization Token
Next
Create Order
Built with