Adding satspay docs, making same as btcpay
This commit is contained in:
parent
d95159d73b
commit
5c894ff707
3 changed files with 22 additions and 6 deletions
|
|
@ -60,19 +60,34 @@
|
||||||
group="api"
|
group="api"
|
||||||
dense
|
dense
|
||||||
expand-separator
|
expand-separator
|
||||||
label="Create a pay link"
|
label="Create a charge link"
|
||||||
>
|
>
|
||||||
<q-card>
|
<q-card>
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
<code><span class="text-green">POST</span> /pay/api/v1/links</code>
|
<code><span class="text-green">POST</span> /pay/api/v1/links</code>
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Headers</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Headers</h5>
|
||||||
<code>{"X-Api-Key": <admin_key>}</code><br />
|
<code>{"X-Api-Key": <invoice_key>}</code><br />
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Body (application/json)</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Body (application/json)</h5>
|
||||||
<code>{"description": <string> "amount": <integer>}</code>
|
<code>{"description": <string> "amount": <integer>}</code>
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">
|
<h5 class="text-caption q-mt-sm q-mb-none">
|
||||||
Returns 201 CREATED (application/json)
|
Returns 201 CREATED (application/json)
|
||||||
</h5>
|
</h5>
|
||||||
<code>{"lnurl": <string>}</code>
|
<code> {
|
||||||
|
"deliveryId": <string>,
|
||||||
|
"description": <string>,
|
||||||
|
"webhookId": <string>,
|
||||||
|
"originalDeliveryId": <string>,
|
||||||
|
"isRedelivery": <boolean>,
|
||||||
|
"type": <string>,
|
||||||
|
"timestamp": <int>,
|
||||||
|
"paytime": <int>,
|
||||||
|
"storeId": <string>,
|
||||||
|
"invoiceId": <string>,
|
||||||
|
"manuallyMarked": <boolean>,
|
||||||
|
"overPaid": <boolean>,
|
||||||
|
"afterExpiration": <boolean>,
|
||||||
|
"partiallyPaid": <boolean>
|
||||||
|
}<br/><small>"type" can be InvoiceReceivedPayment, InvoicePaidInFull, InvoiceExpired, InvoiceConfirmed, and InvoiceInvalid</small> </code>
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>curl -X POST {{ request.url_root }}pay/api/v1/links -d
|
>curl -X POST {{ request.url_root }}pay/api/v1/links -d
|
||||||
|
|
|
||||||
|
|
@ -149,9 +149,9 @@
|
||||||
<q-input
|
<q-input
|
||||||
filled
|
filled
|
||||||
dense
|
dense
|
||||||
v-model.trim="formDialogCharge.data.title"
|
v-model.trim="formDialogCharge.data.description"
|
||||||
type="text"
|
type="text"
|
||||||
label="Title"
|
label="Description"
|
||||||
></q-input>
|
></q-input>
|
||||||
|
|
||||||
<q-input
|
<q-input
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@
|
||||||
group="api"
|
group="api"
|
||||||
dense
|
dense
|
||||||
expand-separator
|
expand-separator
|
||||||
label="Create a pay link"
|
label="Create a charge link"
|
||||||
>
|
>
|
||||||
<q-card>
|
<q-card>
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
|
|
@ -71,6 +71,7 @@
|
||||||
<code>{"description": <string> "amount": <integer>}</code>
|
<code>{"description": <string> "amount": <integer>}</code>
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">
|
<h5 class="text-caption q-mt-sm q-mb-none">
|
||||||
Returns 201 CREATED (application/json)
|
Returns 201 CREATED (application/json)
|
||||||
|
|
||||||
</h5>
|
</h5>
|
||||||
<code>{"lnurl": <string>}</code>
|
<code>{"lnurl": <string>}</code>
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue