File tree Expand file tree Collapse file tree 6 files changed +18
-18
lines changed
direct-debit/authorization-status
direct-debit/authorization-status/events Expand file tree Collapse file tree 6 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const authorization_created = `{
3636 "message": "Authorization retrieved successfully",
3737 "data": {
3838 "authorization_code": "AUTH_JV4T9Wawdj",
39- "active": true ,
39+ "active": false ,
4040 "last4": "1234",
4141 "channel": "direct_debit",
4242 "card_type": "mandate",
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ const sh = `curl https://api.paystack.co/charge
44-d '{ "email": "customer@email.com",
55 "amount": "10000",
66 "bank": {
7- "code": "057 ",
8- "phone": "+23481234567890 ",
7+ "code": "50211 ",
8+ "phone": "+2348100000000 ",
99 "token": "123456"
1010 }
1111 }'
@@ -14,12 +14,12 @@ const sh = `curl https://api.paystack.co/charge
1414
1515const js = `const https = require('https')
1616
17- const params = JSON.stringify({
18- "email": "customer@email.com",
17+ const params = JSON.stringify({
18+ "email": "customer@email.com",
1919 "amount": "10000",
2020 "bank": {
21- "code": "057",
22- "phone": "+23481234567890 ",
21+ "code": "50211",
22+ "phone": "+2348100000000 ",
2323 "token": "123456"
2424 }
2525})
@@ -67,8 +67,8 @@ const php = `<?php
6767 "email" => "customer@email.com",
6868 "amount" => "10000",
6969 "bank" => [
70- "code" => "057 ",
71- "phone" => "+23481234567890 ",
70+ "code" => "50211 ",
71+ "phone" => "+2348100000000 ",
7272 "token" => "123456"
7373 ]
7474 ],
Original file line number Diff line number Diff line change 44 "message" : " Authorization retrieved successfully" ,
55 "data" : {
66 "authorization_code" : " AUTH_JV4T9Wawdj" ,
7- "active" : true ,
7+ "active" : false ,
88 "last4" : " 1234" ,
99 "channel" : " direct_debit" ,
1010 "card_type" : " mandate" ,
Original file line number Diff line number Diff line change 11const https = require ( 'https' )
22
3- const params = JSON . stringify ( {
4- "email" : "customer@email.com" ,
3+ const params = JSON . stringify ( {
4+ "email" : "customer@email.com" ,
55 "amount" : "10000" ,
66 "bank" : {
7- "code" : "057" ,
8- "phone" : "+23481234567890 " ,
7+ "code" : "50211" ,
8+ "phone" : "+2348100000000 " ,
99 "token" : "123456"
1010 }
1111} )
Original file line number Diff line number Diff line change 1313 "email " => "customer@email.com " ,
1414 "amount " => "10000 " ,
1515 "bank " => [
16- "code " => "057 " ,
17- "phone " => "+23481234567890 " ,
16+ "code " => "50211 " ,
17+ "phone " => "+2348100000000 " ,
1818 "token " => "123456 "
1919 ]
2020 ],
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ curl https://api.paystack.co/charge
44-d ' { "email": "customer@email.com",
55 "amount": "10000",
66 "bank": {
7- "code": "057 ",
8- "phone": "+23481234567890 ",
7+ "code": "50211 ",
8+ "phone": "+2348100000000 ",
99 "token": "123456"
1010 }
1111 }'
You can’t perform that action at this time.
0 commit comments