The smarter way

Webhook payment


Payment events take place when the user tries to pay, then Ottu will trigger a call to the webhook_url to disclose the transactional data on the webhook_url.
"It will contain the raw pg response sent by the pg to Ottu"
"message":"Unable to redirect to the PG",

amount string

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

currency_code string

The currency code of payment event. More details 3 letters code.

extra dict

The extra information for the payment details, which the merchant has sent it in key value form. For example:

gateway_account string

The payment gateway code, which is utilized to proceed the payment.

gateway_name string

The payment gateway, which is utilized to proceed the payment.

gateway_response dict

It will contain the raw payment gateway response sent by the payment gateway to Ottu.

message string

Message sent by PG or set by Ottu to illustrate the status of the payment.
It is unique identifier, assigned by Ottu to any parent payment transaction, namely the payment attempt reference number.

result string

Could be "success", "pending", "failed", "canceled", "error", and "cod". See payment transaction states.

session_id string

It can be used to perform subsequent operations, like retrieve, acknowledge, refund, capture, and cancelation.

signature string

Ottu hash-signature to support the security and trustability, by hashing part of the payload parameters and sending hash-signature with every payload. This allows Ottu to ensure the data has not modified or cut within the payment transition process.

state string

It is one of the Payment transaction state. And could one of the below: created, pending, attempted, authorized, paid, failed, canceled, expired, invalided, or cod.