Skip to content

Commit f739a7e

Browse files
update docs code snippets
1 parent e61a9e8 commit f739a7e

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

dist/doc/payments/dedicated-virtual-account/create-dva.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const sh = `curl https://api.paystack.co/dedicated_account
22
-H "Authorization: Bearer YOUR_SECRET_KEY"
33
-H "Content-Type: application/json"
4-
-d '{ "customer": "CUS_358xertt55", "preferred_bank": "titan-paystack"}'
4+
-d '{ "customer": "CUS_358xertt55", "preferred_bank": "test-bank"}'
55
-X POST`
66

77
const js = `var https = require('https');
@@ -35,7 +35,7 @@ var req = https.request(options, function (res) {
3535
3636
var postData = JSON.stringify({
3737
"customer":"CUS_358xertt55",
38-
"preferred_bank":"titan-paystack"
38+
"preferred_bank":"test-bank"
3939
});
4040
4141
req.write(postData);
@@ -55,7 +55,7 @@ curl_setopt_array($curl, array(
5555
CURLOPT_FOLLOWLOCATION => true,
5656
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
5757
CURLOPT_CUSTOMREQUEST => "POST",
58-
CURLOPT_POSTFIELDS => array("customer" => "CUS_358xertt55", "preferred_bank" => "titan-paystack"),
58+
CURLOPT_POSTFIELDS => array("customer" => "CUS_358xertt55", "preferred_bank" => "test-bank"),
5959
CURLOPT_HTTPHEADER => array(
6060
"Authorization: Bearer SECRET_KEY",
6161
"Content-Type: application/json"
@@ -72,9 +72,9 @@ const json = `{
7272
"message": "NUBAN successfully created",
7373
"data": {
7474
"bank": {
75-
"name": "Titan Paystack",
76-
"id": 1,
77-
"slug": "titan-paystack"
75+
"name": "Test Bank",
76+
"id": 24,
77+
"slug": "test-bank"
7878
},
7979
"account_name": "KaroKart Rhoda Church",
8080
"account_number": "9930000737",

src/doc/payments/dedicated-virtual-account/create-dva/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var req = https.request(options, function (res) {
2929

3030
var postData = JSON.stringify({
3131
"customer":"CUS_358xertt55",
32-
"preferred_bank":"titan-paystack"
32+
"preferred_bank":"test-bank"
3333
});
3434

3535
req.write(postData);

src/doc/payments/dedicated-virtual-account/create-dva/index.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"message": "NUBAN successfully created",
44
"data": {
55
"bank": {
6-
"name": "Titan Paystack",
7-
"id": 1,
8-
"slug": "titan-paystack"
6+
"name": "Test Bank",
7+
"id": 24,
8+
"slug": "test-bank"
99
},
1010
"account_name": "KaroKart Rhoda Church",
1111
"account_number": "9930000737",

src/doc/payments/dedicated-virtual-account/create-dva/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
CURLOPT_FOLLOWLOCATION => true,
1212
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
1313
CURLOPT_CUSTOMREQUEST => "POST",
14-
CURLOPT_POSTFIELDS => array("customer" => "CUS_358xertt55", "preferred_bank" => "titan-paystack"),
14+
CURLOPT_POSTFIELDS => array("customer" => "CUS_358xertt55", "preferred_bank" => "test-bank"),
1515
CURLOPT_HTTPHEADER => array(
1616
"Authorization: Bearer SECRET_KEY",
1717
"Content-Type: application/json"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
curl https://api.paystack.co/dedicated_account
22
-H "Authorization: Bearer YOUR_SECRET_KEY"
33
-H "Content-Type: application/json"
4-
-d '{ "customer": "CUS_358xertt55", "preferred_bank": "titan-paystack"}'
4+
-d '{ "customer": "CUS_358xertt55", "preferred_bank": "test-bank"}'
55
-X POST

0 commit comments

Comments
 (0)