OMPAYOMPAY
Getting Started

Authentication

How to authenticate with the OMPAY Payment Gateway API

Authentication

OMPAY uses multiple authentication mechanisms to ensure secure API communication.

Bank Hosted Authentication

Bank-hosted integrations use Basic Authentication only.

Basic Auth

The Authorization header contains a base64-encoded string of CLIENT_ID:CLIENT_SECRET:

Authorization: Basic <base64-encoded-string>

Example

curl -X POST {{domain}}/nac/api/v1/pg/orders/create-checkout \
  -U [CLIENT_ID]:[CLIENT_SECRET] \
  -H 'Content-Type: application/json'

Merchant Hosted Authentication

Merchant-hosted integrations require Basic Authentication plus additional security headers.

Required Headers

HeaderMandatoryDescriptionExample
AuthorizationYesBasic AuthBasic eW91ci1jbGllZW50LWlkOnlvdXItY2xpZW50LXNlY3JldC1rZXk=
Content-TypeYesContent typeapplication/json
X-SignatureYesHMAC signature<generated_signature>
X-MERCHANT-BROWSER-FINGERPRINTYesBrowser fingerprint8357426ac73fcd60b17355ab7de60421
X-MERCHANT-USER-AGENTYesUser agent stringMozilla/5.0...
X-MERCHANT-DOMAINYesMerchant domainhttps://www.xyz.com
Accept-LanguageYesLocale (BCP 47)en-US
X-MERCHANT-IPNoMerchant IP123.123.123.123

Example Request

curl -X POST '{{baseUrl}}/order' \
  --header 'Authorization: Basic eW91ci1jbGllZW50LWlkOnlvdXItY2xpZW50LXNlY3JldC1rZXk=' \
  --header 'Content-Type: application/json' \
  --header 'X-Signature: <generated_signature>' \
  --header 'X-MERCHANT-BROWSER-FINGERPRINT: 8357426ac73fcd60b17355ab7de60421' \
  --header 'X-MERCHANT-USER-AGENT: Mozilla/5.0...' \
  --header 'X-MERCHANT-DOMAIN: https://www.xyz.com' \
  --header 'X-MERCHANT-IP: 123.123.123.123'

Obtaining Credentials

  1. Log in to the OMPAY Merchant Portal.
  2. Navigate to Payment Gateway > Payment Checkout Page.
  3. For bank-hosted flows, create a client ID and secret key.
  4. For merchant-hosted flows, create a client ID, client secret, and card encryption key.

Next Steps

On this page