File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11const sh = `#!/bin/sh
2- url="https://api.paystack.co/refund/:reference "
2+ url="https://api.paystack.co/refund/:id "
33authorization="Authorization: Bearer YOUR_SECRET_KEY"
44
55curl "$url" -H "$authorization" -X GET`
@@ -9,7 +9,7 @@ const js = `const https = require('https')
99const 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,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const https = require('https')
33const 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'
Original file line number Diff line number Diff line change 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 ,
Original file line number Diff line number Diff line change 11#! /bin/sh
2- url=" https://api.paystack.co/refund/:reference "
2+ url=" https://api.paystack.co/refund/:id "
33authorization=" Authorization: Bearer YOUR_SECRET_KEY"
44
55curl " $url " -H " $authorization " -X GET
You can’t perform that action at this time.
0 commit comments