Skip to content

Commit 8175e5d

Browse files
Chore: Update Subaccount requests
1 parent 7dc8458 commit 8175e5d

File tree

8 files changed

+36
-36
lines changed

8 files changed

+36
-36
lines changed

dist/api/subaccounts/create/requests.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ url="https://api.paystack.co/subaccount"
33
authorization="Authorization: Bearer YOUR_SECRET_KEY"
44
content_type="Content-Type: application/json"
55
data='{
6-
"business_name": "Sunshine Studios",
7-
"settlement_bank": "044",
8-
"account_number": "0193274682",
9-
"percentage_charge": 18.2
6+
"business_name": "Oasis",
7+
"settlement_bank": "058",
8+
"account_number": "0123456047",
9+
"percentage_charge": 30
1010
}'
1111
1212
curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X POST`
1313

1414
const js = `const https = require('https')
1515
1616
const params = JSON.stringify({
17-
"business_name": "Sunshine Studios",
18-
"settlement_bank": "044",
19-
"account_number": "0193274682",
20-
"percentage_charge": 18.2
17+
"business_name": "Oasis",
18+
"settlement_bank": "058",
19+
"account_number": "0123456047",
20+
"percentage_charge": 30
2121
})
2222
2323
const options = {
@@ -52,10 +52,10 @@ const php = `<?php
5252
$url = "https://api.paystack.co/subaccount";
5353
5454
$fields = [
55-
'business_name' => "Sunshine Studios",
56-
'settlement_bank' => "044",
57-
'account_number' => "0193274682",
58-
'percentage_charge' => 18.2
55+
'business_name' => "Oasis",
56+
'settlement_bank' => "058",
57+
'account_number' => "0123456047",
58+
'percentage_charge' => 30
5959
];
6060
6161
$fields_string = http_build_query($fields);

dist/api/subaccounts/update/requests.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ url="https://api.paystack.co/subaccount/:id_or_code"
33
authorization="Authorization: Bearer YOUR_SECRET_KEY"
44
content_type="Content-Type: application/json"
55
data='{
6-
"primary_contact_email": "[email protected]",
7-
"percentage_charge": 18.9
6+
"business_name": "Oasis Global",
7+
"description": "Provide IT services"
88
}'
99
1010
curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X PUT`
1111

1212
const js = `const https = require('https')
1313
1414
const params = JSON.stringify({
15-
"primary_contact_email": "[email protected]",
16-
"percentage_charge": 18.9
15+
"business_name": "Oasis Global",
16+
"description": "Provide IT services"
1717
})
1818
1919
const options = {
@@ -48,8 +48,8 @@ const php = `<?php
4848
$url = "https://api.paystack.co/subaccount/:id_or_code";
4949
5050
$fields = [
51-
'primary_contact_email' => "[email protected]",
52-
'percentage_charge' => 18.9
51+
'business_name' => "Oasis Global",
52+
'description' => "Provide IT services"
5353
];
5454
5555
$fields_string = http_build_query($fields);

src/api/subaccounts/create/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
const https = require('https')
22

33
const params = JSON.stringify({
4-
"business_name": "Sunshine Studios",
5-
"settlement_bank": "044",
6-
"account_number": "0193274682",
7-
"percentage_charge": 18.2
4+
"business_name": "Oasis",
5+
"settlement_bank": "058",
6+
"account_number": "0123456047",
7+
"percentage_charge": 30
88
})
99

1010
const options = {

src/api/subaccounts/create/index.php

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

44
$fields = [
5-
'business_name' => "Sunshine Studios",
6-
'settlement_bank' => "044",
7-
'account_number' => "0193274682",
8-
'percentage_charge' => 18.2
5+
'business_name' => "Oasis",
6+
'settlement_bank' => "058",
7+
'account_number' => "0123456047",
8+
'percentage_charge' => 30
99
];
1010

1111
$fields_string = http_build_query($fields);

src/api/subaccounts/create/index.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ url="https://api.paystack.co/subaccount"
33
authorization="Authorization: Bearer YOUR_SECRET_KEY"
44
content_type="Content-Type: application/json"
55
data='{
6-
"business_name": "Sunshine Studios",
7-
"settlement_bank": "044",
8-
"account_number": "0193274682",
9-
"percentage_charge": 18.2
6+
"business_name": "Oasis",
7+
"settlement_bank": "058",
8+
"account_number": "0123456047",
9+
"percentage_charge": 30
1010
}'
1111

1212
curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X POST

src/api/subaccounts/update/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const https = require('https')
22

33
const params = JSON.stringify({
4-
"primary_contact_email": "[email protected]",
5-
"percentage_charge": 18.9
4+
"business_name": "Oasis Global",
5+
"description": "Provide IT services"
66
})
77

88
const options = {

src/api/subaccounts/update/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/subaccount/:id_or_code";
33

44
$fields = [
5-
'primary_contact_email' => "[email protected]",
6-
'percentage_charge' => 18.9
5+
'business_name' => "Oasis Global",
6+
'description' => "Provide IT services"
77
];
88

99
$fields_string = http_build_query($fields);

src/api/subaccounts/update/index.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ url="https://api.paystack.co/subaccount/:id_or_code"
33
authorization="Authorization: Bearer YOUR_SECRET_KEY"
44
content_type="Content-Type: application/json"
55
data='{
6-
"primary_contact_email": "[email protected]",
7-
"percentage_charge": 18.9
6+
"business_name": "Oasis Global",
7+
"description": "Provide IT services"
88
}'
99

1010
curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X PUT

0 commit comments

Comments
 (0)