Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
6 changes: 3 additions & 3 deletions dist/doc/payments/payment-methods/qr-event.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const json = `{
"paid_at": "2018-12-05T15:58:45.000Z",
"created_at": "2018-12-05T15:58:02.000Z",
"channel": "qr",
"currency": "NGN",
"currency": "ZAR",
"ip_address": "18.130.45.28, 141.101.107.157",
"metadata": "",
"log": null,
Expand All @@ -25,8 +25,8 @@ const json = `{
"exp_year": "2018",
"channel": "qr",
"card_type": "DEBIT",
"bank": "Visa QR",
"country_code": "NG",
"bank": "Nedbank QR",
"country_code": "ZA",
"brand": "VISA",
"reusable": false,
"signature": null,
Expand Down
18 changes: 9 additions & 9 deletions dist/doc/payments/payment-methods/qr.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
const sh = `curl https://api.paystack.co/charge
-H "Authorization: Bearer YOUR_SECRET_KEY"
-H "Content-Type: application/json"
-d '{ "amount": 100,
-d '{ "amount": 1000,
"email": "[email protected]",
"currency": "NGN",
"currency": "ZAR",
"qr": {
"provider" : "visa"
"provider" : "scan-to-pay"
}
}'
-X POST`

const js = `const https = require('https')

const params = JSON.stringify({
"amount": 100,
"amount": 1000,
"email": "[email protected]",
"currency": "NGN",
"currency": "ZAR",
"qr": {
"provider" : "visa"
"provider" : "scan-to-pay"
}
})

Expand Down Expand Up @@ -60,11 +60,11 @@ curl_setopt_array($curl, array(
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => [
"amount" => 100,
"amount" => 1000,
"email" => "[email protected]",
"currency" => "NGN",
"currency" => "ZAR",
"qr" => [
"provider" => "visa"
"provider" => "scan-to-pay"
]
],
CURLOPT_HTTPHEADER => array(
Expand Down
6 changes: 3 additions & 3 deletions src/doc/payments/payment-methods/qr-event/index.json
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Andrew-Paystack kindly get a fresh response for this. We didn't have QR in SA in 2018, which is the timestamp on the code.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed it up @damilola-paystack

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"paid_at": "2018-12-05T15:58:45.000Z",
"created_at": "2018-12-05T15:58:02.000Z",
"channel": "qr",
"currency": "NGN",
"currency": "ZAR",
"ip_address": "18.130.45.28, 141.101.107.157",
"metadata": "",
"log": null,
Expand All @@ -25,8 +25,8 @@
"exp_year": "2018",
"channel": "qr",
"card_type": "DEBIT",
"bank": "Visa QR",
"country_code": "NG",
"bank": "Nedbank QR",
"country_code": "ZA",
"brand": "VISA",
"reusable": false,
"signature": null,
Expand Down
6 changes: 3 additions & 3 deletions src/doc/payments/payment-methods/qr/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const https = require('https')

const params = JSON.stringify({
"amount": 100,
"amount": 1000,
"email": "[email protected]",
"currency": "NGN",
"currency": "ZAR",
"qr": {
"provider" : "visa"
"provider" : "scan-to-pay"
}
})

Expand Down
6 changes: 3 additions & 3 deletions src/doc/payments/payment-methods/qr/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => [
"amount" => 100,
"amount" => 1000,
"email" => "[email protected]",
"currency" => "NGN",
"currency" => "ZAR",
"qr" => [
"provider" => "visa"
"provider" => "scan-to-pay"
]
],
CURLOPT_HTTPHEADER => array(
Expand Down
6 changes: 3 additions & 3 deletions src/doc/payments/payment-methods/qr/index.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
curl https://api.paystack.co/charge
-H "Authorization: Bearer YOUR_SECRET_KEY"
-H "Content-Type: application/json"
-d '{ "amount": 100,
-d '{ "amount": 1000,
"email": "[email protected]",
"currency": "NGN",
"currency": "ZAR",
"qr": {
"provider" : "visa"
"provider" : "scan-to-pay"
}
}'
-X POST