We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 420140f commit 7e622a2Copy full SHA for 7e622a2
dist/doc/terminal/virtual-terminal/create-virtual-terminal.js
@@ -69,19 +69,16 @@ const php = `<?php
69
?>
70
`
71
72
-const sh = `#!/bin/sh
73
-
74
-url="https://api.paystack.co/virtual_terminal"
75
-authorization="Authorization: Bearer YOUR_SECRET_KEY"
76
-content_type="Content-Type: application/json"
77
-data='{
+const sh = `curl "https://api.paystack.co/virtual_terminal" \
+-H "Authorization: Bearer YOUR_SECRET_KEY" \
+-H "Content-Type: application/json" \
+-d '{
78
"name": "Sales Point #1",
79
"destinations": [
80
{"target": "+2347081234567"}
81
]
82
-}'
83
84
-curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X POST`
+}' \
+-X POST`
85
86
const json = `{
87
"status": true,
0 commit comments