Skip to main content

Quickstart

This walkthrough redirects a customer to Omniware's hosted payment page and brings them back to your site with the result. It is the fastest path to collecting money.

note

Need to send money instead of collect? Jump to the Payouts overview.

Prerequisites

  • An api_key and salt from your Omniware dashboard.
  • A backend that can compute a SHA-512 hash and POST a form.
  • A public return_url on your site to receive the result.

1. Build the hash

Sort all request parameters by key, join their non-empty values with |, prepend the salt, hash with SHA-512, and uppercase the result. See Hash calculation for code in every supported language.

2. Submit the payment request

POST to https://pgbiz.omniware.in/v2/paymentrequest as form-urlencoded. A minimal request:

curl -X POST https://pgbiz.omniware.in/v2/paymentrequest \
-d "api_key=YOUR_API_KEY" \
-d "order_id=ORD-1001" \
-d "amount=149.00" \
-d "currency=INR" \
-d "description=Order 1001" \
-d "name=Amit Kumar" \
-d "email=amit@example.com" \
-d "phone=9900990099" \
-d "city=Bangalore" \
-d "country=IND" \
-d "zip_code=560001" \
-d "return_url=https://yoursite.com/payment/return" \
-d "hash=YOUR_COMPUTED_HASH"

In production you'll typically render an HTML form with these fields and auto-submit it from the browser, so the customer ends up on the Omniware hosted page directly.

3. Handle the return

After the customer pays (or cancels), Omniware will POST the result back to your return_url. Recompute the hash on the returned fields and check it matches the hash Omniware sent. Only then mark the order paid.

See the full parameter list and response schema on the Payment Request page.

What to try next