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.
amount string
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
string
The currency code of payment event. More details https://en.wikipedia.org/wiki/ISO_4217 3 letters code.
extra dict
dict
The extra information for the payment details, which the merchant has sent it in key value form. For example:
gateway_account string
string
The payment gateway code, which is utilized to proceed the payment.
gateway_name string
string
The payment gateway, which is utilized to proceed the payment.
It will contain the raw payment gateway response sent by the payment gateway to Ottu.
message string
string
Message sent by PG or set by Ottu to illustrate the status of the payment.
reference_number string
string
It is unique identifier, assigned by Ottu to any parent payment transaction, namely the payment attempt reference number.
result string
string
Could be "success", "pending", "failed", "canceled", "error", and "cod". See payment transaction states.
session_id string
string
It can be used to perform subsequent operations, like retrieve, acknowledge, refund, capture, and cancelation.
signature string
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
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.
Last updated