Skip to content

Commit

Permalink
Chore: DD code snippet clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
damilola-paystack committed Feb 22, 2024
1 parent d6d3b03 commit df8dc95
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions dist/api/customers/initialize-authorization/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{
"email": "[email protected]",
"channels": "direct_debit",
"channel": "direct_debit",
"callback_url": "http://test.url.com"
}'
Expand All @@ -14,7 +14,7 @@ const js = `const https = require('https')
const params = JSON.stringify({
"email": "[email protected]",
"channels": "direct_debit",
"channel": "direct_debit",
"callback_url": "http://test.url.com"
})
Expand Down Expand Up @@ -51,7 +51,7 @@ const php = `<?php
$fields = [
'email' => "[email protected]",
'channels' => "direct-debit",
'channel' => "direct-debit",
'callback_url' => "http://test.url.com"
];
Expand Down
6 changes: 3 additions & 3 deletions dist/doc/payments/direct-debit/initialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ curl https://api.paystack.co/customer/authorization/initialize
-H "Content-Type: application/json"
-d '{
"email": "[email protected]",
"channels": "direct_debit",
"channel": "direct_debit",
"callback_url": "http://test.url.com"
}'
-X POST`
Expand All @@ -13,7 +13,7 @@ const js = `const https = require('https')
const params = JSON.stringify({
"email" : "[email protected]",
"channels": "direct_debit",
"channel": "direct_debit",
"callback_url": "http://test.url.com"
})
Expand Down Expand Up @@ -50,7 +50,7 @@ const php = `<?php
$fields = [
'email' => "[email protected]",
'channels' => "direct-debit",
'channel' => "direct-debit",
'callback_url' => "http://test.url.com"
];
Expand Down
2 changes: 1 addition & 1 deletion src/api/customers/initialize-authorization/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const https = require('https')

const params = JSON.stringify({
"email": "[email protected]",
"channels": "direct_debit",
"channel": "direct_debit",
"callback_url": "http://test.url.com"
})

Expand Down
2 changes: 1 addition & 1 deletion src/api/customers/initialize-authorization/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

$fields = [
'email' => "[email protected]",
'channels' => "direct-debit",
'channel' => "direct-debit",
'callback_url' => "http://test.url.com"
];

Expand Down
2 changes: 1 addition & 1 deletion src/api/customers/initialize-authorization/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{
"email": "[email protected]",
"channels": "direct_debit",
"channel": "direct_debit",
"callback_url": "http://test.url.com"
}'

Expand Down
2 changes: 1 addition & 1 deletion src/doc/payments/direct-debit/initialize/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const https = require('https')

const params = JSON.stringify({
"email" : "[email protected]",
"channels": "direct_debit",
"channel": "direct_debit",
"callback_url": "http://test.url.com"
})

Expand Down
2 changes: 1 addition & 1 deletion src/doc/payments/direct-debit/initialize/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

$fields = [
'email' => "[email protected]",
'channels' => "direct-debit",
'channel' => "direct-debit",
'callback_url' => "http://test.url.com"
];

Expand Down
2 changes: 1 addition & 1 deletion src/doc/payments/direct-debit/initialize/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ curl https://api.paystack.co/customer/authorization/initialize
-H "Content-Type: application/json"
-d '{
"email": "[email protected]",
"channels": "direct_debit",
"channel": "direct_debit",
"callback_url": "http://test.url.com"
}'
-X POST

0 comments on commit df8dc95

Please sign in to comment.