Skip to content
Last updated

Payment Page (Legacy): pay-in flow

⛔ Legacy — not supported for new integrations. See the notice. The replacement is Cashier Single Payment — Card.

Steps

1. Create the pay-in

POST /v3/public/payin with returnUrls (and no directRouteId).

curl -X POST "https://api.omno.com/v3/public/payin" \
  -H "Authorization: Bearer <access_token>" \
  -H "Content-Type: application/json" \
  -d '{
    "orderId": "order-2026-000201",
    "amount": 100.00,
    "currency": "EUR",
    "kycVerified": true,
    "previousTransactionCount": 5,
    "customer": {
      "externalUserId": "3183818381183",
      "firstName": "John",
      "lastName": "Doe",
      "email": "john.doe@example.com",
      "phoneNumber": "1 1234567890",
      "dateOfBirth": "1990-12-01",
      "billing": {
        "address": "123 Main St",
        "city": "Atlanta",
        "state": "GA",
        "countryCode": "US",
        "postalCode": "30308"
      }
    },
    "returnUrls": {
      "success": "https://merchant.example.com/success",
      "failure": "https://merchant.example.com/failure"
    }
  }'

Response:

{
  "paymentId": "944732c4608c441aa91379478b91f76e",
  "status": "CREATED",
  "iframeUrls": {
    "card": "https://checkout.omno.com/payments/payin/944732c4608c441aa91379478b91f76e/card",
    "apm": "https://checkout.omno.com/payments/payin/944732c4608c441aa91379478b91f76e/apm"
  }
}

2. Load the iframe URL

Load iframeUrls.card or iframeUrls.apm from the response, depending on the payment method.

3. Customer pays and is redirected

The customer completes payment and is redirected to returnUrls.success or returnUrls.failure.

4. Final status

Determine the outcome from a webhook or a GET on the transaction.

ℹ️ Note: A redirect to success / failure does not confirm the final status. Only a webhook or a GET on the transaction is authoritative.

Failure states

  • Decline — DECLINED.
  • PSP failure — FAILED.
  • Timeout — TIMEOUT; may resolve later.
  • Customer abandons — no completion; reconcile via a GET.
  • Pending resolving asynchronously — PENDING / PENDING_3DS; final status via webhook.