File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
dist/doc/payments/payment-methods Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const json = `{
1111 "paid_at": "2018-12-05T15:58:45.000Z",
1212 "created_at": "2018-12-05T15:58:02.000Z",
1313 "channel": "qr",
14- "currency": "NGN ",
14+ "currency": "ZAR ",
1515 "ip_address": "18.130.45.28, 141.101.107.157",
1616 "metadata": "",
1717 "log": null,
@@ -25,8 +25,8 @@ const json = `{
2525 "exp_year": "2018",
2626 "channel": "qr",
2727 "card_type": "DEBIT",
28- "bank": "Visa QR",
29- "country_code": "NG ",
28+ "bank": "Nedbank QR",
29+ "country_code": "ZA ",
3030 "brand": "VISA",
3131 "reusable": false,
3232 "signature": null,
Original file line number Diff line number Diff line change 11const sh = `curl https://api.paystack.co/charge
22-H "Authorization: Bearer YOUR_SECRET_KEY"
33-H "Content-Type: application/json"
4- -d '{ "amount": 100 ,
4+ -d '{ "amount": 1000 ,
55 "email": "customer@email.com",
6- "currency": "NGN ",
6+ "currency": "ZAR ",
77 "qr": {
8- "provider" : "visa "
8+ "provider" : "scan-to-pay "
99 }
1010 }'
1111-X POST`
1212
1313const js = `const https = require('https')
1414
1515const params = JSON.stringify({
16- "amount": 100 ,
16+ "amount": 1000 ,
1717 "email": "customer@email.com",
18- "currency": "NGN ",
18+ "currency": "ZAR ",
1919 "qr": {
20- "provider" : "visa "
20+ "provider" : "scan-to-pay "
2121 }
2222})
2323
@@ -60,11 +60,11 @@ curl_setopt_array($curl, array(
6060 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
6161 CURLOPT_CUSTOMREQUEST => "POST",
6262 CURLOPT_POSTFIELDS => [
63- "amount" => 100 ,
63+ "amount" => 1000 ,
6464 "email" => "customer@email.com",
65- "currency" => "NGN ",
65+ "currency" => "ZAR ",
6666 "qr" => [
67- "provider" => "visa "
67+ "provider" => "scan-to-pay "
6868 ]
6969 ],
7070 CURLOPT_HTTPHEADER => array(
You can’t perform that action at this time.
0 commit comments