@@ -3,21 +3,21 @@ url="https://api.paystack.co/subaccount"
33authorization="Authorization: Bearer YOUR_SECRET_KEY"
44content_type="Content-Type: application/json"
55data='{
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
1212curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X POST`
1313
1414const js = `const https = require('https')
1515
1616const 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
2323const 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);
0 commit comments