File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed
src/doc/payments/payment-methods Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 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 ,
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 https = require ( 'https' )
22
33const params = JSON . stringify ( {
4- "amount" : 100 ,
4+ "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
Original file line number Diff line number Diff line change 99 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1 ,
1010 CURLOPT_CUSTOMREQUEST => "POST " ,
1111 CURLOPT_POSTFIELDS => [
12- "amount " => 100 ,
12+ "amount " => 1000 ,
1313 "email " => "customer@email.com " ,
14- "currency " => "NGN " ,
14+ "currency " => "ZAR " ,
1515 "qr " => [
16- "provider " => "visa "
16+ "provider " => "scan-to-pay "
1717 ]
1818 ],
1919 CURLOPT_HTTPHEADER => array (
Original file line number Diff line number Diff line change 11curl 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
You can’t perform that action at this time.
0 commit comments