Skip to content

Commit 1594c89

Browse files
Chore: Snippets clean up
1 parent 2bbd6ea commit 1594c89

File tree

8 files changed

+258
-150
lines changed

8 files changed

+258
-150
lines changed

dist/api/preauthorization/capture/requests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ const php = `<?php
4747
$url = "https://api.paystack.co/preauthorization/capture";
4848
4949
$fields = [
50-
'reference' => '123-abc'
51-
'currency' => 'ZAR'
50+
'reference' => '123-abc',
51+
'currency' => 'ZAR',
5252
'amount' => '10000'
5353
];
5454

dist/api/preauthorization/initialize/requests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ const php = `<?php
4747
$url = "https://api.paystack.co/preauthorization/initialize";
4848
4949
$fields = [
50-
'reference' => '123-abc'
51-
'currency' => 'ZAR'
50+
'reference' => '123-abc',
51+
'currency' => 'ZAR',
5252
'amount' => '10000'
5353
];
5454

dist/api/transfers/fetch/response.json

Lines changed: 56 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,67 @@
55
"status": true,
66
"message": "Transfer retrieved",
77
"data": {
8+
"amount": 20000,
9+
"createdAt": "2024-02-01T08:32:21.000Z",
10+
"currency": "NGN",
11+
"domain": "test",
12+
"failures": null,
13+
"id": 451930323,
14+
"integration": 463433,
15+
"reason": "Life go better for you",
16+
"reference": "ge-bzrf8u8k2pygxrnqf",
17+
"source": "balance",
18+
"source_details": null,
19+
"status": "success",
20+
"titan_code": null,
21+
"transfer_code": "TRF_fpmd0l8uta8upow7",
22+
"request": 502643104,
23+
"transferred_at": null,
24+
"updatedAt": "2024-02-01T08:34:07.000Z",
825
"recipient": {
26+
"active": true,
27+
"createdAt": "2021-10-21T11:08:04.000Z",
28+
"currency": "NGN",
29+
"description": null,
930
"domain": "test",
31+
"email": "[email protected]",
32+
"id": 19643784,
33+
"integration": 463433,
34+
"metadata": {
35+
"custom_fields": [
36+
{
37+
"display_name": "Branch Name",
38+
"variable_name": "branchName",
39+
"value": "funny place, Alabama"
40+
},
41+
{
42+
"display_name": "Branch ID",
43+
"variable_name": "branchID",
44+
"value": "123"
45+
}
46+
]
47+
},
48+
"name": "Abbey Baker",
49+
"recipient_code": "RCP_rjs1szi4ax5hoeo",
1050
"type": "nuban",
11-
"currency": "NGN",
12-
"name": "Flesh",
51+
"updatedAt": "2023-03-29T08:39:39.000Z",
52+
"is_deleted": false,
53+
"isDeleted": false,
1354
"details": {
14-
"account_number": "olounje",
15-
"account_name": null,
16-
"bank_code": "044",
17-
"bank_name": "Access Bank"
18-
},
19-
"metadata": null,
20-
"recipient_code": "RCP_2x5j67tnnw1t98k",
21-
"active": true,
22-
"id": 28,
23-
"integration": 100073,
24-
"createdAt": "2017-02-02T19:39:04.000Z",
25-
"updatedAt": "2017-02-02T19:39:04.000Z"
55+
"authorization_code": null,
56+
"account_number": "0123456789",
57+
"account_name": "Abbey Baker",
58+
"bank_code": "058",
59+
"bank_name": "Guaranty Trust Bank"
60+
}
2661
},
27-
"domain": "test",
28-
"amount": 4400,
29-
"currency": "NGN",
30-
"source": "balance",
31-
"source_details": null,
32-
"reason": "Redemption",
33-
"status": "pending",
34-
"failures": null,
35-
"transfer_code": "TRF_2x5j67tnnw1t98k",
36-
"id": 14938,
37-
"createdAt": "2017-02-03T17:21:54.000Z",
38-
"updatedAt": "2017-02-03T17:21:54.000Z"
62+
"session": {
63+
"provider": null,
64+
"id": null
65+
},
66+
"fee_charged": 0,
67+
"fees_breakdown": null,
68+
"gateway_response": null
3969
}
4070
}
4171
}

dist/api/transfers/verify/response.json

Lines changed: 69 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -2,54 +2,78 @@
22
"200": {
33
"description": "200 Ok",
44
"data": {
5-
"status": true,
6-
"message": "Transfer retrieved",
7-
"data": {
8-
"integration": 119333,
9-
"recipient": {
10-
"domain": "test",
11-
"type": "nuban",
12-
"currency": "NGN",
13-
"name": "Zombie",
14-
"details": {
15-
"account_number": "0100000001",
16-
"account_name": null,
17-
"bank_code": "044",
18-
"bank_name": "Access Bank"
19-
},
20-
"description": "Zombier",
21-
"metadata": "",
22-
"recipient_code": "RCP_c2mty1w1uvd4av4",
23-
"active": true,
24-
"email": null,
25-
"id": 31911,
26-
"integration": 119333,
27-
"createdAt": "2017-10-13T20:35:51.000Z",
28-
"updatedAt": "2017-10-13T20:35:51.000Z"
29-
},
30-
"domain": "test",
31-
"amount": 50000,
32-
"currency": "NGN",
33-
"reference": "ref_demo",
34-
"source": "balance",
35-
"source_details": null,
36-
"reason": "Test for reference",
37-
"status": "success",
38-
"failures": null,
39-
"transfer_code": "TRF_kjati32r73poyt5",
40-
"titan_code": null,
41-
"transferred_at": null,
42-
"id": 476948,
43-
"createdAt": "2018-07-22T10:29:33.000Z",
44-
"updatedAt": "2018-07-22T10:29:33.000Z"
45-
}
46-
}
5+
"status": true,
6+
"message": "Transfer retrieved",
7+
"data": {
8+
"amount": 20000,
9+
"createdAt": "2024-02-01T08:32:21.000Z",
10+
"currency": "NGN",
11+
"domain": "test",
12+
"failures": null,
13+
"id": 451930323,
14+
"integration": 463433,
15+
"reason": "Life go better for you",
16+
"reference": "ge-bzrf8u8k2pygxrnqf",
17+
"source": "balance",
18+
"source_details": null,
19+
"status": "success",
20+
"titan_code": null,
21+
"transfer_code": "TRF_fpmd0l8uta8upow7",
22+
"request": 502643104,
23+
"transferred_at": null,
24+
"updatedAt": "2024-02-01T08:34:07.000Z",
25+
"recipient": {
26+
"active": true,
27+
"createdAt": "2021-10-21T11:08:04.000Z",
28+
"currency": "NGN",
29+
"description": null,
30+
"domain": "test",
31+
"email": "[email protected]",
32+
"id": 19643784,
33+
"integration": 463433,
34+
"metadata": {
35+
"custom_fields": [
36+
{
37+
"display_name": "Branch Name",
38+
"variable_name": "branchName",
39+
"value": "funny place, Alabama"
40+
},
41+
{
42+
"display_name": "Branch ID",
43+
"variable_name": "branchID",
44+
"value": "123"
45+
}
46+
]
47+
},
48+
"name": "Abbey Baker",
49+
"recipient_code": "RCP_rjs1szi4ax5hoeo",
50+
"type": "nuban",
51+
"updatedAt": "2023-03-29T08:39:39.000Z",
52+
"is_deleted": false,
53+
"isDeleted": false,
54+
"details": {
55+
"authorization_code": null,
56+
"account_number": "0123456789",
57+
"account_name": "Abbey Baker",
58+
"bank_code": "058",
59+
"bank_name": "Guaranty Trust Bank"
60+
}
61+
},
62+
"session": {
63+
"provider": null,
64+
"id": null
65+
},
66+
"fee_charged": 0,
67+
"fees_breakdown": null,
68+
"gateway_response": null
69+
}
70+
}
4771
},
4872
"404": {
4973
"description": "404 Not Found",
5074
"data": {
51-
"status": false,
52-
"message": "Transfer not found"
53-
}
75+
"status": false,
76+
"message": "Transfer not found"
77+
}
5478
}
5579
}

src/api/preauthorization/capture/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
$url = "https://api.paystack.co/preauthorization/capture";
33

44
$fields = [
5-
'reference' => '123-abc'
6-
'currency' => 'ZAR'
5+
'reference' => '123-abc',
6+
'currency' => 'ZAR',
77
'amount' => '10000'
88
];
99

src/api/preauthorization/initialize/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
$url = "https://api.paystack.co/preauthorization/initialize";
33

44
$fields = [
5-
'reference' => '123-abc'
6-
'currency' => 'ZAR'
5+
'reference' => '123-abc',
6+
'currency' => 'ZAR',
77
'amount' => '10000'
88
];
99

src/api/transfers/fetch/response.json

Lines changed: 56 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,67 @@
55
"status": true,
66
"message": "Transfer retrieved",
77
"data": {
8+
"amount": 20000,
9+
"createdAt": "2024-02-01T08:32:21.000Z",
10+
"currency": "NGN",
11+
"domain": "test",
12+
"failures": null,
13+
"id": 451930323,
14+
"integration": 463433,
15+
"reason": "Life go better for you",
16+
"reference": "ge-bzrf8u8k2pygxrnqf",
17+
"source": "balance",
18+
"source_details": null,
19+
"status": "success",
20+
"titan_code": null,
21+
"transfer_code": "TRF_fpmd0l8uta8upow7",
22+
"request": 502643104,
23+
"transferred_at": null,
24+
"updatedAt": "2024-02-01T08:34:07.000Z",
825
"recipient": {
26+
"active": true,
27+
"createdAt": "2021-10-21T11:08:04.000Z",
28+
"currency": "NGN",
29+
"description": null,
930
"domain": "test",
31+
"email": "[email protected]",
32+
"id": 19643784,
33+
"integration": 463433,
34+
"metadata": {
35+
"custom_fields": [
36+
{
37+
"display_name": "Branch Name",
38+
"variable_name": "branchName",
39+
"value": "funny place, Alabama"
40+
},
41+
{
42+
"display_name": "Branch ID",
43+
"variable_name": "branchID",
44+
"value": "123"
45+
}
46+
]
47+
},
48+
"name": "Abbey Baker",
49+
"recipient_code": "RCP_rjs1szi4ax5hoeo",
1050
"type": "nuban",
11-
"currency": "NGN",
12-
"name": "Flesh",
51+
"updatedAt": "2023-03-29T08:39:39.000Z",
52+
"is_deleted": false,
53+
"isDeleted": false,
1354
"details": {
14-
"account_number": "olounje",
15-
"account_name": null,
16-
"bank_code": "044",
17-
"bank_name": "Access Bank"
18-
},
19-
"metadata": null,
20-
"recipient_code": "RCP_2x5j67tnnw1t98k",
21-
"active": true,
22-
"id": 28,
23-
"integration": 100073,
24-
"createdAt": "2017-02-02T19:39:04.000Z",
25-
"updatedAt": "2017-02-02T19:39:04.000Z"
55+
"authorization_code": null,
56+
"account_number": "0123456789",
57+
"account_name": "Abbey Baker",
58+
"bank_code": "058",
59+
"bank_name": "Guaranty Trust Bank"
60+
}
2661
},
27-
"domain": "test",
28-
"amount": 4400,
29-
"currency": "NGN",
30-
"source": "balance",
31-
"source_details": null,
32-
"reason": "Redemption",
33-
"status": "pending",
34-
"failures": null,
35-
"transfer_code": "TRF_2x5j67tnnw1t98k",
36-
"id": 14938,
37-
"createdAt": "2017-02-03T17:21:54.000Z",
38-
"updatedAt": "2017-02-03T17:21:54.000Z"
62+
"session": {
63+
"provider": null,
64+
"id": null
65+
},
66+
"fee_charged": 0,
67+
"fees_breakdown": null,
68+
"gateway_response": null
3969
}
4070
}
4171
}

0 commit comments

Comments
 (0)