generated from alexk111/node-red-node-typescript-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
btcpay-invoice-creator.json
99 lines (99 loc) · 2.04 KB
/
btcpay-invoice-creator.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[
{
"id": "c4c2c8b0.eff678",
"type": "btcpay-api",
"z": "ba32a89d.bb8058",
"method": "POST",
"path": "/invoices",
"client": "9711e4a7.bae348",
"name": "Create Invoice",
"x": 1580,
"y": 1200,
"wires": [["5e55e5f3.e5501c"]]
},
{
"id": "6336ada3.af15e4",
"type": "inject",
"z": "ba32a89d.bb8058",
"name": "Invoice params",
"props": [
{ "p": "price", "v": "50", "vt": "num" },
{ "p": "currency", "v": "USD", "vt": "str" },
{ "p": "notificationURL", "v": "", "vt": "str" }
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payloadType": "str",
"x": 1320,
"y": 1160,
"wires": [["ec12423d.55997"]]
},
{
"id": "5e55e5f3.e5501c",
"type": "debug",
"z": "ba32a89d.bb8058",
"name": "Invoice URL",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.url",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1810,
"y": 1200,
"wires": []
},
{
"id": "181046cb.900e49",
"type": "comment",
"z": "ba32a89d.bb8058",
"name": "Invoice Creator",
"info": "",
"x": 1300,
"y": 1120,
"wires": []
},
{
"id": "ec12423d.55997",
"type": "change",
"z": "ba32a89d.bb8058",
"name": "Prepare data for API",
"rules": [
{
"t": "move",
"p": "price",
"pt": "msg",
"to": "payload.price",
"tot": "msg"
},
{
"t": "move",
"p": "currency",
"pt": "msg",
"to": "payload.currency",
"tot": "msg"
},
{
"t": "move",
"p": "notificationURL",
"pt": "msg",
"to": "payload.notificationURL",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1560,
"y": 1160,
"wires": [["c4c2c8b0.eff678"]]
},
{ "id": "9711e4a7.bae348", "type": "btcpay-api-config", "z": "", "name": "" }
]