Skip to content

Commit 1feb8e2

Browse files
update webhook events
1 parent 1e57f55 commit 1feb8e2

File tree

3 files changed

+40
-4
lines changed

3 files changed

+40
-4
lines changed

dist/doc/payments/preauthorization/events.js

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,25 @@ const preauthorization_capture_success = `{
8989
"metadata": null,
9090
"reference": "atyntuup5bec03e",
9191
"status": "captured",
92+
"transaction": {
93+
"currency": "ZAR",
94+
"transaction_date": "2023-11-10T11:58:44.000Z",
95+
"status": "success",
96+
"reference": "atyntuup5bec03e",
97+
"domain": "live",
98+
"metadata": null,
99+
"gateway_response": "Approved",
100+
"message": null,
101+
"channel": "preauth",
102+
"fees": 26,
103+
"id": "1504264401",
104+
"split": {}
105+
},
92106
"transaction_id": "1504264401",
93107
"expiry_date": null,
94-
"expire_action": "capture"
108+
"expire_action": "capture",
109+
"split_code": null,
110+
"split": null
95111
}
96112
}`
97113

@@ -235,7 +251,9 @@ const preauthorization_reserve_success = `{
235251
"captured_at": null,
236252
"captured_amount": null,
237253
"expiry_date": "2023-11-19T23:28:52.000Z",
238-
"expire_action": "release"
254+
"expire_action": "release",
255+
"split_code": null,
256+
"split": null
239257
}
240258
}`
241259

src/doc/payments/preauthorization/events/preauthorization-capture-success.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,24 @@
4040
"metadata": null,
4141
"reference": "atyntuup5bec03e",
4242
"status": "captured",
43+
"transaction": {
44+
"currency": "ZAR",
45+
"transaction_date": "2023-11-10T11:58:44.000Z",
46+
"status": "success",
47+
"reference": "atyntuup5bec03e",
48+
"domain": "live",
49+
"metadata": null,
50+
"gateway_response": "Approved",
51+
"message": null,
52+
"channel": "preauth",
53+
"fees": 26,
54+
"id": "1504264401",
55+
"split": {}
56+
},
4357
"transaction_id": "1504264401",
4458
"expiry_date": null,
45-
"expire_action": "capture"
59+
"expire_action": "capture",
60+
"split_code": null,
61+
"split": null
4662
}
4763
}

src/doc/payments/preauthorization/events/preauthorization-reserve-success.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
"captured_at": null,
4343
"captured_amount": null,
4444
"expiry_date": "2023-11-19T23:28:52.000Z",
45-
"expire_action": "release"
45+
"expire_action": "release",
46+
"split_code": null,
47+
"split": null
4648
}
4749
}

0 commit comments

Comments
 (0)