diff --git a/config.json b/config.json
index 4e9bf2d..35740d0 100644
--- a/config.json
+++ b/config.json
@@ -1,5 +1,8 @@
{
+ "id": "tpos",
+ "version": "1.0.0",
"name": "TPoS",
+ "repo": "https://github.com/lnbits/tpos",
"short_description": "A shareable PoS terminal!",
"tile": "/tpos/static/image/tpos.png",
"min_lnbits_version": "1.0.0",
diff --git a/models.py b/models.py
index 6588497..da71698 100644
--- a/models.py
+++ b/models.py
@@ -6,6 +6,10 @@
from pydantic import BaseModel, Field, validator
+class CreateWithdrawPay(BaseModel):
+ pay_link: str
+
+
class CreateTposInvoice(BaseModel):
amount: int = Query(..., ge=1)
memo: Optional[str] = Query(None)
diff --git a/static/js/tpos.js b/static/js/tpos.js
index af69c68..062dc7c 100644
--- a/static/js/tpos.js
+++ b/static/js/tpos.js
@@ -570,8 +570,12 @@ window.app = Vue.createApp({
}
LNbits.api
.request(
- 'GET',
- `/tpos/api/v1/atm/withdraw/${this.atmToken}/${this.sat}/pay?payLink=${payLink}`
+ 'POST',
+ `/tpos/api/v1/atm/withdraw/${this.atmToken}/${this.sat}/pay`,
+ null,
+ {
+ pay_link: payLink
+ }
)
.then(res => {
if (!res.data.success) {
diff --git a/templates/tpos/dialogs.html b/templates/tpos/dialogs.html
index 3fe576a..f09f6bb 100644
--- a/templates/tpos/dialogs.html
+++ b/templates/tpos/dialogs.html
@@ -13,13 +13,10 @@
target="_blank"
rel="noopener noreferrer"
>
-