The Smarter Way

Webhook operation


Ottu will trigger a call to webhook_url to disclose the transactional data on the webhook_url when any transaction operations got triggered capture, refund, void, and cancel
"email":"[email protected]",
"It will contain the raw pg response sent by the pg to Ottu."
"timestamp_utc":"2022-09-07 06:21:46",
"customer_email":"[email protected]",

amount string

The merchant should always check if the amount he received from Ottu is the amount of the order, to avoid user changing the cart amount in between

initiator dict

Payment operation creator details, it will be populated only if the operation was triggered from the dashboard or using api with basic auth and not api key
If true, sandbox environment used for this PG settings.

operation string

Choice from "purchase","authorize". Depending on how the PG is being selected.

pg_code string

It is being generated according to user payment gateway code choice from pg_codes list
It will contain the raw payment gateway response sent by the payment gateway to Ottu.
It is unique identifier, assigned by Ottu to any parent payment transaction.

result string

Result of payment operation void, capture or refund

source string

can be input or pg: Input means it was triggered by Ottu side via API or dashboard. PG means it was triggered by bank PG dashboard and Ottu was informed via webhook. Note: Not all PGs are informing ottu when operations are happening on their side, so Ottu might not be aware of all operations on all PGs, only on those which are offering webhook feature.

timestamp_utc format YYYY-MM-DD / HH:MM:SS

Time and date of operation creation.

txn dict

A dictionary will be generated including short summary of the child payment transaction which was created

amount string

Requested amount of the payment operation

currency_code string

The currency code of the payment operation. More details 3 letters code

customer_email string

Email address of the customer.

extra dict

The extra information for the payment details, which the merchant has sent it in key value form. For example:
"flight-number": "1234",
"full_name": "customer

order_no string

Merchant unique identifier for the transaction. ABC123_1, ABC123_2, Max length: 128.
It is unique identifier, assigned by Ottu to any child payment transaction , namely the payment attempt .

state string