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
{
"amount":"14.00",
"initiator":{
"email":"[email protected]",
"id":83,
"username":"iitiator"
},
"is_sandbox":false,
"operation":null,
"pg_code":"mpgs-ksa",
"pg_response":{
"It will contain the raw pg response sent by the pg to Ottu."
},
"reference_number":"stageDV37C",
"result":"success",
"source":"input",
"success":true,
"timestamp_utc":"2022-09-07 06:21:46",
"txn":{
"amount":"14.00",
"currency_code":"SAR",
"customer_email":"[email protected]",
"extra":{
"flight-number":"1234",
"full_name":"customer"
},
"order_no":"",
"reference_number":"LEQCJ",
"state":"voided"
}
}
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
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.
Since it states if the operation was success or not, and webhook operations are not triggered if the operation has failed, so It is a Fixed value: success.
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.
Time and date of operation creation.
A dictionary will be generated including short summary of the child payment transaction which was created
Requested amount of the payment operation
The currency code of the payment operation.
More details https://en.wikipedia.org/wiki/ISO_4217
3 letters code
Email address of the customer.
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
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 .
Last modified 2mo ago