Skip to content

Commit 9005860

Browse files
update preauth responses
1 parent 0049d5b commit 9005860

File tree

4 files changed

+106
-8
lines changed

4 files changed

+106
-8
lines changed

dist/api/preauthorization/list/response.json

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"data": [
88
{
99
"domain": "test",
10-
"status": "success",
10+
"status": "failed",
1111
"reference": "ctbaq5z6fkzsk2f",
1212
"amount": 1200,
1313
"created_at": "2023-08-21T06:30:31.000Z",
@@ -20,14 +20,62 @@
2020
"id": 180063193,
2121
"first_name": null,
2222
"last_name": null,
23-
"email": "test@paystack.com",
23+
"email": "test@example.com",
2424
"customer_code": "CUS_zi5os4fs31qxao0",
2525
"phone": null,
2626
"metadata": null,
2727
"risk_action": "default",
2828
"international_format_phone": null
2929
},
30-
"id": 436
30+
"id": 10321309
31+
},
32+
{
33+
"domain": "test",
34+
"status": "captured",
35+
"reference": "adoiasdiruvme",
36+
"amount": 500,
37+
"created_at": "2025-01-08T10:51:24.000Z",
38+
"transaction_id": 4563444462,
39+
"captured_at": "2025-01-08T10:53:31.000Z",
40+
"released_at": null,
41+
"currency": "ZAR",
42+
"fees": 115,
43+
"customer": {
44+
"id": 226230427,
45+
"first_name": null,
46+
"last_name": null,
47+
"email": "[email protected]",
48+
"customer_code": "CUS_6bklfq9zapdbdpp",
49+
"phone": null,
50+
"metadata": null,
51+
"risk_action": "default",
52+
"international_format_phone": null
53+
},
54+
"id": 153028
55+
},
56+
{
57+
"domain": "test",
58+
"status": "released",
59+
"reference": "abcoeii-123adoi",
60+
"amount": 8888,
61+
"created_at": "2025-01-08T12:48:02.000Z",
62+
"transaction_id": null,
63+
"captured_at": null,
64+
"released_at": "2025-01-08T13:21:35.000Z",
65+
"currency": "ZAR",
66+
"fees": 115,
67+
"customer": {
68+
"id": 226271601,
69+
"first_name": null,
70+
"last_name": null,
71+
"email": "[email protected]",
72+
"customer_code": "CUS_l3hkvdfhxaxdad",
73+
"phone": null,
74+
"metadata": null,
75+
"risk_action": "default",
76+
"international_format_phone": null
77+
},
78+
"id": 53041032
3179
}
3280
],
3381
"meta": {

dist/api/preauthorization/verify/response.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"data": {
88
"id": 523,
99
"domain": "live",
10-
"status": "authorized",
10+
"status": "captured",
1111
"reference": "pre_p0xpfge2",
1212
"amount": 1600,
1313
"created_at": "2023-08-24T19:00:18.000Z",
@@ -45,6 +45,7 @@
4545
"merchant_id": 210002,
4646
"merchant_name": "ABC merchant",
4747
"expire_action": "release",
48+
"captured_at": "2023-08-28T10:53:31.000Z",
4849
"split_code": null,
4950
"split": null
5051
}

src/api/preauthorization/list/response.json

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"data": [
88
{
99
"domain": "test",
10-
"status": "success",
10+
"status": "failed",
1111
"reference": "ctbaq5z6fkzsk2f",
1212
"amount": 1200,
1313
"created_at": "2023-08-21T06:30:31.000Z",
@@ -20,14 +20,62 @@
2020
"id": 180063193,
2121
"first_name": null,
2222
"last_name": null,
23-
"email": "test@paystack.com",
23+
"email": "test@example.com",
2424
"customer_code": "CUS_zi5os4fs31qxao0",
2525
"phone": null,
2626
"metadata": null,
2727
"risk_action": "default",
2828
"international_format_phone": null
2929
},
30-
"id": 436
30+
"id": 10321309
31+
},
32+
{
33+
"domain": "test",
34+
"status": "captured",
35+
"reference": "adoiasdiruvme",
36+
"amount": 500,
37+
"created_at": "2025-01-08T10:51:24.000Z",
38+
"transaction_id": 4563444462,
39+
"captured_at": "2025-01-08T10:53:31.000Z",
40+
"released_at": null,
41+
"currency": "ZAR",
42+
"fees": 115,
43+
"customer": {
44+
"id": 226230427,
45+
"first_name": null,
46+
"last_name": null,
47+
"email": "[email protected]",
48+
"customer_code": "CUS_6bklfq9zapdbdpp",
49+
"phone": null,
50+
"metadata": null,
51+
"risk_action": "default",
52+
"international_format_phone": null
53+
},
54+
"id": 153028
55+
},
56+
{
57+
"domain": "test",
58+
"status": "released",
59+
"reference": "abcoeii-123adoi",
60+
"amount": 8888,
61+
"created_at": "2025-01-08T12:48:02.000Z",
62+
"transaction_id": null,
63+
"captured_at": null,
64+
"released_at": "2025-01-08T13:21:35.000Z",
65+
"currency": "ZAR",
66+
"fees": 115,
67+
"customer": {
68+
"id": 226271601,
69+
"first_name": null,
70+
"last_name": null,
71+
"email": "[email protected]",
72+
"customer_code": "CUS_l3hkvdfhxaxdad",
73+
"phone": null,
74+
"metadata": null,
75+
"risk_action": "default",
76+
"international_format_phone": null
77+
},
78+
"id": 53041032
3179
}
3280
],
3381
"meta": {

src/api/preauthorization/verify/response.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"data": {
88
"id": 523,
99
"domain": "live",
10-
"status": "authorized",
10+
"status": "captured",
1111
"reference": "pre_p0xpfge2",
1212
"amount": 1600,
1313
"created_at": "2023-08-24T19:00:18.000Z",
@@ -45,6 +45,7 @@
4545
"merchant_id": 210002,
4646
"merchant_name": "ABC merchant",
4747
"expire_action": "release",
48+
"captured_at": "2023-08-28T10:53:31.000Z",
4849
"split_code": null,
4950
"split": null
5051
}

0 commit comments

Comments
 (0)