File tree Expand file tree Collapse file tree 12 files changed +22
-14
lines changed Expand file tree Collapse file tree 12 files changed +22
-14
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ data='{
15
15
]
16
16
},
17
17
"bank": {
18
- code: "057",
19
- account_number: "0000000000"
18
+ " code" : "057",
19
+ " account_number" : "0000000000"
20
20
},
21
21
"birthday": "1995-12-23"
22
22
}'
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ url="https://api.paystack.co/customer"
3
3
authorization="Authorization: Bearer YOUR_SECRET_KEY"
4
4
content_type="Content-Type: application/json"
5
5
data='{
6
- "email": "zero@sum .com",
6
+ "email": "customer@example .com",
7
7
"first_name": "Zero",
8
8
"last_name": "Sum",
9
9
"phone": "+2348123456789"
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ const sh = `#!/bin/sh
2
2
url="https://api.paystack.co/plan/:id_or_code"
3
3
authorization="Authorization: Bearer YOUR_SECRET_KEY"
4
4
content_type="Content-Type: application/json"
5
- data='{ "name": "Monthly retainer (renamed)" }'
5
+ data='{
6
+ "name": "Monthly retainer (renamed)"
7
+ }'
6
8
7
9
curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X PUT`
8
10
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ const sh = `#!/bin/sh
2
2
url="https://api.paystack.co/product"
3
3
authorization="Authorization: Bearer YOUR_SECRET_KEY"
4
4
content_type="Content-Type: application/json"
5
- data='{ "name": "Puff Puff",
5
+ data='{
6
+ "name": "Puff Puff",
6
7
"description": "Crispy flour ball with fluffy interior",
7
8
"price": "5000",
8
9
"currency": "NGN",
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ url="https://api.paystack.co/terminal/{terminal_id}"
3
3
authorization="Authorization: Bearer YOUR_SECRET_KEY"
4
4
content_type="Content-Type: application/json"
5
5
data='{
6
- "address": "Somewhere on earth
6
+ "address": "Somewhere on earth"
7
7
}'
8
8
9
9
curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X PUT`
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ content_type="Content-Type: application/json"
5
5
data='{
6
6
"source": "balance",
7
7
"reason": "Calm down",
8
- "amount":3794800, "recipient": "RCP_gx2wn530m0i3w3m"
8
+ "amount":3794800,
9
+ "recipient": "RCP_gx2wn530m0i3w3m"
9
10
}'
10
11
11
12
curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X POST`
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ data='{
15
15
]
16
16
},
17
17
"bank": {
18
- code: "057",
19
- account_number: "0000000000"
18
+ " code" : "057",
19
+ " account_number" : "0000000000"
20
20
},
21
21
"birthday": "1995-12-23"
22
22
}'
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ url="https://api.paystack.co/customer"
3
3
authorization=" Authorization: Bearer YOUR_SECRET_KEY"
4
4
content_type=" Content-Type: application/json"
5
5
data=' {
6
- "email": "zero@sum .com",
6
+ "email": "customer@example .com",
7
7
"first_name": "Zero",
8
8
"last_name": "Sum",
9
9
"phone": "+2348123456789"
Original file line number Diff line number Diff line change 2
2
url=" https://api.paystack.co/plan/:id_or_code"
3
3
authorization=" Authorization: Bearer YOUR_SECRET_KEY"
4
4
content_type=" Content-Type: application/json"
5
- data=' { "name": "Monthly retainer (renamed)" }'
5
+ data=' {
6
+ "name": "Monthly retainer (renamed)"
7
+ }'
6
8
7
9
curl " $url " -H " $authorization " -H " $content_type " -d " $data " -X PUT
Original file line number Diff line number Diff line change 2
2
url=" https://api.paystack.co/product"
3
3
authorization=" Authorization: Bearer YOUR_SECRET_KEY"
4
4
content_type=" Content-Type: application/json"
5
- data=' { "name": "Puff Puff",
5
+ data=' {
6
+ "name": "Puff Puff",
6
7
"description": "Crispy flour ball with fluffy interior",
7
8
"price": "5000",
8
9
"currency": "NGN",
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ url="https://api.paystack.co/terminal/{terminal_id}"
3
3
authorization=" Authorization: Bearer YOUR_SECRET_KEY"
4
4
content_type=" Content-Type: application/json"
5
5
data=' {
6
- "address": "Somewhere on earth
6
+ "address": "Somewhere on earth"
7
7
}'
8
8
9
9
curl " $url " -H " $authorization " -H " $content_type " -d " $data " -X PUT
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ content_type="Content-Type: application/json"
5
5
data=' {
6
6
"source": "balance",
7
7
"reason": "Calm down",
8
- "amount":3794800, "recipient": "RCP_gx2wn530m0i3w3m"
8
+ "amount":3794800,
9
+ "recipient": "RCP_gx2wn530m0i3w3m"
9
10
}'
10
11
11
12
curl " $url " -H " $authorization " -H " $content_type " -d " $data " -X POST
You can’t perform that action at this time.
0 commit comments