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='{
1515 ]
1616 },
1717 "bank": {
18- code: "057",
19- account_number: "0000000000"
18+ " code" : "057",
19+ " account_number" : "0000000000"
2020 },
2121 "birthday": "1995-12-23"
2222}'
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ url="https://api.paystack.co/customer"
33authorization="Authorization: Bearer YOUR_SECRET_KEY"
44content_type="Content-Type: application/json"
55data='{
6- "email": "zero@sum .com",
6+ "email": "customer@example .com",
77 "first_name": "Zero",
88 "last_name": "Sum",
99 "phone": "+2348123456789"
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ const sh = `#!/bin/sh
22url="https://api.paystack.co/plan/:id_or_code"
33authorization="Authorization: Bearer YOUR_SECRET_KEY"
44content_type="Content-Type: application/json"
5- data='{ "name": "Monthly retainer (renamed)" }'
5+ data='{
6+ "name": "Monthly retainer (renamed)"
7+ }'
68
79curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X PUT`
810
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ const sh = `#!/bin/sh
22url="https://api.paystack.co/product"
33authorization="Authorization: Bearer YOUR_SECRET_KEY"
44content_type="Content-Type: application/json"
5- data='{ "name": "Puff Puff",
5+ data='{
6+ "name": "Puff Puff",
67 "description": "Crispy flour ball with fluffy interior",
78 "price": "5000",
89 "currency": "NGN",
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ url="https://api.paystack.co/terminal/{terminal_id}"
33authorization="Authorization: Bearer YOUR_SECRET_KEY"
44content_type="Content-Type: application/json"
55data='{
6- "address": "Somewhere on earth
6+ "address": "Somewhere on earth"
77}'
88
99curl "$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"
55data='{
66 "source": "balance",
77 "reason": "Calm down",
8- "amount":3794800, "recipient": "RCP_gx2wn530m0i3w3m"
8+ "amount":3794800,
9+ "recipient": "RCP_gx2wn530m0i3w3m"
910}'
1011
1112curl "$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='{
1515 ]
1616 },
1717 "bank": {
18- code: "057",
19- account_number: "0000000000"
18+ " code" : "057",
19+ " account_number" : "0000000000"
2020 },
2121 "birthday": "1995-12-23"
2222}'
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ url="https://api.paystack.co/customer"
33authorization=" Authorization: Bearer YOUR_SECRET_KEY"
44content_type=" Content-Type: application/json"
55data=' {
6- "email": "zero@sum .com",
6+ "email": "customer@example .com",
77 "first_name": "Zero",
88 "last_name": "Sum",
99 "phone": "+2348123456789"
Original file line number Diff line number Diff line change 22url=" https://api.paystack.co/plan/:id_or_code"
33authorization=" Authorization: Bearer YOUR_SECRET_KEY"
44content_type=" Content-Type: application/json"
5- data=' { "name": "Monthly retainer (renamed)" }'
5+ data=' {
6+ "name": "Monthly retainer (renamed)"
7+ }'
68
79curl " $url " -H " $authorization " -H " $content_type " -d " $data " -X PUT
Original file line number Diff line number Diff line change 22url=" https://api.paystack.co/product"
33authorization=" Authorization: Bearer YOUR_SECRET_KEY"
44content_type=" Content-Type: application/json"
5- data=' { "name": "Puff Puff",
5+ data=' {
6+ "name": "Puff Puff",
67 "description": "Crispy flour ball with fluffy interior",
78 "price": "5000",
89 "currency": "NGN",
You can’t perform that action at this time.
0 commit comments