@achyutlabsau/vue-payment-gateway 0.12.1 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/PBtn-CB98SoO5.js +19 -0
- package/dist/PairInstructions-BxzivULm.js +65 -0
- package/dist/TransactionDialog-C-ZrH_o5.js +58 -0
- package/dist/emitter-BNPvJMuc.js +5 -0
- package/dist/index.d.ts +1049 -9
- package/dist/index.js +120 -179
- package/dist/linkly-BP28IP8I.js +536 -0
- package/dist/linkly.d.ts +1041 -13
- package/dist/linkly.js +3 -11
- package/dist/mx51-BFqIkA9C.js +627 -0
- package/dist/mx51.d.ts +1050 -11
- package/dist/mx51.js +2 -329
- package/dist/smartpay-BsFTdLns.js +260 -0
- package/dist/smartpay.d.ts +1033 -9
- package/dist/smartpay.js +2 -13
- package/dist/till-payment-jo13Qysd.js +568 -0
- package/dist/till-payment.d.ts +1034 -10
- package/dist/till-payment.js +2 -9
- package/dist/tyro-CfOu7q7t.js +242 -0
- package/dist/tyro.d.ts +1048 -11
- package/dist/tyro.js +2 -8
- package/dist/utils-BEZ-XyNG.js +33 -0
- package/dist/utils-LqvcWjKL.js +5 -0
- package/dist/valpay-BKcmIlzR.js +534 -0
- package/dist/valpay.d.ts +1041 -9
- package/dist/valpay.js +2 -6
- package/dist/worldline-CEiMow5_.js +510 -0
- package/dist/worldline.d.ts +1047 -13
- package/dist/worldline.js +3 -797
- package/package.json +109 -99
- package/dist/PBtn.vue_vue_type_script_setup_true_lang-BZRHAS0P.js +0 -20
- package/dist/PairInstructions.vue_vue_type_script_setup_true_lang-D8X_VmHL.js +0 -139
- package/dist/PairLinkly.vue_vue_type_script_setup_true_lang-B2VcunIf.js +0 -799
- package/dist/PairMX51.vue_vue_type_script_setup_true_lang-2ph3H4a3.js +0 -542
- package/dist/PairSmartPay.vue_vue_type_script_setup_true_lang-CyT6pKX9.js +0 -417
- package/dist/PairTillPayment.vue_vue_type_script_setup_true_lang-CZHmHGb_.js +0 -829
- package/dist/PairTyro.vue_vue_type_script_setup_true_lang-9I2MJ93T.js +0 -335
- package/dist/PairValpay.vue_vue_type_script_setup_true_lang-hAPMCoWr.js +0 -712
- package/dist/TransactionDialog.vue_vue_type_script_setup_true_lang-BM8zZxH8.js +0 -82
- package/dist/emitter-B70DsNvX.js +0 -5
- package/dist/index-e4lpzJsL.js +0 -15
- package/dist/utils-GrbVNAXw.js +0 -22
package/README.md
CHANGED
|
@@ -1,168 +1,168 @@
|
|
|
1
|
-
# Vue Payment Gateway
|
|
2
|
-
|
|
3
|
-
A Vue.js payment gateway library to handle payments with ease.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
To install the library, run the following command:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npm install @achyutlabsau/vue-payment-gateway
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Plugin Initialization
|
|
14
|
-
|
|
15
|
-
To use the payment gateway, you need to initialize the plugin in your Vue app. Here’s an example of how to set it up:
|
|
16
|
-
|
|
17
|
-
```javascript
|
|
18
|
-
import VuePaymentGateway from "@achyutlabsau/vue-payment-gateway";
|
|
19
|
-
|
|
20
|
-
app.use(VuePaymentGateway, {
|
|
21
|
-
currencyCode: "AUD",
|
|
22
|
-
productName: "Pratham Respos", // Name of your product
|
|
23
|
-
productVersion: "3.3.0", // Version of your product
|
|
24
|
-
productVendorName: "Achyutlabs", // Name of the product vendor
|
|
25
|
-
posId: "unique-pos-id", // Unique identifier for the POS system
|
|
26
|
-
posRegisterId: "pos-register-id", // Unique identifier for the POS register
|
|
27
|
-
posRegisterName: "register-name", // Name of the POS register
|
|
28
|
-
posBusinessName: "business name", // Name of the business using the POS system
|
|
29
|
-
tyroApiKey: "tyro-api-key", // API key for Tyro integration
|
|
30
|
-
valpayApiKey: "valpay-api-key", // API key for Valpay (Adyen) integration
|
|
31
|
-
environment: "development", // Set environment to 'development' or 'production'
|
|
32
|
-
});
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
> **Note:** Replace the placeholder values with the actual details of your POS system, product, and Tyro API key.
|
|
36
|
-
|
|
37
|
-
## Using the Payment Gateway
|
|
38
|
-
|
|
39
|
-
This library supports multiple payment providers, such as Tyro, SmartPay, and Linkly. Here’s how to use them in your application.
|
|
40
|
-
|
|
41
|
-
### Using Tyro
|
|
42
|
-
|
|
43
|
-
To use the Tyro payment gateway, import and initialize it as shown below:
|
|
44
|
-
|
|
45
|
-
```javascript
|
|
46
|
-
import { useTyro } from "@achyutlabsau/vue-payment-gateway/tyro";
|
|
47
|
-
|
|
48
|
-
const tyro = useTyro();
|
|
49
|
-
|
|
50
|
-
// Example usage
|
|
51
|
-
await tyro.processPayment(amount, options);
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
### Using SmartPay
|
|
55
|
-
|
|
56
|
-
To use the SmartPay payment gateway, import and initialize it as shown below:
|
|
57
|
-
|
|
58
|
-
```javascript
|
|
59
|
-
import { useSmartPay } from "@achyutlabsau/vue-payment-gateway/smartpay";
|
|
60
|
-
|
|
61
|
-
const smartPay = useSmartPay();
|
|
62
|
-
|
|
63
|
-
// Example usage
|
|
64
|
-
await smartPay.processPayment(amount, options);
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Using Linkly
|
|
68
|
-
|
|
69
|
-
To use the Linkly payment gateway, import and initialize it as shown below:
|
|
70
|
-
|
|
71
|
-
```javascript
|
|
72
|
-
import { useLinkly } from "@achyutlabsau/vue-payment-gateway/linkly";
|
|
73
|
-
|
|
74
|
-
const linkly = useLinkly();
|
|
75
|
-
|
|
76
|
-
// Example usage
|
|
77
|
-
await linkly.processPayment(amount, options);
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
### Using Valpay (Adyen)
|
|
81
|
-
|
|
82
|
-
To use the Valpay (Adyen Terminal API) payment gateway, import and initialize it as shown below:
|
|
83
|
-
|
|
84
|
-
```javascript
|
|
85
|
-
import { useValpay } from "@achyutlabsau/vue-payment-gateway/valpay";
|
|
86
|
-
|
|
87
|
-
const valpay = useValpay();
|
|
88
|
-
|
|
89
|
-
// Get connected terminals
|
|
90
|
-
const { success, terminals } = await valpay.getConnectedTerminals();
|
|
91
|
-
|
|
92
|
-
// Process a payment
|
|
93
|
-
const result = await valpay.processPayment(
|
|
94
|
-
10050, // Amount in minor units (100.50)
|
|
95
|
-
"AUD", // Currency code
|
|
96
|
-
"V400m-324688179", // Terminal ID (POIID)
|
|
97
|
-
"transaction-12345", // Transaction ID
|
|
98
|
-
"POSSystemID12345", // Sale ID
|
|
99
|
-
);
|
|
100
|
-
|
|
101
|
-
// Cancel an ongoing payment
|
|
102
|
-
const cancelResult = await valpay.cancelPayment("MerchantAbort");
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
## Payment Method API
|
|
106
|
-
|
|
107
|
-
Each payment provider (Tyro, SmartPay, Linkly) provides methods to process payments. Here are some of the most commonly used methods:
|
|
108
|
-
|
|
109
|
-
### `processPayment(amount: number, options?: object)`
|
|
110
|
-
|
|
111
|
-
Processes a payment for the specified amount.
|
|
112
|
-
|
|
113
|
-
**Parameters:**
|
|
114
|
-
|
|
115
|
-
- `amount`: The amount to be charged.
|
|
116
|
-
- `options`: (Optional) Additional options for the payment.
|
|
117
|
-
|
|
118
|
-
### `cancelPayment()`
|
|
119
|
-
|
|
120
|
-
Cancels an ongoing payment.
|
|
121
|
-
|
|
122
|
-
### `getStatus()`
|
|
123
|
-
|
|
124
|
-
Gets the status of the current payment transaction.
|
|
125
|
-
|
|
126
|
-
> **Note:** The methods may differ slightly between Tyro, SmartPay, and Linkly. Refer to the official documentation of each payment provider for more details.
|
|
127
|
-
|
|
128
|
-
## Environment Configuration
|
|
129
|
-
|
|
130
|
-
The environment can be set to either `development` or `production`. Make sure to use `development` during testing and switch to `production` in a live environment to ensure security and proper tracking.
|
|
131
|
-
|
|
132
|
-
```javascript
|
|
133
|
-
app.use(VuePaymentGateway, {
|
|
134
|
-
...
|
|
135
|
-
environment: "production", // Set to 'production' in a live environment
|
|
136
|
-
});
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
## Example Usage
|
|
140
|
-
|
|
141
|
-
Here’s a complete example of how you might use the payment gateway to process a payment with Tyro:
|
|
142
|
-
|
|
143
|
-
```javascript
|
|
144
|
-
import { useTyro } from "@achyutlabsau/vue-payment-gateway/tyro";
|
|
145
|
-
|
|
146
|
-
const tyro = useTyro();
|
|
147
|
-
|
|
148
|
-
async function handlePayment() {
|
|
149
|
-
try {
|
|
150
|
-
const paymentResult = await tyro.processPayment(100, { currency: "USD" });
|
|
151
|
-
console.log("Payment successful:", paymentResult);
|
|
152
|
-
} catch (error) {
|
|
153
|
-
console.error("Payment failed:", error);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
## Troubleshooting
|
|
159
|
-
|
|
160
|
-
- **Environment Issues**: Make sure `environment` is set correctly (`development` or `production`).
|
|
161
|
-
- **Invalid API Key**: Ensure the Tyro API key is valid and correctly set in the configuration.
|
|
162
|
-
- **Payment Processing Issues**: Check if the payment provider's service is online and available.
|
|
163
|
-
|
|
164
|
-
## Additional Resources
|
|
165
|
-
|
|
166
|
-
For more details and usage examples, refer to the official documentation or support channels provided by [Achyutlabs](https://achyutlabs.com/).
|
|
167
|
-
|
|
168
|
-
With this guide, you should be able to set up and use the Vue Payment Gateway efficiently to handle payments with Tyro, SmartPay, and Linkly integrations.
|
|
1
|
+
# Vue Payment Gateway
|
|
2
|
+
|
|
3
|
+
A Vue.js payment gateway library to handle payments with ease.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
To install the library, run the following command:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @achyutlabsau/vue-payment-gateway
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Plugin Initialization
|
|
14
|
+
|
|
15
|
+
To use the payment gateway, you need to initialize the plugin in your Vue app. Here’s an example of how to set it up:
|
|
16
|
+
|
|
17
|
+
```javascript
|
|
18
|
+
import VuePaymentGateway from "@achyutlabsau/vue-payment-gateway";
|
|
19
|
+
|
|
20
|
+
app.use(VuePaymentGateway, {
|
|
21
|
+
currencyCode: "AUD",
|
|
22
|
+
productName: "Pratham Respos", // Name of your product
|
|
23
|
+
productVersion: "3.3.0", // Version of your product
|
|
24
|
+
productVendorName: "Achyutlabs", // Name of the product vendor
|
|
25
|
+
posId: "unique-pos-id", // Unique identifier for the POS system
|
|
26
|
+
posRegisterId: "pos-register-id", // Unique identifier for the POS register
|
|
27
|
+
posRegisterName: "register-name", // Name of the POS register
|
|
28
|
+
posBusinessName: "business name", // Name of the business using the POS system
|
|
29
|
+
tyroApiKey: "tyro-api-key", // API key for Tyro integration
|
|
30
|
+
valpayApiKey: "valpay-api-key", // API key for Valpay (Adyen) integration
|
|
31
|
+
environment: "development", // Set environment to 'development' or 'production'
|
|
32
|
+
});
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
> **Note:** Replace the placeholder values with the actual details of your POS system, product, and Tyro API key.
|
|
36
|
+
|
|
37
|
+
## Using the Payment Gateway
|
|
38
|
+
|
|
39
|
+
This library supports multiple payment providers, such as Tyro, SmartPay, and Linkly. Here’s how to use them in your application.
|
|
40
|
+
|
|
41
|
+
### Using Tyro
|
|
42
|
+
|
|
43
|
+
To use the Tyro payment gateway, import and initialize it as shown below:
|
|
44
|
+
|
|
45
|
+
```javascript
|
|
46
|
+
import { useTyro } from "@achyutlabsau/vue-payment-gateway/tyro";
|
|
47
|
+
|
|
48
|
+
const tyro = useTyro();
|
|
49
|
+
|
|
50
|
+
// Example usage
|
|
51
|
+
await tyro.processPayment(amount, options);
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Using SmartPay
|
|
55
|
+
|
|
56
|
+
To use the SmartPay payment gateway, import and initialize it as shown below:
|
|
57
|
+
|
|
58
|
+
```javascript
|
|
59
|
+
import { useSmartPay } from "@achyutlabsau/vue-payment-gateway/smartpay";
|
|
60
|
+
|
|
61
|
+
const smartPay = useSmartPay();
|
|
62
|
+
|
|
63
|
+
// Example usage
|
|
64
|
+
await smartPay.processPayment(amount, options);
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Using Linkly
|
|
68
|
+
|
|
69
|
+
To use the Linkly payment gateway, import and initialize it as shown below:
|
|
70
|
+
|
|
71
|
+
```javascript
|
|
72
|
+
import { useLinkly } from "@achyutlabsau/vue-payment-gateway/linkly";
|
|
73
|
+
|
|
74
|
+
const linkly = useLinkly();
|
|
75
|
+
|
|
76
|
+
// Example usage
|
|
77
|
+
await linkly.processPayment(amount, options);
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Using Valpay (Adyen)
|
|
81
|
+
|
|
82
|
+
To use the Valpay (Adyen Terminal API) payment gateway, import and initialize it as shown below:
|
|
83
|
+
|
|
84
|
+
```javascript
|
|
85
|
+
import { useValpay } from "@achyutlabsau/vue-payment-gateway/valpay";
|
|
86
|
+
|
|
87
|
+
const valpay = useValpay();
|
|
88
|
+
|
|
89
|
+
// Get connected terminals
|
|
90
|
+
const { success, terminals } = await valpay.getConnectedTerminals();
|
|
91
|
+
|
|
92
|
+
// Process a payment
|
|
93
|
+
const result = await valpay.processPayment(
|
|
94
|
+
10050, // Amount in minor units (100.50)
|
|
95
|
+
"AUD", // Currency code
|
|
96
|
+
"V400m-324688179", // Terminal ID (POIID)
|
|
97
|
+
"transaction-12345", // Transaction ID
|
|
98
|
+
"POSSystemID12345", // Sale ID
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
// Cancel an ongoing payment
|
|
102
|
+
const cancelResult = await valpay.cancelPayment("MerchantAbort");
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Payment Method API
|
|
106
|
+
|
|
107
|
+
Each payment provider (Tyro, SmartPay, Linkly) provides methods to process payments. Here are some of the most commonly used methods:
|
|
108
|
+
|
|
109
|
+
### `processPayment(amount: number, options?: object)`
|
|
110
|
+
|
|
111
|
+
Processes a payment for the specified amount.
|
|
112
|
+
|
|
113
|
+
**Parameters:**
|
|
114
|
+
|
|
115
|
+
- `amount`: The amount to be charged.
|
|
116
|
+
- `options`: (Optional) Additional options for the payment.
|
|
117
|
+
|
|
118
|
+
### `cancelPayment()`
|
|
119
|
+
|
|
120
|
+
Cancels an ongoing payment.
|
|
121
|
+
|
|
122
|
+
### `getStatus()`
|
|
123
|
+
|
|
124
|
+
Gets the status of the current payment transaction.
|
|
125
|
+
|
|
126
|
+
> **Note:** The methods may differ slightly between Tyro, SmartPay, and Linkly. Refer to the official documentation of each payment provider for more details.
|
|
127
|
+
|
|
128
|
+
## Environment Configuration
|
|
129
|
+
|
|
130
|
+
The environment can be set to either `development` or `production`. Make sure to use `development` during testing and switch to `production` in a live environment to ensure security and proper tracking.
|
|
131
|
+
|
|
132
|
+
```javascript
|
|
133
|
+
app.use(VuePaymentGateway, {
|
|
134
|
+
...
|
|
135
|
+
environment: "production", // Set to 'production' in a live environment
|
|
136
|
+
});
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Example Usage
|
|
140
|
+
|
|
141
|
+
Here’s a complete example of how you might use the payment gateway to process a payment with Tyro:
|
|
142
|
+
|
|
143
|
+
```javascript
|
|
144
|
+
import { useTyro } from "@achyutlabsau/vue-payment-gateway/tyro";
|
|
145
|
+
|
|
146
|
+
const tyro = useTyro();
|
|
147
|
+
|
|
148
|
+
async function handlePayment() {
|
|
149
|
+
try {
|
|
150
|
+
const paymentResult = await tyro.processPayment(100, { currency: "USD" });
|
|
151
|
+
console.log("Payment successful:", paymentResult);
|
|
152
|
+
} catch (error) {
|
|
153
|
+
console.error("Payment failed:", error);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## Troubleshooting
|
|
159
|
+
|
|
160
|
+
- **Environment Issues**: Make sure `environment` is set correctly (`development` or `production`).
|
|
161
|
+
- **Invalid API Key**: Ensure the Tyro API key is valid and correctly set in the configuration.
|
|
162
|
+
- **Payment Processing Issues**: Check if the payment provider's service is online and available.
|
|
163
|
+
|
|
164
|
+
## Additional Resources
|
|
165
|
+
|
|
166
|
+
For more details and usage examples, refer to the official documentation or support channels provided by [Achyutlabs](https://achyutlabs.com/).
|
|
167
|
+
|
|
168
|
+
With this guide, you should be able to set up and use the Vue Payment Gateway efficiently to handle payments with Tyro, SmartPay, and Linkly integrations.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createBlock as e, defineComponent as t, openBlock as n, unref as r } from "vue";
|
|
2
|
+
import { QBtn as i } from "quasar";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/components/PBtn.vue
|
|
5
|
+
var a = /* @__PURE__ */ t({
|
|
6
|
+
__name: "PBtn",
|
|
7
|
+
setup(t) {
|
|
8
|
+
return (t, a) => (n(), e(r(i), {
|
|
9
|
+
label: "Cancel",
|
|
10
|
+
color: "primary",
|
|
11
|
+
size: "16px",
|
|
12
|
+
class: "!py-2.5",
|
|
13
|
+
unelevated: "",
|
|
14
|
+
ripple: !1
|
|
15
|
+
}));
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
export { a as t };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { t as e } from "./PBtn-CB98SoO5.js";
|
|
2
|
+
import { Fragment as t, createBlock as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, openBlock as s, reactive as c, ref as l, renderList as u, toDisplayString as d, unref as f, withCtx as p } from "vue";
|
|
3
|
+
import { QCard as m, QIcon as h } from "quasar";
|
|
4
|
+
//#region src/plugin/state.ts
|
|
5
|
+
var g = /* @__PURE__ */ function(e) {
|
|
6
|
+
return e.Tyro = "tyro", e.TillPayment = "till-instore", e.MX51 = "mx51-spi", e.Linkly = "linkly", e.SmartPay = "smartpay", e.ANZ = "anz-instore", e.Valpay = "adyen-instore", e;
|
|
7
|
+
}({}), _ = c({
|
|
8
|
+
productName: "",
|
|
9
|
+
productVersion: "",
|
|
10
|
+
productVendorName: "",
|
|
11
|
+
posId: "",
|
|
12
|
+
posRegisterId: "",
|
|
13
|
+
posRegisterName: "",
|
|
14
|
+
posBusinessName: "",
|
|
15
|
+
tyroApiKey: "",
|
|
16
|
+
tillPaymentApiKey: "",
|
|
17
|
+
tillPaymentMerchantId: "",
|
|
18
|
+
mx51DeviceApiKey: "",
|
|
19
|
+
apiBaseUrl: ""
|
|
20
|
+
}), v = l("AUD"), y = l("production"), b = l(!1), x = (e) => {
|
|
21
|
+
e.productName && (_.productName = e.productName), e.productVersion && (_.productVersion = e.productVersion), e.productVendorName && (_.productVendorName = e.productVendorName), e.posId && (_.posId = e.posId), e.posRegisterId && (_.posRegisterId = e.posRegisterId), e.posRegisterName && (_.posRegisterName = e.posRegisterName), e.posBusinessName && (_.posBusinessName = e.posBusinessName), e.tyroApiKey && (_.tyroApiKey = e.tyroApiKey), e.tillPaymentApiKey && (_.tillPaymentApiKey = e.tillPaymentApiKey), e.tillPaymentMerchantId && (_.tillPaymentMerchantId = e.tillPaymentMerchantId), e.mx51DeviceApiKey && (_.mx51DeviceApiKey = e.mx51DeviceApiKey), e.apiBaseUrl && (_.apiBaseUrl = e.apiBaseUrl);
|
|
22
|
+
}, S = (e) => v.value = e, C = (e) => y.value = e, w = () => {
|
|
23
|
+
if (b.value) return !0;
|
|
24
|
+
throw Error("[Vue Payment Gateway] Plugin is not initialized.");
|
|
25
|
+
}, T = "M2,6H4V18H2V6M5,6H6V18H5V6M7,6H10V18H7V6M11,6H12V18H11V6M14,6H16V18H14V6M17,6H20V18H17V6M21,6H22V18H21V6Z", E = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z", D = "M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z", O = "M3 6H21V4H3C1.9 4 1 4.9 1 6V18C1 19.1 1.9 20 3 20H7V18H3V6M13 12H9V13.78C8.39 14.33 8 15.11 8 16C8 16.89 8.39 17.67 9 18.22V20H13V18.22C13.61 17.67 14 16.88 14 16S13.61 14.33 13 13.78V12M11 17.5C10.17 17.5 9.5 16.83 9.5 16S10.17 14.5 11 14.5 12.5 15.17 12.5 16 11.83 17.5 11 17.5M22 8H16C15.5 8 15 8.5 15 9V19C15 19.5 15.5 20 16 20H22C22.5 20 23 19.5 23 19V9C23 8.5 22.5 8 22 8M21 18H17V10H21V18Z", k = "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z", A = "M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z", j = "M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z", M = { class: "mb-8 space-y-4" }, N = { class: "flex items-center justify-center" }, P = { class: "mb-8 space-y-4" }, F = { class: "flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-gray-100 font-semibold dark:bg-gray-700" }, I = { class: "text-gray-700 dark:text-gray-200" }, L = { class: "mb-6 flex items-start space-x-3 rounded-lg bg-amber-50 p-4 text-base dark:bg-slate-700" }, R = { class: "flex justify-end" }, z = /* @__PURE__ */ o({
|
|
26
|
+
__name: "PairInstructions",
|
|
27
|
+
props: { steps: {} },
|
|
28
|
+
emits: ["next"],
|
|
29
|
+
setup(o) {
|
|
30
|
+
return (c, l) => (s(), n(f(m), {
|
|
31
|
+
class: "rounded-lg p-6",
|
|
32
|
+
flat: "",
|
|
33
|
+
bordered: ""
|
|
34
|
+
}, {
|
|
35
|
+
default: p(() => [
|
|
36
|
+
i("div", M, [
|
|
37
|
+
i("div", N, [a(f(h), {
|
|
38
|
+
name: f(O),
|
|
39
|
+
size: "4rem",
|
|
40
|
+
class: "text-primary"
|
|
41
|
+
}, null, 8, ["name"])]),
|
|
42
|
+
l[1] ||= i("h2", { class: "text-center text-2xl !font-medium" }, "Terminal Setup Instructions", -1),
|
|
43
|
+
l[2] ||= i("p", { class: "text-center text-base text-gray-600 dark:text-gray-200" }, " Please follow these steps to pair your terminal ", -1)
|
|
44
|
+
]),
|
|
45
|
+
i("ul", P, [(s(!0), r(t, null, u(o.steps, (e, t) => (s(), r("li", {
|
|
46
|
+
key: t,
|
|
47
|
+
class: "flex flex-nowrap items-center space-x-3 text-base"
|
|
48
|
+
}, [i("span", F, d(t + 1), 1), i("span", I, d(e), 1)]))), 128))]),
|
|
49
|
+
i("div", L, [a(f(h), {
|
|
50
|
+
name: f(k),
|
|
51
|
+
size: "md",
|
|
52
|
+
class: "mt-0.5 text-amber-500 dark:text-white"
|
|
53
|
+
}, null, 8, ["name"]), l[3] ||= i("div", { class: "flex-1" }, [i("div", { class: "font-medium text-amber-800 dark:text-white" }, "Important Note"), i("div", { class: "text-amber-700 dark:text-gray-300" }, " Please refer to your terminal guide for the most up-to-date instructions. ")], -1)]),
|
|
54
|
+
i("div", R, [a(e, {
|
|
55
|
+
"icon-right": "chevron_right",
|
|
56
|
+
label: "Next",
|
|
57
|
+
onClick: l[0] ||= (e) => c.$emit("next")
|
|
58
|
+
})])
|
|
59
|
+
]),
|
|
60
|
+
_: 1
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
//#endregion
|
|
65
|
+
export { A as a, w as c, b as d, S as f, _ as h, D as i, v as l, x as m, T as n, j as o, C as p, E as r, g as s, z as t, y as u };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { t as e } from "./PBtn-CB98SoO5.js";
|
|
2
|
+
import { createBlock as t, createCommentVNode as n, createElementVNode as r, createVNode as i, defineComponent as a, openBlock as o, resolveDirective as s, toDisplayString as c, unref as l, withCtx as u, withDirectives as d } from "vue";
|
|
3
|
+
import { QCard as f, QCardSection as p, QDialog as m, useDialogPluginComponent as h } from "quasar";
|
|
4
|
+
//#region src/components/TransactionDialog.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var g = { class: "text-center text-lg font-semibold text-gray-500 uppercase" }, _ = { class: "text-center text-lg font-semibold text-gray-500 uppercase" }, v = { class: "text-center text-lg font-semibold text-gray-500 uppercase" }, y = /* @__PURE__ */ a({
|
|
6
|
+
__name: "TransactionDialog",
|
|
7
|
+
props: {
|
|
8
|
+
message: {},
|
|
9
|
+
title: {},
|
|
10
|
+
cancelTxn: { type: Function }
|
|
11
|
+
},
|
|
12
|
+
emits: [...h.emits],
|
|
13
|
+
setup(a) {
|
|
14
|
+
let { dialogRef: y, onDialogHide: b } = h();
|
|
15
|
+
return (h, x) => {
|
|
16
|
+
let S = s("close-popup");
|
|
17
|
+
return o(), t(l(m), {
|
|
18
|
+
ref_key: "dialogRef",
|
|
19
|
+
ref: y,
|
|
20
|
+
onHide: l(b),
|
|
21
|
+
persistent: ""
|
|
22
|
+
}, {
|
|
23
|
+
default: u(() => [i(l(f), { class: "q-dialog-plugin px-6 py-3" }, {
|
|
24
|
+
default: u(() => [a.title === "INPROGRESS" ? (o(), t(l(p), { key: 0 }, {
|
|
25
|
+
default: u(() => [r("div", g, c(a.message), 1), i(e, {
|
|
26
|
+
label: "Cancel",
|
|
27
|
+
onClick: a.cancelTxn,
|
|
28
|
+
color: "primary",
|
|
29
|
+
outline: "",
|
|
30
|
+
class: "!mt-6 !w-full"
|
|
31
|
+
}, null, 8, ["onClick"])]),
|
|
32
|
+
_: 1
|
|
33
|
+
})) : a.title === "SUCCESS" ? (o(), t(l(p), { key: 1 }, {
|
|
34
|
+
default: u(() => [r("div", _, c(a.message), 1), d(i(e, {
|
|
35
|
+
label: "OK",
|
|
36
|
+
color: "primary",
|
|
37
|
+
outline: "",
|
|
38
|
+
class: "!mt-6 !w-full"
|
|
39
|
+
}, null, 512), [[S]])]),
|
|
40
|
+
_: 1
|
|
41
|
+
})) : a.title === "FAILED" ? (o(), t(l(p), { key: 2 }, {
|
|
42
|
+
default: u(() => [r("div", v, c(a.message), 1), d(i(e, {
|
|
43
|
+
label: "OK",
|
|
44
|
+
color: "primary",
|
|
45
|
+
outline: "",
|
|
46
|
+
class: "!mt-6 !w-full"
|
|
47
|
+
}, null, 512), [[S]])]),
|
|
48
|
+
_: 1
|
|
49
|
+
})) : n("", !0)]),
|
|
50
|
+
_: 1
|
|
51
|
+
})]),
|
|
52
|
+
_: 1
|
|
53
|
+
}, 8, ["onHide"]);
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
//#endregion
|
|
58
|
+
export { y as t };
|