Skip to content

Commit df8dc95

Browse files
Chore: DD code snippet clean up
1 parent d6d3b03 commit df8dc95

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

dist/api/customers/initialize-authorization/requests.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ authorization="Authorization: Bearer YOUR_SECRET_KEY"
44
content_type="Content-Type: application/json"
55
data='{
66
"email": "[email protected]",
7-
"channels": "direct_debit",
7+
"channel": "direct_debit",
88
"callback_url": "http://test.url.com"
99
}'
1010
@@ -14,7 +14,7 @@ const js = `const https = require('https')
1414
1515
const params = JSON.stringify({
1616
"email": "[email protected]",
17-
"channels": "direct_debit",
17+
"channel": "direct_debit",
1818
"callback_url": "http://test.url.com"
1919
})
2020
@@ -51,7 +51,7 @@ const php = `<?php
5151
5252
$fields = [
5353
'email' => "[email protected]",
54-
'channels' => "direct-debit",
54+
'channel' => "direct-debit",
5555
'callback_url' => "http://test.url.com"
5656
];
5757

dist/doc/payments/direct-debit/initialize.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ curl https://api.paystack.co/customer/authorization/initialize
44
-H "Content-Type: application/json"
55
-d '{
66
"email": "[email protected]",
7-
"channels": "direct_debit",
7+
"channel": "direct_debit",
88
"callback_url": "http://test.url.com"
99
}'
1010
-X POST`
@@ -13,7 +13,7 @@ const js = `const https = require('https')
1313
1414
const params = JSON.stringify({
1515
"email" : "[email protected]",
16-
"channels": "direct_debit",
16+
"channel": "direct_debit",
1717
"callback_url": "http://test.url.com"
1818
})
1919
@@ -50,7 +50,7 @@ const php = `<?php
5050
5151
$fields = [
5252
'email' => "[email protected]",
53-
'channels' => "direct-debit",
53+
'channel' => "direct-debit",
5454
'callback_url' => "http://test.url.com"
5555
];
5656

src/api/customers/initialize-authorization/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const https = require('https')
22

33
const params = JSON.stringify({
44
"email": "[email protected]",
5-
"channels": "direct_debit",
5+
"channel": "direct_debit",
66
"callback_url": "http://test.url.com"
77
})
88

src/api/customers/initialize-authorization/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
$fields = [
55
'email' => "[email protected]",
6-
'channels' => "direct-debit",
6+
'channel' => "direct-debit",
77
'callback_url' => "http://test.url.com"
88
];
99

src/api/customers/initialize-authorization/index.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ authorization="Authorization: Bearer YOUR_SECRET_KEY"
44
content_type="Content-Type: application/json"
55
data='{
66
"email": "[email protected]",
7-
"channels": "direct_debit",
7+
"channel": "direct_debit",
88
"callback_url": "http://test.url.com"
99
}'
1010

src/doc/payments/direct-debit/initialize/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const https = require('https')
22

33
const params = JSON.stringify({
44
"email" : "[email protected]",
5-
"channels": "direct_debit",
5+
"channel": "direct_debit",
66
"callback_url": "http://test.url.com"
77
})
88

src/doc/payments/direct-debit/initialize/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
$fields = [
55
'email' => "[email protected]",
6-
'channels' => "direct-debit",
6+
'channel' => "direct-debit",
77
'callback_url' => "http://test.url.com"
88
];
99

src/doc/payments/direct-debit/initialize/index.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ curl https://api.paystack.co/customer/authorization/initialize
44
-H "Content-Type: application/json"
55
-d '{
66
"email": "[email protected]",
7-
"channels": "direct_debit",
7+
"channel": "direct_debit",
88
"callback_url": "http://test.url.com"
99
}'
1010
-X POST

0 commit comments

Comments
 (0)