11const sh = `curl https://api.paystack.co/subaccount
22-H "Authorization: Bearer YOUR_SECRET_KEY"
33-H "Content-Type: application/json"
4- -d '{ "business_name": "Cheese Sticks ",
4+ -d '{ "business_name": "Oasis ",
55 "bank_code": "058",
6- "account_number": "0123456789 ",
7- "percentage_charge": 20
6+ "account_number": "0123456047 ",
7+ "percentage_charge": 30
88 }'
99-X POST`
1010
1111const js = `const https = require('https')
1212
1313const params = JSON.stringify({
14- "business_name": "Cheese Sticks ",
14+ "business_name": "Oasis ",
1515 "bank_code": "058",
16- "account_number": "0123456789 ",
17- "percentage_charge": 20
16+ "account_number": "0123456047 ",
17+ "percentage_charge": 30
1818})
1919
2020const options = {
@@ -49,10 +49,10 @@ const php = `<?php
4949 $url = "https://api.paystack.co/subaccount";
5050
5151 $fields = [
52- 'business_name' => "Cheese Sticks ",
52+ 'business_name' => "Oasis ",
5353 'bank_code' => "058",
54- 'account_number' => "0123456789 ",
55- 'percentage_charge' => 20
54+ 'account_number' => "0123456047 ",
55+ 'percentage_charge' => 30
5656 ];
5757
5858 $fields_string = http_build_query($fields);
@@ -81,27 +81,26 @@ const json = `{
8181 "status": true,
8282 "message": "Subaccount created",
8383 "data": {
84- "business_name": "Cheese Sticks ",
85- "account_number": "0123456789 ",
86- "percentage_charge": 20 ,
84+ "business_name": "Oasis ",
85+ "account_number": "0123456047 ",
86+ "percentage_charge": 30 ,
8787 "settlement_bank": "Guaranty Trust Bank",
8888 "currency": "NGN",
8989 "bank": 9,
9090 "integration": 463433,
9191 "domain": "test",
92- "account_name": "Jamie Ng ",
92+ "account_name": "LARRY JAMES O ",
9393 "product": "collection",
9494 "managed_by_integration": 463433,
95- "subaccount_code": "ACCT_xxxxxxxxxxxx ",
95+ "subaccount_code": "ACCT_6uujpqtzmnufzkw ",
9696 "is_verified": false,
9797 "settlement_schedule": "AUTO",
9898 "active": true,
9999 "migrate": false,
100- "id": 1026585 ,
101- "createdAt": "2024-01-17T13:34:08.807Z ",
102- "updatedAt": "2024-01-17T13:34:08.807Z "
100+ "id": 1151727 ,
101+ "createdAt": "2024-08-26T09:24:28.723Z ",
102+ "updatedAt": "2024-08-26T09:24:28.723Z "
103103 }
104- }
105- `
104+ }`
106105
107106export { sh , js , php , json }
0 commit comments