Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dist/api/dedicated-virtual-account/add-split/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ url="https://api.paystack.co/dedicated_account"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{ "customer": 481193,
"preferred_bank":"wema-bank",
"preferred_bank":"titan-paystack",
"split_code": "SPL_e7jnRLtzla"
}'

Expand Down Expand Up @@ -41,7 +41,7 @@ let req = https.request(options, function (res) {
});
});

let postData = JSON.stringify({"customer":481193,"preferred_bank":"wema-bank", "split_code": "SPL_e7jnRLtzla"});
let postData = JSON.stringify({"customer":481193,"preferred_bank":"titan-paystack", "split_code": "SPL_e7jnRLtzla"});

req.write(postData);

Expand All @@ -62,7 +62,7 @@ curl_setopt_array($curl, array(
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => array(
"customer" => 481193,
"preferred_bank" => "wema-bank",
"preferred_bank" => "titan-paystack",
"split_code" => "SPL_e7jnRLtzla"
),
CURLOPT_HTTPHEADER => array(
Expand Down
6 changes: 3 additions & 3 deletions dist/api/dedicated-virtual-account/add-split/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"message": "Assigned Managed Account Successfully Created",
"data": {
"bank": {
"name": "Wema Bank",
"id": 20,
"slug": "wema-bank"
"name": "Paystack-Titan",
"id": 629,
"slug": "titan-paystack"
},
"account_name": "KAROKART/YINKA ADE",
"account_number": "6731105168",
Expand Down
6 changes: 3 additions & 3 deletions dist/api/dedicated-virtual-account/create/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ url="https://api.paystack.co/dedicated_account"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{ "customer": 481193,
"preferred_bank":"wema-bank"
"preferred_bank":"titan-paystack"
}'

curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X POST`
Expand All @@ -12,7 +12,7 @@ const js = `const https = require('https')

const params = JSON.stringify({
"customer": 481193,
"preferred_bank": "wema-bank"
"preferred_bank": "titan-paystack"
})

const options = {
Expand Down Expand Up @@ -48,7 +48,7 @@ const php = `<?php

$fields = [
"customer" => 481193,
"preferred_bank" => "wema-bank"
"preferred_bank" => "titan-paystack"
];

$fields_string = http_build_query($fields);
Expand Down
6 changes: 3 additions & 3 deletions dist/api/dedicated-virtual-account/create/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"message": "NUBAN successfully created",
"data": {
"bank": {
"name": "Wema Bank",
"id": 20,
"slug": "wema-bank"
"name": "Paystack-Titan",
"id": 629,
"slug": "titan-paystack"
},
"account_name": "KAROKART / RHODA CHURCH",
"account_number": "9930000737",
Expand Down
6 changes: 3 additions & 3 deletions dist/api/dedicated-virtual-account/deactivate/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"message": "Managed Account Successfully Unassigned",
"data": {
"bank": {
"name": "Wema Bank",
"id": 20,
"slug": "wema-bank"
"name": "Paystack-Titan",
"id": 629,
"slug": "titan-paystack"
},
"account_name": "KAROKART/A YINKA",
"account_number": "9930020212",
Expand Down
6 changes: 3 additions & 3 deletions dist/api/dedicated-virtual-account/fetch/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"international_format_phone": null
},
"bank": {
"name": "Wema Bank",
"id": 20,
"slug": "wema-bank"
"name": "Paystack-Titan",
"id": 629,
"slug": "titan-paystack"
},
"id": 1234553,
"account_name": "BOOMBOOMINDUS/Sharon Rose",
Expand Down
6 changes: 3 additions & 3 deletions dist/api/dedicated-virtual-account/list/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"international_format_phone": null
},
"bank": {
"name": "Wema Bank",
"id": 20,
"slug": "wema-bank"
"name": "Paystack-Titan",
"id": 629,
"slug": "titan-paystack"
},
"id": 173,
"account_name": "KAROKART/A YINKA",
Expand Down
8 changes: 4 additions & 4 deletions dist/api/dedicated-virtual-account/providers/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"message": "Dedicated account providers retrieved",
"data": [
{
"provider_slug": "access-bank",
"bank_id": 1,
"bank_name": "Access Bank",
"id": 6
"provider_slug": "titan-paystack",
"bank_id": 629,
"bank_name": "Paystack-Titan",
"id": 9
},
{
"provider_slug": "wema-bank",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const sh = `curl https://api.paystack.co/dedicated_account
-H "Authorization: Bearer YOUR_SECRET_KEY"
-H "Content-Type: application/json"
-d '{ "customer": 481193,
"preferred_bank":"wema-bank",
"preferred_bank":"test-bank",
"split_code": "SPL_e7jnRLtzla"
}'
-X POST`
Expand Down Expand Up @@ -39,7 +39,7 @@ let req = https.request(options, function (res) {

let postData = JSON.stringify({
"customer": 481193,
"preferred_bank": "wema-bank",
"preferred_bank": "test-bank",
"split_code": "SPL_e7jnRLtzla"
});

Expand All @@ -60,7 +60,7 @@ curl_setopt_array($curl, array(
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS =>"{\"customer\":481193,\"preferred_bank\":\"wema-bank\", \"split_code\": \"SPL_e7jnRLtzla\"}",
CURLOPT_POSTFIELDS =>"{\"customer\":481193,\"preferred_bank\":\"test-bank\", \"split_code\": \"SPL_e7jnRLtzla\"}",
CURLOPT_HTTPHEADER => array(
"authorization: Bearer SECRET_KEY",
"content-type: application/json",
Expand All @@ -78,9 +78,9 @@ const json = `{
"message": "Assigned Managed Account Successfully Created",
"data": {
"bank": {
"name": "Wema Bank",
"id": 20,
"slug": "wema-bank"
"name": "Test Bank",
"id": 24,
"slug": "test-bank"
},
"account_name": "KAROKART/YINKA ADE",
"account_number": "6731105168",
Expand Down
12 changes: 6 additions & 6 deletions dist/doc/payments/dedicated-virtual-account/assign-subaccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const sh = `curl https://api.paystack.co/dedicated_account
-H "Authorization: Bearer YOUR_SECRET_KEY"
-H "Content-Type: application/json"
-d '{ "customer": 481193,
"preferred_bank":"wema-bank",
"preferred_bank":"test-bank",
"subaccount": "SUB_ACCOUNTCODE"
}'
-X POST`
Expand Down Expand Up @@ -39,7 +39,7 @@ let req = https.request(options, function (res) {

let postData = JSON.stringify({
"customer":481193,
"preferred_bank":"wema-bank",
"preferred_bank":"test-bank",
"subaccount":"SUB_ACCOUNTCODE"
});

Expand All @@ -60,7 +60,7 @@ curl_setopt_array($curl, array(
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS =>"{\"customer\":481193,\"preferred_bank\":\"wema-bank\", \"subaccount\": \"SUB_ACCOUNTCODE\"}",
CURLOPT_POSTFIELDS =>"{\"customer\":481193,\"preferred_bank\":\"test-bank\", \"subaccount\": \"SUB_ACCOUNTCODE\"}",
CURLOPT_HTTPHEADER => array(
"authorization: Bearer SECRET_KEY",
"content-type: application/json",
Expand All @@ -78,9 +78,9 @@ const json = `{
"message": "Assigned Managed Account Successfully Created",
"data": {
"bank": {
"name": "Wema Bank",
"id": 20,
"slug": "wema-bank"
"name": "Test Bank",
"id": 24,
"slug": "test-bank"
},
"account_name": "KAROKART/YINKA ADE",
"account_number": "6731105168",
Expand Down
12 changes: 6 additions & 6 deletions dist/doc/payments/dedicated-virtual-account/create-dva.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const sh = `curl https://api.paystack.co/dedicated_account
-H "Authorization: Bearer YOUR_SECRET_KEY"
-H "Content-Type: application/json"
-d '{ "customer": "CUS_358xertt55", "preferred_bank": "titan-paystack"}'
-d '{ "customer": "CUS_358xertt55", "preferred_bank": "test-bank"}'
-X POST`

const js = `var https = require('https');
Expand Down Expand Up @@ -35,7 +35,7 @@ var req = https.request(options, function (res) {

var postData = JSON.stringify({
"customer":"CUS_358xertt55",
"preferred_bank":"titan-paystack"
"preferred_bank":"test-bank"
});

req.write(postData);
Expand All @@ -55,7 +55,7 @@ curl_setopt_array($curl, array(
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => array("customer" => "CUS_358xertt55", "preferred_bank" => "titan-paystack"),
CURLOPT_POSTFIELDS => array("customer" => "CUS_358xertt55", "preferred_bank" => "test-bank"),
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer SECRET_KEY",
"Content-Type: application/json"
Expand All @@ -72,9 +72,9 @@ const json = `{
"message": "NUBAN successfully created",
"data": {
"bank": {
"name": "Titan Paystack",
"id": 1,
"slug": "titan-paystack"
"name": "Test Bank",
"id": 24,
"slug": "test-bank"
},
"account_name": "KaroKart Rhoda Church",
"account_number": "9930000737",
Expand Down
6 changes: 3 additions & 3 deletions dist/doc/payments/dedicated-virtual-account/customer.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ const json = `{

"dedicated_account": {
"bank": {
"name": "Wema Bank",
"id": 20,
"slug": "wema-bank"
"name": "Test Bank",
"id": 24,
"slug": "test-bank"
},
"id": 173,
"account_name": "KAROKART/RHODA CHURCH",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const json = `{
"sender_name": "RANDALL AKANBI HORTON",
"narration": "NIP: RHODA CHURCH -1123344343/44343231232",
"receiver_bank_account_number": "9930000902",
"receiver_bank": "Wema Bank"
"receiver_bank": "Test Bank"
}

}`
Expand Down
2 changes: 1 addition & 1 deletion src/api/dedicated-virtual-account/add-split/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ let req = https.request(options, function (res) {
});
});

let postData = JSON.stringify({"customer":481193,"preferred_bank":"wema-bank", "split_code": "SPL_e7jnRLtzla"});
let postData = JSON.stringify({"customer":481193,"preferred_bank":"titan-paystack", "split_code": "SPL_e7jnRLtzla"});

req.write(postData);

Expand Down
2 changes: 1 addition & 1 deletion src/api/dedicated-virtual-account/add-split/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => array(
"customer" => 481193,
"preferred_bank" => "wema-bank",
"preferred_bank" => "titan-paystack",
"split_code" => "SPL_e7jnRLtzla"
),
CURLOPT_HTTPHEADER => array(
Expand Down
2 changes: 1 addition & 1 deletion src/api/dedicated-virtual-account/add-split/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ url="https://api.paystack.co/dedicated_account"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{ "customer": 481193,
"preferred_bank":"wema-bank",
"preferred_bank":"titan-paystack",
"split_code": "SPL_e7jnRLtzla"
}'

Expand Down
6 changes: 3 additions & 3 deletions src/api/dedicated-virtual-account/add-split/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"message": "Assigned Managed Account Successfully Created",
"data": {
"bank": {
"name": "Wema Bank",
"id": 20,
"slug": "wema-bank"
"name": "Paystack-Titan",
"id": 629,
"slug": "titan-paystack"
},
"account_name": "KAROKART/YINKA ADE",
"account_number": "6731105168",
Expand Down
2 changes: 1 addition & 1 deletion src/api/dedicated-virtual-account/create/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const https = require('https')

const params = JSON.stringify({
"customer": 481193,
"preferred_bank": "wema-bank"
"preferred_bank": "titan-paystack"
})

const options = {
Expand Down
2 changes: 1 addition & 1 deletion src/api/dedicated-virtual-account/create/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

$fields = [
"customer" => 481193,
"preferred_bank" => "wema-bank"
"preferred_bank" => "titan-paystack"
];

$fields_string = http_build_query($fields);
Expand Down
2 changes: 1 addition & 1 deletion src/api/dedicated-virtual-account/create/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ url="https://api.paystack.co/dedicated_account"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{ "customer": 481193,
"preferred_bank":"wema-bank"
"preferred_bank":"titan-paystack"
}'

curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X POST
6 changes: 3 additions & 3 deletions src/api/dedicated-virtual-account/create/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"message": "NUBAN successfully created",
"data": {
"bank": {
"name": "Wema Bank",
"id": 20,
"slug": "wema-bank"
"name": "Paystack-Titan",
"id": 629,
"slug": "titan-paystack"
},
"account_name": "KAROKART / RHODA CHURCH",
"account_number": "9930000737",
Expand Down
6 changes: 3 additions & 3 deletions src/api/dedicated-virtual-account/deactivate/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"message": "Managed Account Successfully Unassigned",
"data": {
"bank": {
"name": "Wema Bank",
"id": 20,
"slug": "wema-bank"
"name": "Paystack-Titan",
"id": 629,
"slug": "titan-paystack"
},
"account_name": "KAROKART/A YINKA",
"account_number": "9930020212",
Expand Down
6 changes: 3 additions & 3 deletions src/api/dedicated-virtual-account/fetch/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"international_format_phone": null
},
"bank": {
"name": "Wema Bank",
"id": 20,
"slug": "wema-bank"
"name": "Paystack-Titan",
"id": 629,
"slug": "titan-paystack"
},
"id": 1234553,
"account_name": "BOOMBOOMINDUS/Sharon Rose",
Expand Down
6 changes: 3 additions & 3 deletions src/api/dedicated-virtual-account/list/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"international_format_phone": null
},
"bank": {
"name": "Wema Bank",
"id": 20,
"slug": "wema-bank"
"name": "Paystack-Titan",
"id": 629,
"slug": "titan-paystack"
},
"id": 173,
"account_name": "KAROKART/A YINKA",
Expand Down
Loading