Skip to content

copy fix and update #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 9, 2024
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
4 changes: 2 additions & 2 deletions dist/api/charges/create/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ data='{
]
},
"bank": {
code: "057",
account_number: "0000000000"
"code": "057",
"account_number": "0000000000"
},
"birthday": "1995-12-23"
}'
Expand Down
2 changes: 1 addition & 1 deletion dist/api/customers/create/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ url="https://api.paystack.co/customer"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{
"email": "zero@sum.com",
"email": "customer@example.com",
"first_name": "Zero",
"last_name": "Sum",
"phone": "+2348123456789"
Expand Down
4 changes: 3 additions & 1 deletion dist/api/plans/update/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ const sh = `#!/bin/sh
url="https://api.paystack.co/plan/:id_or_code"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{ "name": "Monthly retainer (renamed)" }'
data='{
"name": "Monthly retainer (renamed)"
}'

curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X PUT`

Expand Down
3 changes: 2 additions & 1 deletion dist/api/products/create/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const sh = `#!/bin/sh
url="https://api.paystack.co/product"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{ "name": "Puff Puff",
data='{
"name": "Puff Puff",
"description": "Crispy flour ball with fluffy interior",
"price": "5000",
"currency": "NGN",
Expand Down
2 changes: 1 addition & 1 deletion dist/api/terminal/update/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ url="https://api.paystack.co/terminal/{terminal_id}"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{
"address": "Somewhere on earth
"address": "Somewhere on earth"
}'

curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X PUT`
Expand Down
3 changes: 2 additions & 1 deletion dist/api/transfers/initiate/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ content_type="Content-Type: application/json"
data='{
"source": "balance",
"reason": "Calm down",
"amount":3794800, "recipient": "RCP_gx2wn530m0i3w3m"
"amount":3794800,
"recipient": "RCP_gx2wn530m0i3w3m"
}'

curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X POST`
Expand Down
4 changes: 2 additions & 2 deletions src/api/charges/create/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ data='{
]
},
"bank": {
code: "057",
account_number: "0000000000"
"code": "057",
"account_number": "0000000000"
},
"birthday": "1995-12-23"
}'
Expand Down
2 changes: 1 addition & 1 deletion src/api/customers/create/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ url="https://api.paystack.co/customer"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{
"email": "zero@sum.com",
"email": "customer@example.com",
"first_name": "Zero",
"last_name": "Sum",
"phone": "+2348123456789"
Expand Down
4 changes: 3 additions & 1 deletion src/api/plans/update/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
url="https://api.paystack.co/plan/:id_or_code"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{ "name": "Monthly retainer (renamed)" }'
data='{
"name": "Monthly retainer (renamed)"
}'

curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X PUT
3 changes: 2 additions & 1 deletion src/api/products/create/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
url="https://api.paystack.co/product"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{ "name": "Puff Puff",
data='{
"name": "Puff Puff",
"description": "Crispy flour ball with fluffy interior",
"price": "5000",
"currency": "NGN",
Expand Down
2 changes: 1 addition & 1 deletion src/api/terminal/update/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ url="https://api.paystack.co/terminal/{terminal_id}"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{
"address": "Somewhere on earth
"address": "Somewhere on earth"
}'

curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X PUT
3 changes: 2 additions & 1 deletion src/api/transfers/initiate/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ content_type="Content-Type: application/json"
data='{
"source": "balance",
"reason": "Calm down",
"amount":3794800, "recipient": "RCP_gx2wn530m0i3w3m"
"amount":3794800,
"recipient": "RCP_gx2wn530m0i3w3m"
}'

curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X POST