Generic Payment

Configure Generic Payment provider for custom webhook-based payment integrations.

Generic Payment Integration with Omnium

Omnium supports Generic Payment for custom payment integrations that forward payment operations to external HTTP endpoints. This provider is ideal for integrating with payment systems that have custom APIs.

Supported Features

  • Direct Capture payments
  • Cancel payments
  • Credit/Refund payments
  • In-Store Registration (basic)

Setup Instructions

Configuration Path

  1. Navigate to: Configuration > Settings > Payment > Payment Types > "..." > Add

  2. Fill out the required fields as outlined below.


Required Fields

FieldDescriptionValue
Unique Payment NameThe unique identifier for the payment method.Your unique name
Payment ServiceThe name of the payment service used for this configuration.GenericPayment
Provider NameSpecifies which provider to use.GenericPayment
Display NameThe name shown in the Omnium interface.Your preferred display name
Base URLBase URL for your webhook endpoints.Your API base URL

Webhook Configuration (Properties)

Configure webhook endpoints as properties:

PropertyDescription
CaptureUrlEndpoint for capture operations
CreditUrlEndpoint for refund operations
SendEntireOrderToProviderSend full order data (true) or minimal (false)

Supported Operations

OperationSupportedNotes
Direct CaptureYesForwards to CaptureUrl endpoint
CancelYesForwards to configured endpoint
RefundYesForwards to CreditUrl endpoint
In-Store RegistrationYesReturns order number as transaction ID

Webhook Request Format

Minimal Payload (Default)

When SendEntireOrderToProvider is false or not set:

{
  "OrderNumber": "ORD-12345",
  "Amount": 500.00,
  "CurrencyCode": "NOK",
  "TransactionId": "ORD-12345",
  "PaymentMethodName": "CustomPayment",
  "MarketId": "NOR",
  "Properties": {}
}

Full Order Payload

When SendEntireOrderToProvider is true, the complete order object is sent.

Response Requirements

HTTP StatusResult
200-299Success
OtherFailure (response body = error message)

Transaction ID Generation

Transaction IDs are automatically generated:

PaymentTransaction ID
First{OrderId}
Second{OrderId}-1
Third{OrderId}-2

Error Handling

Generic Payment errors are displayed on the order in the Errors section.

Errors include:

  • HTTP status code
  • Response body content
  • Exception details if applicable

Webhook Payment Provider

For more advanced webhook integration with per-operation control:

Provider Name: WebhookPayment

Additional features:

  • Per-transaction-type webhook URLs
  • Empty transaction support (skip webhook for specific operations)
  • Custom HTTP headers

Additional Properties:

PropertyDescription
{TransactionType}UrlURL for specific operation
{TransactionType}IsEmptySkip webhook for this operation (true/false)
Custom HeadersAdd with KeyGroup = "Header"

Example Header Configuration:

KeyGroup: Header
Key: Authorization
Value: Bearer your-token

Empty Payment Provider

For payments that require no external processing:

Provider Name: EmptyPayment

  • All operations return immediate success
  • Generates random GUIDs for transaction IDs
  • Useful for testing or manual payment recording

Configuration Reference

Payment Service

GenericPayment or WebhookPayment

Webhook Format

HTTP POST with JSON payload