-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7dc8458
commit 8175e5d
Showing
8 changed files
with
36 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 = { | ||
|
@@ -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); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |