-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.json
More file actions
224 lines (224 loc) · 6.46 KB
/
Copy pathplugin.json
File metadata and controls
224 lines (224 loc) · 6.46 KB
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
{
"name": "U.CASH Pay",
"plugin_version": 1,
"shared": {
"app_id": "1627392873417x352193449516194700",
"published_id": "1627392873417x352193449516194700",
"version": "0.1.0",
"title": "U.CASH Pay",
"description": "Create U.CASH Pay checkout links and embedded elements. Non-custodial.",
"author": "U.CASH",
"image": "logo.png",
"license": "MIT"
},
"actions": [
{
"name": "Create U.CASH Pay link",
"internal_name": "create_ucash_pay_link",
"description": "Builds a hosted U.CASH Pay link from a publishable store Cloud token, amount, currency and title. Runs fully client-side; no server secret required.",
"key": "BUBBLE_LIVE_OBJECT_KEY_1",
"file": "server_side/create_ucash_pay_link.js",
"type": "server_side",
"fields": [
{
"label": "Cloud token",
"internal_name": "cloud_token",
"placeholder": "Store Cloud Token (publishable)",
"editor": "Text",
"types": ["text"]
},
{
"label": "Amount",
"internal_name": "amount",
"placeholder": "e.g. 10.00",
"editor": "Text",
"types": ["text"]
},
{
"label": "Currency",
"internal_name": "currency",
"placeholder": "USD",
"editor": "Text",
"types": ["text"]
},
{
"label": "Title",
"internal_name": "title",
"placeholder": "Checkout title shown on pay.u.cash",
"editor": "Text",
"types": ["text"]
},
{
"label": "External reference",
"internal_name": "external_reference",
"placeholder": "Your order/record id (optional)",
"editor": "Text",
"types": ["text"]
},
{
"label": "Redirect URL",
"internal_name": "redirect",
"placeholder": "Where to send the buyer after payment (optional)",
"editor": "Text",
"types": ["text"]
}
],
"return_values": [
{
"label": "Payment URL",
"internal_name": "payment_url",
"types": ["text"]
}
]
},
{
"name": "Create U.CASH checkout (server-side)",
"internal_name": "create_ucash_checkout",
"description": "Calls the pay.u.cash server-side tracked checkout endpoint from a Bubble server-side workflow. Idempotent per external_reference. Returns the hosted payment URL and transaction id.",
"key": "BUBBLE_LIVE_OBJECT_KEY_2",
"file": "server_side/create_ucash_checkout.js",
"type": "server_side",
"fields": [
{
"label": "Cloud token",
"internal_name": "cloud_token",
"placeholder": "Store Cloud Token",
"editor": "Text",
"types": ["text"]
},
{
"label": "Amount",
"internal_name": "amount",
"placeholder": "e.g. 10.00",
"editor": "Text",
"types": ["text"]
},
{
"label": "Currency code",
"internal_name": "currency_code",
"placeholder": "USD",
"editor": "Text",
"types": ["text"]
},
{
"label": "Title",
"internal_name": "title",
"placeholder": "Checkout title shown on pay.u.cash",
"editor": "Text",
"types": ["text"]
},
{
"label": "External reference",
"internal_name": "external_reference",
"placeholder": "Your order/record id (used for idempotency)",
"editor": "Text",
"types": ["text"]
},
{
"label": "Redirect URL",
"internal_name": "redirect",
"placeholder": "Where to send the buyer after payment (optional)",
"editor": "Text",
"types": ["text"]
}
],
"return_values": [
{
"label": "Payment URL",
"internal_name": "payment_url",
"types": ["text"]
},
{
"label": "Transaction ID",
"internal_name": "transaction_id",
"types": ["text"]
},
{
"label": "Success",
"internal_name": "success",
"types": ["boolean"]
},
{
"label": "Error",
"internal_name": "error",
"types": ["text"]
}
]
}
],
"elements": [
{
"name": "U.CASH Pay button",
"internal_name": "ucash_pay_button",
"description": "Renders a button that opens a hosted U.CASH Pay checkout built from a publishable store Cloud token. Fully client-side, non-custodial.",
"key": "BUBBLE_LIVE_OBJECT_KEY_3",
"file": "client_side/ucash_pay_button.js",
"type": "element",
"visual": true,
"attributes": [
{
"label": "Cloud token",
"internal_name": "cloud_token",
"placeholder": "Store Cloud Token (publishable)",
"editor": "Text",
"types": ["text"]
},
{
"label": "Amount",
"internal_name": "amount",
"placeholder": "e.g. 10.00",
"editor": "Text",
"types": ["text"]
},
{
"label": "Currency",
"internal_name": "currency",
"placeholder": "USD",
"editor": "Text",
"types": ["text"]
},
{
"label": "Title",
"internal_name": "title",
"placeholder": "Checkout title shown on pay.u.cash",
"editor": "Text",
"types": ["text"]
},
{
"label": "External reference",
"internal_name": "external_reference",
"placeholder": "Your order/record id (optional)",
"editor": "Text",
"types": ["text"]
},
{
"label": "Redirect URL",
"internal_name": "redirect",
"placeholder": "Where to send the buyer after payment (optional)",
"editor": "Text",
"types": ["text"]
},
{
"label": "Button label",
"internal_name": "button_label",
"placeholder": "Pay with U.CASH",
"editor": "Text",
"types": ["text"]
},
{
"label": "Open in new tab",
"internal_name": "new_tab",
"editor": "Checkbox",
"types": ["boolean"]
}
],
"events": [
{
"label": "Click",
"internal_name": "click",
"value": "click"
}
]
}
]
}