diff --git a/dist/api/subaccounts/create/requests.js b/dist/api/subaccounts/create/requests.js index 9b33656..c2feeda 100644 --- a/dist/api/subaccounts/create/requests.js +++ b/dist/api/subaccounts/create/requests.js @@ -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` @@ -14,10 +14,10 @@ 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 = { @@ -52,10 +52,10 @@ const php = ` "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); diff --git a/dist/api/subaccounts/update/requests.js b/dist/api/subaccounts/update/requests.js index faf2c78..2acb075 100644 --- a/dist/api/subaccounts/update/requests.js +++ b/dist/api/subaccounts/update/requests.js @@ -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": "dafe@aba.com", - "percentage_charge": 18.9 + "business_name": "Oasis Global", + "description": "Provide IT services" }' curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X PUT` @@ -12,8 +12,8 @@ curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X PUT` const js = `const https = require('https') const params = JSON.stringify({ - "primary_contact_email": "dafe@aba.com", - "percentage_charge": 18.9 + "business_name": "Oasis Global", + "description": "Provide IT services" }) const options = { @@ -48,8 +48,8 @@ const php = ` "dafe@aba.com", - 'percentage_charge' => 18.9 + 'business_name' => "Oasis Global", + 'description' => "Provide IT services" ]; $fields_string = http_build_query($fields); diff --git a/src/api/subaccounts/create/index.js b/src/api/subaccounts/create/index.js index 5fa6cfe..9133b9b 100644 --- a/src/api/subaccounts/create/index.js +++ b/src/api/subaccounts/create/index.js @@ -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 = { diff --git a/src/api/subaccounts/create/index.php b/src/api/subaccounts/create/index.php index 773346f..b145ac5 100644 --- a/src/api/subaccounts/create/index.php +++ b/src/api/subaccounts/create/index.php @@ -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); diff --git a/src/api/subaccounts/create/index.sh b/src/api/subaccounts/create/index.sh index 1fd8b58..517f022 100644 --- a/src/api/subaccounts/create/index.sh +++ b/src/api/subaccounts/create/index.sh @@ -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 \ No newline at end of file diff --git a/src/api/subaccounts/update/index.js b/src/api/subaccounts/update/index.js index 6dd3219..6f990a0 100644 --- a/src/api/subaccounts/update/index.js +++ b/src/api/subaccounts/update/index.js @@ -1,8 +1,8 @@ const https = require('https') const params = JSON.stringify({ - "primary_contact_email": "dafe@aba.com", - "percentage_charge": 18.9 + "business_name": "Oasis Global", + "description": "Provide IT services" }) const options = { diff --git a/src/api/subaccounts/update/index.php b/src/api/subaccounts/update/index.php index 6938a5f..c084033 100644 --- a/src/api/subaccounts/update/index.php +++ b/src/api/subaccounts/update/index.php @@ -2,8 +2,8 @@ $url = "https://api.paystack.co/subaccount/:id_or_code"; $fields = [ - 'primary_contact_email' => "dafe@aba.com", - 'percentage_charge' => 18.9 + 'business_name' => "Oasis Global", + 'description' => "Provide IT services" ]; $fields_string = http_build_query($fields); diff --git a/src/api/subaccounts/update/index.sh b/src/api/subaccounts/update/index.sh index 121aeeb..c5a6042 100644 --- a/src/api/subaccounts/update/index.sh +++ b/src/api/subaccounts/update/index.sh @@ -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": "dafe@aba.com", - "percentage_charge": 18.9 + "business_name": "Oasis Global", + "description": "Provide IT services" }' curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X PUT \ No newline at end of file