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
12 changes: 12 additions & 0 deletions dist/api/preauthorization/list/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,17 @@
"status": false,
"message": "An error occurred"
}
},
"404": {
"description": "404 Not Found",
"data": {
"status": false,
"message": "No preauthorized transaction exists for the reference provided",
"meta": {
"nextStep": "Try again later"
},
"type": "api_error",
"code": "unknown"
}
}
}
6 changes: 3 additions & 3 deletions dist/api/preauthorization/verify/requests.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const sh = `#!/bin/sh
url="https://api.paystack.co/preauthorization/verify/:reference"
url="https://api.paystack.co/preauthorization/:reference"
authorization="Authorization: Bearer YOUR_SECRET_KEY"

curl "$url" -H "$authorization" -X GET`
Expand All @@ -9,7 +9,7 @@ const js = `const https = require('https')
const options = {
hostname: 'api.paystack.co',
port: 443,
path: '/preauthorization/verify/:reference',
path: '/preauthorization/:reference',
method: 'GET',
headers: {
Authorization: 'Bearer SECRET_KEY'
Expand All @@ -35,7 +35,7 @@ const php = `<?php
$curl = curl_init();

curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.paystack.co/preauthorization/verify/:reference",
CURLOPT_URL => "https://api.paystack.co/preauthorization/:reference",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
Expand Down
2 changes: 1 addition & 1 deletion dist/api/preauthorization/verify/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"amount": 1600,
"created_at": "2023-08-24T19:00:18.000Z",
"released_at": null,
"scheduled_release_date": "2023-08-25T19:00:26.000Z",
"expiry_date": "2023-08-25T19:00:26.000Z",
"currency": "ZAR",
"metadata": null,
"fees": 100,
Expand Down
12 changes: 12 additions & 0 deletions src/api/preauthorization/list/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,17 @@
"status": false,
"message": "An error occurred"
}
},
"404": {
"description": "404 Not Found",
"data": {
"status": false,
"message": "No preauthorized transaction exists for the reference provided",
"meta": {
"nextStep": "Try again later"
},
"type": "api_error",
"code": "unknown"
}
}
}
2 changes: 1 addition & 1 deletion src/api/preauthorization/verify/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const https = require('https')
const options = {
hostname: 'api.paystack.co',
port: 443,
path: '/preauthorization/verify/:reference',
path: '/preauthorization/:reference',
method: 'GET',
headers: {
Authorization: 'Bearer SECRET_KEY'
Expand Down
2 changes: 1 addition & 1 deletion src/api/preauthorization/verify/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
$curl = curl_init();

curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.paystack.co/preauthorization/verify/:reference",
CURLOPT_URL => "https://api.paystack.co/preauthorization/:reference",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
Expand Down
2 changes: 1 addition & 1 deletion src/api/preauthorization/verify/index.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
url="https://api.paystack.co/preauthorization/verify/:reference"
url="https://api.paystack.co/preauthorization/:reference"
authorization="Authorization: Bearer YOUR_SECRET_KEY"

curl "$url" -H "$authorization" -X GET
2 changes: 1 addition & 1 deletion src/api/preauthorization/verify/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"amount": 1600,
"created_at": "2023-08-24T19:00:18.000Z",
"released_at": null,
"scheduled_release_date": "2023-08-25T19:00:26.000Z",
"expiry_date": "2023-08-25T19:00:26.000Z",
"currency": "ZAR",
"metadata": null,
"fees": 100,
Expand Down