Integrate EximPe Hosted Checkout to accept payments with minimal effort
Include JS SDK
Initialize the SDK
Open EximPe Checkout
return_url
you specified when creating the order. This redirection happens regardless of whether the payment was successful or failed.
return_url
order_id
to check actual payment statusorder_id
returned from the order creation response, not the session ID. This endpoint provides the most accurate payment status confirmation.payment_successful
: Payment completed successfully → Deliver services/productspayment_failed
: Payment failed → Show failure message, offer retrypayment_pending
: Payment is being processed → Show pending statuspayment_cancelled
: Customer cancelled payment → Show cancellation messagepayment_pending
to payment_successful
or payment_failed
depending on the final processing result. Always check the latest status before taking action.return_url
, it sends payment details via POST request. You must verify the authenticity of this callback using the hash value provided.
Sample Callback Request:
order_id
: Your order identifierpayment_id
: EximPe’s payment transaction IDstatus
: Payment status (payment_successful, payment_failed, etc.)message
: Human-readable status messagemop_type
: Method of payment (UPI, CARD, etc.)bank_ref_num
: Bank reference numberpayment_completed_at
: Payment completion timestamphash
: Security hash for verificationhmac.compare_digest()
for hash comparison to prevent timing attacks. Never use direct string comparison (==
) for security-sensitive operations.hash_keys
list.