Skip to content

Commit

Permalink
Chore: Update Subaccount requests
Browse files Browse the repository at this point in the history
  • Loading branch information
damilola-paystack committed Aug 26, 2024
1 parent 7dc8458 commit 8175e5d
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 36 deletions.
24 changes: 12 additions & 12 deletions dist/api/subaccounts/create/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ url="https://api.paystack.co/subaccount"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{
"business_name": "Sunshine Studios",
"settlement_bank": "044",
"account_number": "0193274682",
"percentage_charge": 18.2
"business_name": "Oasis",
"settlement_bank": "058",
"account_number": "0123456047",
"percentage_charge": 30
}'
curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X POST`

const js = `const https = require('https')
const params = JSON.stringify({
"business_name": "Sunshine Studios",
"settlement_bank": "044",
"account_number": "0193274682",
"percentage_charge": 18.2
"business_name": "Oasis",
"settlement_bank": "058",
"account_number": "0123456047",
"percentage_charge": 30
})
const options = {
Expand Down Expand Up @@ -52,10 +52,10 @@ const php = `<?php
$url = "https://api.paystack.co/subaccount";
$fields = [
'business_name' => "Sunshine Studios",
'settlement_bank' => "044",
'account_number' => "0193274682",
'percentage_charge' => 18.2
'business_name' => "Oasis",
'settlement_bank' => "058",
'account_number' => "0123456047",
'percentage_charge' => 30
];
$fields_string = http_build_query($fields);
Expand Down
12 changes: 6 additions & 6 deletions dist/api/subaccounts/update/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ url="https://api.paystack.co/subaccount/:id_or_code"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{
"primary_contact_email": "[email protected]",
"percentage_charge": 18.9
"business_name": "Oasis Global",
"description": "Provide IT services"
}'
curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X PUT`

const js = `const https = require('https')
const params = JSON.stringify({
"primary_contact_email": "[email protected]",
"percentage_charge": 18.9
"business_name": "Oasis Global",
"description": "Provide IT services"
})
const options = {
Expand Down Expand Up @@ -48,8 +48,8 @@ const php = `<?php
$url = "https://api.paystack.co/subaccount/:id_or_code";
$fields = [
'primary_contact_email' => "[email protected]",
'percentage_charge' => 18.9
'business_name' => "Oasis Global",
'description' => "Provide IT services"
];
$fields_string = http_build_query($fields);
Expand Down
8 changes: 4 additions & 4 deletions src/api/subaccounts/create/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const https = require('https')

const params = JSON.stringify({
"business_name": "Sunshine Studios",
"settlement_bank": "044",
"account_number": "0193274682",
"percentage_charge": 18.2
"business_name": "Oasis",
"settlement_bank": "058",
"account_number": "0123456047",
"percentage_charge": 30
})

const options = {
Expand Down
8 changes: 4 additions & 4 deletions src/api/subaccounts/create/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
$url = "https://api.paystack.co/subaccount";

$fields = [
'business_name' => "Sunshine Studios",
'settlement_bank' => "044",
'account_number' => "0193274682",
'percentage_charge' => 18.2
'business_name' => "Oasis",
'settlement_bank' => "058",
'account_number' => "0123456047",
'percentage_charge' => 30
];

$fields_string = http_build_query($fields);
Expand Down
8 changes: 4 additions & 4 deletions src/api/subaccounts/create/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ url="https://api.paystack.co/subaccount"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{
"business_name": "Sunshine Studios",
"settlement_bank": "044",
"account_number": "0193274682",
"percentage_charge": 18.2
"business_name": "Oasis",
"settlement_bank": "058",
"account_number": "0123456047",
"percentage_charge": 30
}'

curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X POST
4 changes: 2 additions & 2 deletions src/api/subaccounts/update/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const https = require('https')

const params = JSON.stringify({
"primary_contact_email": "[email protected]",
"percentage_charge": 18.9
"business_name": "Oasis Global",
"description": "Provide IT services"
})

const options = {
Expand Down
4 changes: 2 additions & 2 deletions src/api/subaccounts/update/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
$url = "https://api.paystack.co/subaccount/:id_or_code";

$fields = [
'primary_contact_email' => "[email protected]",
'percentage_charge' => 18.9
'business_name' => "Oasis Global",
'description' => "Provide IT services"
];

$fields_string = http_build_query($fields);
Expand Down
4 changes: 2 additions & 2 deletions src/api/subaccounts/update/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ url="https://api.paystack.co/subaccount/:id_or_code"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{
"primary_contact_email": "[email protected]",
"percentage_charge": 18.9
"business_name": "Oasis Global",
"description": "Provide IT services"
}'

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

0 comments on commit 8175e5d

Please sign in to comment.