1+ const preauthorization_capture_failed = `{
2+ "event": "preauthorization.capture.failed",
3+ "data": {
4+ "amount": 1000,
5+ "authorization": {
6+ "account_name": null,
7+ "authorization_code": "AUTH_ove5p6reju",
8+ "bank": "NEDBANK",
9+ "bin": "492213",
10+ "brand": "visa",
11+ "card_type": "visa credit",
12+ "channel": "card",
13+ "country_code": "ZA",
14+ "exp_month": "03",
15+ "exp_year": "2025",
16+ "last4": "6658",
17+ "reusable": true,
18+ "signature": "SIG_9bg7BgE0xiRxNVsil7Yo"
19+ },
20+ "captured_amount": "1000",
21+ "captured_at": null,
22+ "currency": "ZAR",
23+ "customer": {
24+ "id": 1,
25+ "first_name": "John",
26+ "last_name": "Doe",
27+ "email": "john@test.com",
28+ "customer_code": "CUS_yqcuukj44ype5u1",
29+ "phone": "01142272921",
30+ "metadata": null,
31+ "risk_action": "default",
32+ "international_format_phone": null
33+ },
34+ "domain": "live",
35+ "expired_at": null,
36+ "fees": 0,
37+ "message": null,
38+ "id": 3099,
39+ "merchant_id": 412922,
40+ "merchant_name": "Test Business",
41+ "metadata": null,
42+ "reference": "atyntuup5bec03e",
43+ "status": "capture_failed",
44+ "transaction_id": "1504264401",
45+ "expiry_date": "2023-11-19T23:28:52.000Z",
46+ "expire_action": "release"
47+ }
48+ }`
49+
50+ const preauthorization_capture_success = `{
51+ "event": "preauthorization.capture.success",
52+ "data": {
53+ "amount": 1000,
54+ "authorization": {
55+ "account_name": null,
56+ "authorization_code": "AUTH_ove5p6reju",
57+ "bank": "NEDBANK",
58+ "bin": "492213",
59+ "brand": "visa",
60+ "card_type": "visa credit",
61+ "channel": "card",
62+ "country_code": "ZA",
63+ "exp_month": "03",
64+ "exp_year": "2025",
65+ "last4": "6658",
66+ "reusable": true,
67+ "signature": "SIG_9bg7BgE0xiRxNVsil7Yo"
68+ },
69+ "captured_amount": "1000",
70+ "captured_at": "2023-11-10T11:58:44.000Z",
71+ "currency": "ZAR",
72+ "customer": {
73+ "id": 1,
74+ "first_name": "John",
75+ "last_name": "Doe",
76+ "email": "john@test.com",
77+ "customer_code": "CUS_yqcuukj44ype5u1",
78+ "phone": "01142272921",
79+ "metadata": null,
80+ "risk_action": "default",
81+ "international_format_phone": null
82+ },
83+ "domain": "live",
84+ "fees": 0,
85+ "message": "Approved",
86+ "id": 3099,
87+ "merchant_id": 412922,
88+ "merchant_name": "Test Business",
89+ "metadata": null,
90+ "reference": "atyntuup5bec03e",
91+ "status": "captured",
92+ "transaction_id": "1504264401",
93+ "expiry_date": null,
94+ "expire_action": "capture"
95+ }
96+ }`
97+
98+ const preauthorization_release_failed = `{
99+ "event": "preauthorization.release.failed",
100+ "data": {
101+ "amount": 1000,
102+ "authorization": {
103+ "account_name": null,
104+ "authorization_code": "AUTH_ove5p6reju",
105+ "bank": "NEDBANK",
106+ "bin": "492213",
107+ "brand": "visa",
108+ "card_type": "visa credit",
109+ "channel": "card",
110+ "country_code": "ZA",
111+ "exp_month": "03",
112+ "exp_year": "2025",
113+ "last4": "6658",
114+ "reusable": true,
115+ "signature": "SIG_9bg7BgE0xiRxNVsil7Yo"
116+ },
117+ "captured_amount": null,
118+ "captured_at": null,
119+ "currency": "ZAR",
120+ "customer": {
121+ "id": 1,
122+ "first_name": "John",
123+ "last_name": "Doe",
124+ "email": "john@test.com",
125+ "customer_code": "CUS_yqcuukj44ype5u1",
126+ "phone": "01142272921",
127+ "metadata": null,
128+ "risk_action": "default",
129+ "international_format_phone": null
130+ },
131+ "domain": "live",
132+ "fees": 100,
133+ "message": "Release failed",
134+ "id": 3118,
135+ "merchant_id": 412922,
136+ "merchant_name": "Test Business",
137+ "metadata": null,
138+ "reference": "h15lgtld6kqlkcm",
139+ "status": "release_failed",
140+ "transaction_id": null,
141+ "expiry_date": "2023-11-19T23:28:52.000Z"
142+ }
143+ }`
144+
145+ const preauthorization_release_success = `{
146+ "event": "preauthorization.release.success",
147+ "data": {
148+ "amount": 1000,
149+ "authorization": {
150+ "account_name": null,
151+ "authorization_code": "AUTH_ove5p6reju",
152+ "bank": "NEDBANK",
153+ "bin": "492213",
154+ "brand": "visa",
155+ "card_type": "visa credit",
156+ "channel": "card",
157+ "country_code": "ZA",
158+ "exp_month": "03",
159+ "exp_year": "2025",
160+ "last4": "6658",
161+ "reusable": true,
162+ "signature": "SIG_9bg7BgE0xiRxNVsil7Yo"
163+ },
164+ "captured_amount": null,
165+ "captured_at": null,
166+ "currency": "ZAR",
167+ "customer": {
168+ "id": 1,
169+ "first_name": "John",
170+ "last_name": "Doe",
171+ "email": "john@test.com",
172+ "customer_code": "CUS_yqcuukj44ype5u1",
173+ "phone": "01142272921",
174+ "metadata": null,
175+ "risk_action": "default",
176+ "international_format_phone": null
177+ },
178+ "domain": "live",
179+ "expired_at": "2023-11-17T12:46:58.000Z",
180+ "fees": 100,
181+ "message": "Release success",
182+ "id": 3101,
183+ "merchant_id": 412922,
184+ "merchant_name": "Test Business",
185+ "metadata": null,
186+ "reference": "pre_11b0qw12",
187+ "status": "released",
188+ "transaction_id": null,
189+ "expiry_date": "2024-11-19T23:28:52.000Z",
190+ "expire_action": "release"
191+ }
192+ }`
193+
194+ const preauthorization_reserve_success = `{
195+ "event": "preauthorization.reserve.success",
196+ "data": {
197+ "id": 543,
198+ "domain": "live",
199+ "status": "authorized",
200+ "reference": "pre_9gjnu6dc",
201+ "amount": 1000,
202+ "message": "Approved",
203+ "currency": "ZAR",
204+ "metadata": null,
205+ "fees": 100,
206+ "authorization": {
207+ "authorization_code": "AUTH_vbvd4qti3m",
208+ "bin": "455027",
209+ "last4": "8016",
210+ "exp_month": "11",
211+ "exp_year": "2026",
212+ "channel": "card",
213+ "card_type": "visa credit",
214+ "bank": "ABSA BANK LIMITED, SOUTH AFRICA",
215+ "country_code": "ZA",
216+ "brand": "visa",
217+ "reusable": true,
218+ "signature": "SIG_1zl7r116ONxGlRFXKn0C",
219+ "account_name": null
220+ },
221+ "customer": {
222+ "id": 1,
223+ "first_name": "John",
224+ "last_name": "Doe",
225+ "email": "john@test.com",
226+ "customer_code": "CUS_yqcuukj44ype5u1",
227+ "phone": "",
228+ "metadata": null,
229+ "risk_action": "default",
230+ "international_format_phone": null
231+ },
232+ "merchant_id": 1077497,
233+ "merchant_name": "Test Business",
234+ "transaction_id": null,
235+ "captured_at": null,
236+ "captured_amount": null,
237+ "expiry_date": "2023-11-19T23:28:52.000Z",
238+ "expire_action": "release"
239+ }
240+ }`
241+
242+ export { preauthorization_capture_failed , preauthorization_capture_success , preauthorization_release_failed , preauthorization_release_success , preauthorization_reserve_success }
0 commit comments