Skip to content

Commit 8c14e71

Browse files
Chore: Rename reference to id for Fetch Refund
1 parent d6245e6 commit 8c14e71

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

dist/api/refunds/fetch/requests.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const sh = `#!/bin/sh
2-
url="https://api.paystack.co/refund/:reference"
2+
url="https://api.paystack.co/refund/:id"
33
authorization="Authorization: Bearer YOUR_SECRET_KEY"
44
55
curl "$url" -H "$authorization" -X GET`
@@ -9,7 +9,7 @@ const js = `const https = require('https')
99
const options = {
1010
hostname: 'api.paystack.co',
1111
port: 443,
12-
path: '/refund/:reference',
12+
path: '/refund/:id',
1313
method: 'GET',
1414
headers: {
1515
Authorization: 'Bearer SECRET_KEY'
@@ -34,7 +34,7 @@ const php = `<?php
3434
$curl = curl_init();
3535
3636
curl_setopt_array($curl, array(
37-
CURLOPT_URL => "https://api.paystack.co/refund/:reference",
37+
CURLOPT_URL => "https://api.paystack.co/refund/:id",
3838
CURLOPT_RETURNTRANSFER => true,
3939
CURLOPT_ENCODING => "",
4040
CURLOPT_MAXREDIRS => 10,

src/api/refunds/fetch/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const https = require('https')
33
const options = {
44
hostname: 'api.paystack.co',
55
port: 443,
6-
path: '/refund/:reference',
6+
path: '/refund/:id',
77
method: 'GET',
88
headers: {
99
Authorization: 'Bearer SECRET_KEY'

src/api/refunds/fetch/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
$curl = curl_init();
33

44
curl_setopt_array($curl, array(
5-
CURLOPT_URL => "https://api.paystack.co/refund/:reference",
5+
CURLOPT_URL => "https://api.paystack.co/refund/:id",
66
CURLOPT_RETURNTRANSFER => true,
77
CURLOPT_ENCODING => "",
88
CURLOPT_MAXREDIRS => 10,

src/api/refunds/fetch/index.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
url="https://api.paystack.co/refund/:reference"
2+
url="https://api.paystack.co/refund/:id"
33
authorization="Authorization: Bearer YOUR_SECRET_KEY"
44

55
curl "$url" -H "$authorization" -X GET

0 commit comments

Comments
 (0)