Skip to content

Commit 9c934ec

Browse files
add preauth webhook events
1 parent 4104623 commit 9c934ec

6 files changed

Lines changed: 239 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
type: event
2+
languages:
3+
- json
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
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+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"event": "preauthorization.capture.success",
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": "2023-11-10T11:58:44.000Z",
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+
"fees": 0,
36+
"message": "Approved",
37+
"id": 3099,
38+
"merchant_id": 412922,
39+
"merchant_name": "StarterZA",
40+
"metadata": null,
41+
"reference": "atyntuup5bec03e",
42+
"status": "captured",
43+
"transaction_id": "1504264401",
44+
"expiry_date": null,
45+
"expire_action": "capture"
46+
}
47+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"event": "preauthorization.release.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": null,
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+
"fees": 100,
36+
"message": "Release failed",
37+
"id": 3118,
38+
"merchant_id": 412922,
39+
"merchant_name": "StarterZA",
40+
"metadata": null,
41+
"reference": "h15lgtld6kqlkcm",
42+
"status": "release_failed",
43+
"transaction_id": null,
44+
"expiry_date": "2023-11-19T23:28:52.000Z"
45+
}
46+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"event": "preauthorization.release.success",
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": null,
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": "2023-11-17T12:46:58.000Z",
36+
"fees": 100,
37+
"message": "Release success",
38+
"id": 3101,
39+
"merchant_id": 412922,
40+
"merchant_name": "Test Business",
41+
"metadata": null,
42+
"reference": "pre_11b0qw12",
43+
"status": "released",
44+
"transaction_id": null,
45+
"expiry_date": "2024-11-19T23:28:52.000Z",
46+
"expire_action": "release"
47+
}
48+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"event": "preauthorization.reserve.success",
3+
"data": {
4+
"id": 543,
5+
"domain": "live",
6+
"status": "authorized",
7+
"reference": "pre_9gjnu6dc",
8+
"amount": 1000,
9+
"message": "Approved",
10+
"currency": "ZAR",
11+
"metadata": null,
12+
"fees": 100,
13+
"authorization": {
14+
"authorization_code": "AUTH_vbvd4qti3m",
15+
"bin": "455027",
16+
"last4": "8016",
17+
"exp_month": "11",
18+
"exp_year": "2026",
19+
"channel": "card",
20+
"card_type": "visa credit",
21+
"bank": "ABSA BANK LIMITED, SOUTH AFRICA",
22+
"country_code": "ZA",
23+
"brand": "visa",
24+
"reusable": true,
25+
"signature": "SIG_1zl7r116ONxGlRFXKn0C",
26+
"account_name": null
27+
},
28+
"customer": {
29+
"id": 1,
30+
"first_name": "John",
31+
"last_name": "Doe",
32+
"email": "john@test.com",
33+
"customer_code": "CUS_yqcuukj44ype5u1",
34+
"phone": "",
35+
"metadata": null,
36+
"risk_action": "default",
37+
"international_format_phone": null
38+
},
39+
"merchant_id": 1077497,
40+
"merchant_name": "Test Business",
41+
"transaction_id": null,
42+
"captured_at": null,
43+
"captured_amount": null,
44+
"expiry_date": "2023-11-19T23:28:52.000Z",
45+
"expire_action": "release"
46+
}
47+
}

0 commit comments

Comments
 (0)