@tuwaio/nova-payments 0.0.0-stage → 0.0.1
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/LICENSE +201 -0
- package/README.md +238 -2
- package/dist/OwnConnection-ET76SUMX.js +1 -0
- package/dist/OwnConnection-S5SQLIBT.cjs +1 -0
- package/dist/chunk-PUMIYLSN.js +1 -0
- package/dist/chunk-S3L4QDPT.cjs +1 -0
- package/dist/chunk-WOAPFVQF.js +1 -0
- package/dist/chunk-XOVRZTAM.cjs +1 -0
- package/dist/de-53SSE6O2.js +1 -0
- package/dist/de-LB5XSRMX.cjs +1 -0
- package/dist/es-LP3HJ4KB.js +1 -0
- package/dist/es-VDW2RZMP.cjs +1 -0
- package/dist/evm/index.cjs +1 -0
- package/dist/evm/index.d.cts +33 -0
- package/dist/evm/index.d.ts +33 -0
- package/dist/evm/index.js +1 -0
- package/dist/i18n/index.cjs +1 -0
- package/dist/i18n/index.d.cts +10 -0
- package/dist/i18n/index.d.ts +10 -0
- package/dist/i18n/index.js +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.css +1324 -0
- package/dist/index.d.cts +2978 -0
- package/dist/index.d.ts +2978 -0
- package/dist/index.js +2 -0
- package/dist/it-6IQFXLAR.cjs +1 -0
- package/dist/it-JJ5Z5EUF.js +1 -0
- package/dist/locales-DzMinYsr.d.cts +1221 -0
- package/dist/locales-DzMinYsr.d.ts +1221 -0
- package/dist/solana/index.cjs +1 -0
- package/dist/solana/index.d.cts +41 -0
- package/dist/solana/index.d.ts +41 -0
- package/dist/solana/index.js +1 -0
- package/dist/types-Bp6JUt56.d.cts +350 -0
- package/dist/types-Bp6JUt56.d.ts +350 -0
- package/dist/uk-EI4N5BMM.js +1 -0
- package/dist/uk-FVCYLYSB.cjs +1 -0
- package/dist/zhCN-BZBMKUUA.js +1 -0
- package/dist/zhCN-TA7WU5XS.cjs +1 -0
- package/package.json +152 -3
- package/socket.json +17 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 FOP Tkach Oleksandr
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,239 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @tuwaio/nova-payments
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@tuwaio/nova-payments)
|
|
4
|
+
[](https://github.com/TuwaIO/quasar-client/blob/main/packages/nova-payments/LICENSE)
|
|
5
|
+
|
|
6
|
+
`@tuwaio/nova-payments` is the checkout of **Quasar Client**, built on [Nova UI Kit](https://stories.tuwa.io/). It renders the checkout of a [Quasar Payments](https://docs.tuwa.io/quasar) invoice from its checkout token: the order with its lines, tax and deadline, the steps of the payment and its outcome, in a modal (a sheet from the bottom on a phone), in the page, or on a page of its own. It keeps no payment state of its own: the checkout store of [`@tuwaio/quasar-sdk/checkout`](https://payments.docs.tuwa.io/?path=/docs/packages-quasar-sdk-overview--docs) reads the invoice and follows it, and no secret key reaches the browser.
|
|
7
|
+
|
|
8
|
+
> [!NOTE]
|
|
9
|
+
> The package is in development: native speakers review the translations of the checkout before the stable release.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 💾 Installation
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pnpm add @tuwaio/nova-payments @tuwaio/quasar-sdk @tuwaio/nova-core @tuwaio/nova-connect @tuwaio/nova-transactions @tuwaio/satellite-react @tuwaio/satellite-core @tuwaio/pulsar-core @tuwaio/orbit-core zustand react framer-motion @heroicons/react @radix-ui/react-dialog @web3icons/react @web3icons/common clsx tailwind-merge
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
The checkout connects wallets through Nova Connect (`NovaConnectProvider` of `@tuwaio/nova-connect`, with its own peers): the app's, or Nova's own when the app has no wallet connection (see "Wallet connection" below). Apps that connect wallets differently pass `onConnectWallet`, and without either the buyer pays with a QR code.
|
|
20
|
+
|
|
21
|
+
Import the stylesheets of `@tuwaio/nova-core` (theme variables), of `@tuwaio/nova-transactions` (the confirm and paid steps reuse its progress) and of this package (Tailwind CSS v4 utilities prefixed with `novapay:`):
|
|
22
|
+
|
|
23
|
+
```css
|
|
24
|
+
@import '@tuwaio/nova-core/dist/index.css';
|
|
25
|
+
@import '@tuwaio/nova-transactions/dist/index.css';
|
|
26
|
+
@import '@tuwaio/nova-payments/dist/index.css';
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
With Nova's own connection, also import `@tuwaio/nova-connect/dist/index.css` for its connect modal.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## 🚀 Usage
|
|
34
|
+
|
|
35
|
+
Issue the invoice on your server with `@tuwaio/quasar-sdk` and pass its `checkoutToken` to the checkout:
|
|
36
|
+
|
|
37
|
+
```tsx
|
|
38
|
+
'use client';
|
|
39
|
+
|
|
40
|
+
import { PaymentCheckout } from '@tuwaio/nova-payments';
|
|
41
|
+
import { useState } from 'react';
|
|
42
|
+
|
|
43
|
+
export function Checkout({ token }: { token: string }) {
|
|
44
|
+
const [open, setOpen] = useState(false);
|
|
45
|
+
return (
|
|
46
|
+
<>
|
|
47
|
+
<button type="button" onClick={() => setOpen(true)}>
|
|
48
|
+
Pay
|
|
49
|
+
</button>
|
|
50
|
+
<PaymentCheckout token={token} open={open} onOpenChange={setOpen} />
|
|
51
|
+
</>
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
`display="inline"` renders it in the page. `display="page"` is the whole page, as the Quasar payment page shows it: a sheet 880 px wide, centered in the window (`min-height: 100svh`; a page with a header of its own sets `--novapay-page-height` on an ancestor, for example `calc(100svh - 64px)`), that grows downward with its step and scrolls nothing inside, full-bleed under 640 px. `NovaPaymentsProvider` sets the Quasar API for a Community Edition node (`baseUrl`) and replaces labels.
|
|
57
|
+
|
|
58
|
+
To pay from a wallet in the browser, give the provider the chain adapters of your app (`@tuwaio/nova-payments/evm` needs `@wagmi/core` and `viem`; `@tuwaio/nova-payments/solana` needs `@solana/kit`, `@solana-program/system`, `@solana-program/token` and `@tuwaio/orbit-solana`) and, optionally, your Pulsar store: a payment the wallet sends after the buyer closed the checkout goes to it, and Nova Transactions shows its toast.
|
|
59
|
+
|
|
60
|
+
```tsx
|
|
61
|
+
'use client';
|
|
62
|
+
|
|
63
|
+
import { NovaPaymentsProvider } from '@tuwaio/nova-payments';
|
|
64
|
+
import { paymentsEVMAdapter } from '@tuwaio/nova-payments/evm';
|
|
65
|
+
import { paymentsSolanaAdapter } from '@tuwaio/nova-payments/solana';
|
|
66
|
+
import type { Transaction } from '@tuwaio/pulsar-core';
|
|
67
|
+
import type { Config } from '@wagmi/core';
|
|
68
|
+
import type { ReactNode } from 'react';
|
|
69
|
+
|
|
70
|
+
export function Payments({
|
|
71
|
+
wagmiConfig,
|
|
72
|
+
injectExternalPendingTxs,
|
|
73
|
+
children,
|
|
74
|
+
}: {
|
|
75
|
+
wagmiConfig: Config;
|
|
76
|
+
injectExternalPendingTxs: (transactions: Transaction[]) => Promise<void>;
|
|
77
|
+
children: ReactNode;
|
|
78
|
+
}) {
|
|
79
|
+
return (
|
|
80
|
+
<NovaPaymentsProvider
|
|
81
|
+
adapters={[
|
|
82
|
+
paymentsEVMAdapter(wagmiConfig),
|
|
83
|
+
paymentsSolanaAdapter({ rpcUrls: { devnet: 'https://api.devnet.solana.com' } }),
|
|
84
|
+
]}
|
|
85
|
+
pulsar={{ injectExternalPendingTxs }}
|
|
86
|
+
>
|
|
87
|
+
{children}
|
|
88
|
+
</NovaPaymentsProvider>
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Wallet connection: the app's or Nova's own
|
|
94
|
+
|
|
95
|
+
Nova Payments brings its own wallet connection only when the app has none. `NovaPaymentsProvider` decides once, on its first render, and `usePaymentsConnection` tells which:
|
|
96
|
+
|
|
97
|
+
| Above `NovaPaymentsProvider` | Wallet, network and connect modal | Payment adapters |
|
|
98
|
+
| -------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | ------------------------ |
|
|
99
|
+
| The app's `SatelliteConnectProvider` and `NovaConnectProvider` | The app's (`app`), with its SIWX; Nova mounts nothing of its own | `adapters` |
|
|
100
|
+
| The app's `SatelliteConnectProvider` only | The app's wallet (`appStore`); "Connect wallet" calls `onConnectWallet`; never a second store | `adapters` |
|
|
101
|
+
| Nothing, and `ownConnection` is given | Nova's own (`own`): a Satellite store, the watchers and a Nova Connect modal, never with SIWX | `ownConnection.adapters` |
|
|
102
|
+
| Nothing | None (`none`): QR codes, and `onConnectWallet` | `adapters` |
|
|
103
|
+
|
|
104
|
+
Inside an app with Satellite Connect and Nova Connect, add only `NovaPaymentsProvider` with `adapters` on the wagmi config of the app's Satellite EVM adapter (as above): the checkout and the refunds show the app's wallet, "Connect wallet" opens the app's modal, and a payment on another network switches that wallet. If the app signs in with SIWX through Nova Connect, set `siwx.sessionScope: 'account'` there when its server binds a session to the address only, so a network switch made by the checkout does not ask the wallet to sign in again (see [`@tuwaio/nova-connect`](https://stories.tuwa.io/?path=/docs/packages-nova-connect-overview--docs)). A `NovaPaymentsProvider` inside another one's own connection uses that connection, so two stores never stack, and without `adapters` it pays with those of the provider above.
|
|
105
|
+
|
|
106
|
+
A page without a wallet connection (a payment page, an admin page) gives `ownConnection`, created once at module level. Nova's store runs Satellite's start-up only with `autoConnect`, so it never drops the wallet of another tab or of the host page. It lives as long as the page, one per Satellite adapter, as the wagmi config does: a checkout closed and opened again, another page or a second provider on the same adapters shows the wallet still connected. `autoConnect: true` reconnects the last wallet once per page load, with Satellite's start-up (with `@tuwaio/satellite-core` 0.11.1 or later, without a permission prompt and without disconnecting wallets this page did not connect; earlier versions disconnect every wallet of the adapters first); without it, the connect modal hides "Remember this wallet", since nothing would reconnect the wallet. Nova's own connection and its Nova Connect modal load on demand, so an app that does not use them does not download them.
|
|
107
|
+
|
|
108
|
+
```tsx
|
|
109
|
+
'use client';
|
|
110
|
+
|
|
111
|
+
import { EVMConnectorsWatcher } from '@tuwaio/nova-connect/evm';
|
|
112
|
+
import { SolanaConnectorsWatcher } from '@tuwaio/nova-connect/solana';
|
|
113
|
+
import { type NovaPaymentsOwnConnection, NovaPaymentsProvider, PaymentCheckout } from '@tuwaio/nova-payments';
|
|
114
|
+
import { paymentsEVMAdapter } from '@tuwaio/nova-payments/evm';
|
|
115
|
+
import { paymentsSolanaAdapter } from '@tuwaio/nova-payments/solana';
|
|
116
|
+
import { createDefaultTransports, satelliteEVMAdapter } from '@tuwaio/satellite-evm';
|
|
117
|
+
import { satelliteSolanaAdapter } from '@tuwaio/satellite-solana';
|
|
118
|
+
import { createConfig, createStorage, injected, noopStorage } from '@wagmi/core';
|
|
119
|
+
import { base, type Chain, mainnet } from 'viem/chains';
|
|
120
|
+
|
|
121
|
+
const chains = [mainnet, base] as readonly [Chain, ...Chain[]];
|
|
122
|
+
const solanaRPCUrls = { mainnet: 'https://api.mainnet-beta.solana.com' };
|
|
123
|
+
const wagmiConfig = createConfig({
|
|
124
|
+
chains,
|
|
125
|
+
connectors: [injected()],
|
|
126
|
+
transports: createDefaultTransports(chains),
|
|
127
|
+
ssr: true,
|
|
128
|
+
storage: createStorage({ storage: noopStorage }),
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
const ownConnection: NovaPaymentsOwnConnection = {
|
|
132
|
+
adapter: [satelliteEVMAdapter(wagmiConfig, chains), satelliteSolanaAdapter({ rpcUrls: solanaRPCUrls })],
|
|
133
|
+
watchers: (
|
|
134
|
+
<>
|
|
135
|
+
<EVMConnectorsWatcher wagmiConfig={wagmiConfig} />
|
|
136
|
+
<SolanaConnectorsWatcher />
|
|
137
|
+
</>
|
|
138
|
+
),
|
|
139
|
+
adapters: [paymentsEVMAdapter(wagmiConfig), paymentsSolanaAdapter({ rpcUrls: solanaRPCUrls })],
|
|
140
|
+
novaConnect: { appChains: chains, solanaRPCUrls, withBalance: true, withChain: true },
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
export function PayPage({ token }: { token: string }) {
|
|
144
|
+
return (
|
|
145
|
+
<NovaPaymentsProvider ownConnection={ownConnection}>
|
|
146
|
+
<PaymentCheckout token={token} display="page" />
|
|
147
|
+
</NovaPaymentsProvider>
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
The full integration with Satellite Connect, SIWX and Pulsar is in the **[Full-Stack React guide](https://docs.tuwa.io/guides/full-stack-react)**.
|
|
153
|
+
|
|
154
|
+
Before an EVM payment the buyer's wallet sends itself (paying the gas, or a smart wallet with or without the merchant's paymaster), the wallet confirms the invoice: right after the wallet and the method are chosen, before the price, a step says that it is free and moves no money, sums up what the wallet signs (the invoice, the seller, the amount and the wallet) and opens the wallet's signature request (an EIP-4361 message from Quasar, signed with `personal_sign`; a smart wallet may ask for its passkey). Quasar credits the wallet's transfers to this invoice only once it signed; one signature per invoice and wallet, so a new price, token or network needs none. A refusal keeps the buyer on the step with the reason and the same button; "Back to methods" returns. A gasless USDC or EURC payment needs no extra window (the signed authorization confirms the wallet), and when the buyer pays the gas of such a method instead, the pay step asks for the confirmation first. Solana payments and automatic charges are unchanged. A chain adapter of your own adds `signMessage` for it.
|
|
155
|
+
|
|
156
|
+
After the payment the checkout shows its outcome: confirming, paid with the receipt and the way back to the invoice's `successUrl` (a visible countdown with "Stay here"; `autoReturnSeconds`, `0` for none), and for a subscription the optional automatic payments (ERC-7715). Underpaid, held, refunded, expired, cancelled and corrected invoices get their own outcome with a "Contact" link to the seller (`onContact` replaces it). `onPaid` tells the page once the invoice is paid; fulfil orders from the `invoice.paid` webhook on your server. Closing the checkout before anything is sent asks first. The countdown to the invoice's deadline stays in the order through every step, also while the wallet signs and the payment confirms, and goes once the payment succeeded or the invoice has another outcome; when the deadline passes while the payment confirms, it stays at 00:00 and the confirm step says that a payment sent in time is being confirmed (from Quasar's word on that payment, else its `paymentCountsUntil`, else the page's clock), or that a payment arriving after the invoice closes waits for the seller to accept or return it. The buyer is never invited to pay twice: a page reopened while a payment of the invoice is on its way shows that payment confirming, and a payment Quasar could not confirm asks the buyer to check the wallet before paying again instead of offering the payment. The checkout says that Quasar checks the payment again for 24 hours and records it for the seller only while Quasar still reads it again (not found, no receipt in time, replaced); for a payment Quasar does not read again (a relay operation lost, an unknown failure, no result on chain within 24 hours, a hand-over the page gave up after an hour) it asks the buyer to contact the seller with the transaction hash, which it shows. A payment counts as sent once the wallet returned its hash: an invoice that expires or is cancelled while a payment may still arrive never says that nothing was charged, and a transaction that does not pay the invoice (a wrong amount or recipient) is named as such, with the seller to contact if money left the wallet. A QR code the checkout showed may have been paid from a phone, so an invoice that expires or is cancelled after it never says that nothing was charged either. A transaction the page of another invoice handed over first (EVM invoices share the seller's address) is credited by Quasar to the invoice the wallet that sent it confirmed: the checkout follows it, offers no payment meanwhile and shows its hash for the seller, and says that it pays another invoice if Quasar credits it there. A transfer from a wallet that did not confirm the invoice pays no invoice: the checkout says that the seller returns it to the wallet that sent it (a held invoice of that kind takes no other payment, so the buyer asks the seller for a new one), never that the seller checks it. A payment the network confirmed that Quasar has not recorded yet is named with its hash for the seller, never as a failure, and no payment is offered; the checkout says that Quasar tries again daily (for 30 days) only while Quasar says it does. On an expired or cancelled invoice the checkout says until when the page follows a payment on its way; later, a reload shows the outcome.
|
|
157
|
+
|
|
158
|
+
### Customization
|
|
159
|
+
|
|
160
|
+
Besides the `--tuwa-*` theme variables of `@tuwaio/nova-core` and the labels, `customization` of `PaymentCheckout` adds classes to its parts from the state of the checkout (`classNames`) and replaces parts (`components`): the header, the order, the steps, the token and network options, the main button, the QR code, the outcome icon, or whole screens by name. A replacement reads the checkout with `useCheckoutContext`. A replaced screen that shows `WalletPrompt` while the wallet asks puts it in place of its step: it hides the step meanwhile (`display: none` and `inert`, so the step keeps its state) and passes the step's height as `stepHeight`, so the checkout keeps its height on a phone. Classes are added after the default ones; change a color a part already sets with the theme variables or by replacing the part. `handlers` wrap the actions of the buyer (`onMethodSelect`, `onQuote`, `onSubmit`, `onLocaleChange`: call `proceed()` to go on, or do something else) and tell what happened (`onStatusChange`, `onError`, `onExpire`); `config` turns off animations, the steps or the balance check and sets the minutes of the deadline announcements; `childCustomizations` styles the Nova Transactions parts of the confirm and paid steps.
|
|
161
|
+
|
|
162
|
+
```tsx
|
|
163
|
+
'use client';
|
|
164
|
+
|
|
165
|
+
import { type CheckoutPrimaryButtonProps, PaymentCheckout } from '@tuwaio/nova-payments';
|
|
166
|
+
|
|
167
|
+
function ShopButton({ busy, children, className, ...props }: CheckoutPrimaryButtonProps) {
|
|
168
|
+
return (
|
|
169
|
+
<button
|
|
170
|
+
type="button"
|
|
171
|
+
{...props}
|
|
172
|
+
disabled={props.disabled || busy}
|
|
173
|
+
aria-busy={busy || undefined}
|
|
174
|
+
className={`shop-button ${className ?? ''}`}
|
|
175
|
+
>
|
|
176
|
+
{children}
|
|
177
|
+
</button>
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export function BrandedCheckout({ token }: { token: string }) {
|
|
182
|
+
return (
|
|
183
|
+
<PaymentCheckout
|
|
184
|
+
token={token}
|
|
185
|
+
display="inline"
|
|
186
|
+
customization={{
|
|
187
|
+
classNames: { tokenOption: ({ selected }) => (selected ? 'shop-selected' : undefined) },
|
|
188
|
+
components: { PrimaryButton: ShopButton },
|
|
189
|
+
}}
|
|
190
|
+
/>
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
### Refunds
|
|
196
|
+
|
|
197
|
+
`RefundButton` refunds a paid invoice from the merchant's connected wallet: what to refund (an amount of the invoice currency or everything received), a wallet of the payment's network, the confirmation with the wallet's balance and the network fee, the wallet's prompt, then Quasar follows the transaction and issues the credit note. It takes a refund store of `@tuwaio/quasar-sdk/checkout` whose three calls run on your server with the secret key (Server Actions calling `quasar.payments.refund`, `submitRefund` and `getRefund`). Put it inside `NovaPaymentsProvider`: it uses the provider's wallet connection (the app's, or Nova's own) and its adapters; without Nova Connect, `onConnectWallet` connects the wallet. A wallet on another network is asked to switch first; one that holds too little is asked nothing; a refund the wallet sent but Quasar did not take is handed over again, never sent twice. `RefundDialog` is the same window opened by your own button, `params` skips the amount step, and `onRecord` offers your form for a refund sent another way.
|
|
198
|
+
|
|
199
|
+
```tsx
|
|
200
|
+
'use client';
|
|
201
|
+
|
|
202
|
+
import { RefundButton } from '@tuwaio/nova-payments';
|
|
203
|
+
import { createRefundStore, type RefundStoreOptions } from '@tuwaio/quasar-sdk/checkout';
|
|
204
|
+
import { useState } from 'react';
|
|
205
|
+
|
|
206
|
+
export function Refund({ invoiceId, number, calls }: { invoiceId: string; number: string; calls: RefundStoreOptions }) {
|
|
207
|
+
// One store per invoice: the refund goes on while the window is closed
|
|
208
|
+
const [store] = useState(() => createRefundStore(calls));
|
|
209
|
+
return <RefundButton store={store} invoiceId={invoiceId} invoice={number} currency="USD" />;
|
|
210
|
+
}
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
---
|
|
214
|
+
|
|
215
|
+
## 🌍 Languages and accessibility
|
|
216
|
+
|
|
217
|
+
The checkout speaks the six languages of Quasar invoices: English, Ukrainian, Simplified Chinese, Spanish, Italian and German. It follows the language of the invoice; the buyer changes it in the menu next to the close button, which also sets the language of the documents still to be issued. Each language but English is a file of its own that the page downloads the first time it shows that language, so a checkout in one language does not carry the other five; the first screen waits for it, so it never flashes in English. A language the package does not have can be added with `customization.labels.transform` of `NovaPaymentsProvider`. The checkout aims at WCAG 2.2 AA: the steps are an ordered list with the current one marked, the deadline is announced 10, 5 and 1 minutes before it ends while the buyer can still pay, and animations follow `prefers-reduced-motion`. Everything works from the keyboard: Tab moves between groups, the arrow keys between options, Enter continues, and Escape closes (asking first while nothing is sent; Escape on that question stays). Each new step takes the focus on its heading, so screen readers read it; the focus stays in the modal and returns to the element that opened it. Every Storybook story of the checkout is checked with axe (WCAG 2.2 AA rules, also at 320 px wide) and the keyboard scenarios run as tests on every change; a screen reader pass with VoiceOver and NVDA comes before the first stable release.
|
|
218
|
+
|
|
219
|
+
---
|
|
220
|
+
|
|
221
|
+
## 🗄️ Browser Storage
|
|
222
|
+
|
|
223
|
+
The checkout and the refund window save nothing to `localStorage` or cookies. Until Quasar takes or refuses a payment transaction the wallet sent, the checkout store of `@tuwaio/quasar-sdk` keeps its hand-over in `sessionStorage` (the browser tab, until it closes) under `quasar-sdk:checkoutHandOvers:<checkout token>`: the transaction hash, the sending wallet, the wallet connector and when it was sent, so a page closed or reloaded before Quasar answered hands the payment over again (nothing is kept with your own `api`). A sponsored batch the wallet took has no hash yet: it is kept in `sessionStorage` under `nova-payments:sponsoredBatches` for 35 minutes or until its hash comes (the invoice ID, the batch ID, the wallet, the wallet connector, the method and what it pays), so a reload follows it instead of offering to pay next to it. Until Quasar takes it or refuses it for good, a refund transaction the wallet sent is kept by the refund store of `@tuwaio/quasar-sdk` in `sessionStorage` under `quasar-sdk:refundHandOvers`: the refund and invoice IDs, the refund's instructions, the transaction hash and the sending wallet, so a reload hands it over instead of having the wallet send the refund again. A payment it hands over to your Pulsar store is kept by that store (`createPulsarStore` persists its pool under its own name).
|
|
224
|
+
|
|
225
|
+
Nova's own connection (`ownConnection`) keeps the connected wallet in `sessionStorage` until the tab closes (`orbit-core:lastConnectedConnector` and `orbit-core:recentlyConnectedConnectorsListHelpers`, see [`@tuwaio/satellite-core`](https://satellite.docs.tuwa.io/packages/satellite-core)), and in `localStorage` with `rememberWallet: true` or, with `autoConnect`, when the buyer ticks "Remember this wallet" in its connect modal. Every Satellite store of the site shares these keys: connecting a wallet there that is not remembered moves `orbit-core:lastConnectedConnector` and that wallet's entry of the list out of `localStorage`, and disconnecting removes the last connection, so another Satellite app on the same origin forgets the wallet it remembered. wagmi keeps its own `wagmi.*` keys in `localStorage` unless the wagmi config uses `createStorage({ storage: noopStorage })`, as in the example above. Inside the app's connection, the app's stores keep them.
|
|
226
|
+
|
|
227
|
+
## 🌐 External Services
|
|
228
|
+
|
|
229
|
+
The checkout routes of the Quasar API (`baseUrl`, Quasar Cloud by default): `GET /v1/payments/checkout/{token}`, its event stream and logo, and the `POST` routes of the steps (`buyer`, `locale`, `payer-proof/message`, `payer-proof`, `quote`, `submit`, `relay`; the wallet calls the `paymaster` route for sponsored calls). The `permission` route takes the automatic payments of a subscription. The EVM adapter reads balances and fee estimates through the RPC transports of your wagmi config, the Solana adapter through its `rpcUrls` (else the public endpoint of the cluster); links to transactions open the chain's block explorer (the explorer of the wagmi chain, the Solana Explorer). A refund calls only your server (the calls of its store); the adapters read the merchant wallet's balance and the fee the same way. Nova's own connection loads what its Satellite adapters and its Nova Connect modal load (see [`@tuwaio/nova-connect`](https://stories.tuwa.io/?path=/docs/packages-nova-connect-overview--docs)) through the RPC of its wagmi config and `rpcUrls`. The wallet asks the buyer, or the merchant for a refund, before every signature, transaction or permission.
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## 🤝 Contributing & Support
|
|
234
|
+
|
|
235
|
+
Contributions are welcome! Please read our main **[Contribution Guidelines](https://github.com/TuwaIO/workflows/blob/main/CONTRIBUTING.md)**.
|
|
236
|
+
|
|
237
|
+
## 📄 License
|
|
238
|
+
|
|
239
|
+
This project is licensed under the **Apache-2.0 License** - see the [LICENSE](https://github.com/TuwaIO/quasar-client/blob/main/packages/nova-payments/LICENSE) file for details.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {NovaConnectProvider}from'@tuwaio/nova-connect';import {createSatelliteConnectStore}from'@tuwaio/satellite-core';import {SatelliteStoreContext}from'@tuwaio/satellite-react';import {useState,useEffect,useMemo}from'react';import {jsxs,jsx}from'react/jsx-runtime';var d=new WeakMap,s=new WeakSet;function f(e){let o=()=>createSatelliteConnectStore({adapter:e.adapter,rememberWallet:e.rememberWallet??false}),t=Array.isArray(e.adapter)?e.adapter[0]:e.adapter;if(typeof window>"u"||!t)return o();let n=d.get(t);if(n)return n;let r=o();return d.set(t,r),r}function v(e){let o=e.customization,t=o?.modals?.connectModal,n=t?.childComponents;return n?.rememberWallet?.hidden!==void 0?e:{...e,customization:{...o,modals:{...o?.modals,connectModal:{...t,childComponents:{...n,rememberWallet:{...n?.rememberWallet,hidden:true}}}}}}}function O({own:e,children:o}){let[t]=useState(()=>f(e)),[n]=useState(e.autoConnect??false),r=e.adapter,a=e.novaConnect;useEffect(()=>{t.getState().updateParameters({adapter:r});},[t,r]),useEffect(()=>{if(!s.has(t)){if(s.add(t),n){t.getState().initializeAutoConnect(true).catch(()=>{});return}t.setState({isAutoConnectFinished:true});}},[t,n]);let m=useMemo(()=>n?a:v(a),[n,a]);return jsxs(SatelliteStoreContext.Provider,{value:t,children:[e.watchers,jsx(NovaConnectProvider,{...m,siwx:void 0,children:o})]})}export{O as OwnConnection};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var novaConnect=require('@tuwaio/nova-connect'),satelliteCore=require('@tuwaio/satellite-core'),satelliteReact=require('@tuwaio/satellite-react'),react=require('react'),jsxRuntime=require('react/jsx-runtime');var d=new WeakMap,s=new WeakSet;function f(e){let o=()=>satelliteCore.createSatelliteConnectStore({adapter:e.adapter,rememberWallet:e.rememberWallet??false}),t=Array.isArray(e.adapter)?e.adapter[0]:e.adapter;if(typeof window>"u"||!t)return o();let n=d.get(t);if(n)return n;let r=o();return d.set(t,r),r}function v(e){let o=e.customization,t=o?.modals?.connectModal,n=t?.childComponents;return n?.rememberWallet?.hidden!==void 0?e:{...e,customization:{...o,modals:{...o?.modals,connectModal:{...t,childComponents:{...n,rememberWallet:{...n?.rememberWallet,hidden:true}}}}}}}function O({own:e,children:o}){let[t]=react.useState(()=>f(e)),[n]=react.useState(e.autoConnect??false),r=e.adapter,a=e.novaConnect;react.useEffect(()=>{t.getState().updateParameters({adapter:r});},[t,r]),react.useEffect(()=>{if(!s.has(t)){if(s.add(t),n){t.getState().initializeAutoConnect(true).catch(()=>{});return}t.setState({isAutoConnectFinished:true});}},[t,n]);let m=react.useMemo(()=>n?a:v(a),[n,a]);return jsxRuntime.jsxs(satelliteReact.SatelliteStoreContext.Provider,{value:t,children:[e.watchers,jsxRuntime.jsx(novaConnect.NovaConnectProvider,{...m,siwx:void 0,children:o})]})}exports.OwnConnection=O;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {errorChain}from'@tuwaio/orbit-core';var a=class extends Error{constructor(t,i,d){super(i,d);this.kind=t;this.name="PaymentWalletError";}kind},u=4001,E=/user (rejected|denied|declined|cancell?ed)|(rejected|denied|declined|cancell?ed) by (the )?user/i,w="ChainNotConfiguredError",f="ConnectorNotConnectedError",h=new Set(["ConnectorChainMismatchError","ChainMismatchError"]),p=new Set(["SwitchChainError","SwitchChainNotSupportedError"]),m=new Set([4200,-32601,-32004]),N=4100,C=-32002,n=(o,r)=>typeof o=="object"&&o!==null?o[r]:void 0;function g(o){let r=errorChain(o),t=e=>r.find(e),i=t(e=>e instanceof a);if(i)return i.kind;if(t(e=>{let c=n(e,"message");return n(e,"code")===u||n(e,"name")==="UserRejectedRequestError"||typeof c=="string"&&E.test(c)}))return "declined";if(t(e=>n(e,"code")===C))return "alreadyPending";if(t(e=>n(e,"name")===w||m.has(n(e,"code"))))return "unsupported";if(t(e=>h.has(n(e,"name"))))return "wrongNetwork";if(t(e=>p.has(n(e,"name"))))return "switchFailed";if(t(e=>n(e,"code")===N))return "notAuthorized";let s=t(e=>n(e,"name")===f);return s?(process.env.NODE_ENV==="development"&&console.error("[nova-payments] paymentsEVMAdapter is built on a wagmi config the connected wallet is not in: give NovaPaymentsProvider `adapters` on the wagmi config of the Satellite EVM adapter that connects the wallet.",s),"unsupported"):(process.env.NODE_ENV==="development"&&console.error("[nova-payments] The wallet failed:",o),"failed")}export{a,g as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var orbitCore=require('@tuwaio/orbit-core');var a=class extends Error{constructor(t,i,d){super(i,d);this.kind=t;this.name="PaymentWalletError";}kind},u=4001,E=/user (rejected|denied|declined|cancell?ed)|(rejected|denied|declined|cancell?ed) by (the )?user/i,w="ChainNotConfiguredError",f="ConnectorNotConnectedError",h=new Set(["ConnectorChainMismatchError","ChainMismatchError"]),p=new Set(["SwitchChainError","SwitchChainNotSupportedError"]),m=new Set([4200,-32601,-32004]),N=4100,C=-32002,n=(o,r)=>typeof o=="object"&&o!==null?o[r]:void 0;function g(o){let r=orbitCore.errorChain(o),t=e=>r.find(e),i=t(e=>e instanceof a);if(i)return i.kind;if(t(e=>{let c=n(e,"message");return n(e,"code")===u||n(e,"name")==="UserRejectedRequestError"||typeof c=="string"&&E.test(c)}))return "declined";if(t(e=>n(e,"code")===C))return "alreadyPending";if(t(e=>n(e,"name")===w||m.has(n(e,"code"))))return "unsupported";if(t(e=>h.has(n(e,"name"))))return "wrongNetwork";if(t(e=>p.has(n(e,"name"))))return "switchFailed";if(t(e=>n(e,"code")===N))return "notAuthorized";let s=t(e=>n(e,"name")===f);return s?(process.env.NODE_ENV==="development"&&console.error("[nova-payments] paymentsEVMAdapter is built on a wagmi config the connected wallet is not in: give NovaPaymentsProvider `adapters` on the wagmi config of the Satellite EVM adapter that connects the wallet.",s),"unsupported"):(process.env.NODE_ENV==="development"&&console.error("[nova-payments] The wallet failed:",o),"failed")}exports.a=a;exports.b=g;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{formatCountLabel as b,formatLabel as c,formatLabelParts as d}from'@tuwaio/nova-core/utils';var o={common:{close:"Close",retry:"Try again",loading:"Loading the checkout\u2026",dialogTitle:"Pay {merchant}"},error:{title:"The checkout can't be opened",notFound:"This payment link is wrong or no longer works. Ask the seller for a new one.",generic:"Something went wrong. Try again in a moment."},steps:{details:"Details",method:"Method",pay:"Pay",confirm:"Confirm",autoPay:"Auto-pay",progress:"Step {current} of {total}: {name}",label:"Payment steps"},language:{button:"Language: {language}",title:"Language",note:"Your invoice and receipt use this language too.",noteAfterPaid:"Your receipt stays in the language it was issued in."},method:{title:"Choose how to pay",subtitle:"The price locks for {minutes} minutes when you continue.",token:"Token",networks:"{count} networks",network:"{symbol} network",yourWallet:"Your wallet",popular:"Popular",noGasFee:"No gas fee",buyerPaysGas:"You pay the network fee",discount:"\u2212{percent}%",markup:"+{percent}%",payWith:"Pay with",wallet:"Wallet",walletHint:"MetaMask, Rabby, Phantom\u2026",qr:"QR code",qrHint:"Phone wallet",continue:"Continue",quoting:"Getting the price\u2026",agreeBoth:"By continuing you agree to the seller's {terms} and {refundPolicy}.",agreeOne:"By continuing you agree to the seller's {link}.",consentRequired:"Required to continue.",noMethods:"This invoice cannot be paid with any method right now. Contact the seller.",methodUnavailable:"This page cannot take this method. Choose another one.",tooManyPayers:"Too many wallets tried this invoice. Ask {merchant} for a new payment link.",tooManyPayments:"This invoice can no longer take a payment here. Contact {merchant}.",nativeFromSmartWallet:"A smart wallet cannot pay in this coin: choose a token.",payerNotExpected:"The seller asked for this invoice to be paid from another wallet. Connect that wallet.",rateLimited:"Too many tries. Wait a minute and try again.",paymentFailed:"The payment failed. Only the network fee was spent; the invoice is still open.",restSameMethod:"The rest is paid in the same token on the same network as the first part.",priceUnavailable:"The price of this method can't be read right now. Choose another method or try again in a minute."},buyer:{title:"Your details",subtitle:"The seller needs them for the invoice and the receipt.",email:"Email",name:"Name",companyName:"Company",addressLine1:"Address",addressLine2:"Address, line 2",postalCode:"Postal code",city:"City",country:"Country",chooseCountry:"Choose a country",taxId:"VAT or tax ID",registrationNumber:"Company number",optional:"optional",companyInvoice:"I need an invoice for my company",required:"Required",invalidEmail:"Enter an email like name@example.com",invalidCountry:"Choose a country from the list",refused:"Your details could not be saved. Check them and try again.",continue:"Continue"},pay:{title:"Pay",walletLine:"{address} \xB7 {network}",change:"Change",changeWallet:"Change wallet",youSend:"You send",youSendRest:"You send the rest",copyAmount:"Copy amount",copied:"Copied",onNetwork:"on {network}",fiatValue:"= {amount} {currency}",priceLocked:"Price locked for {time}",refreshPrice:"Refresh price",priceEnding:"This price ends in {time}. Keep it?",keepPrice:"Keep this price \xB7 +{minutes} min",priceExpired:"The price lock ran out.",newPrice:"Get a new price",rate:"Rate",rateValue:"1 {symbol} = {price} {currency}",networkFee:"Network fee",merchantPaysGas:"{merchant} pays \xB7 you only sign",gasEstimate:"\u2248 {amount} \xB7 from your wallet",gasFromWallet:"Paid from your wallet",to:"To",invoiceTotal:"Invoice total",invoiceRest:"Rest of the invoice",backFromRest:"Back",restRateUntil:"This rate holds until {time}. A payment after that waits for {merchant} to accept it.",restRateEnded:"This rate was locked earlier, so this payment waits for {merchant} to accept it.",restTimeLeft:"Time left to send: {time}",transferFee:"Token transfer fee {percent}%",merchantReceives:"{merchant} receives",transferFeeNote:"The token's contract keeps a fee on every transfer, so you send a bit more for the invoice to be paid in full.",signToPay:"Sign to pay {amount}",payAmount:"Pay {amount}",switchTo:"Switch to {network}",connect:"Connect a wallet",back:"Back to methods",payWithGas:"Pay with gas instead",payGasless:"Let {merchant} pay the gas",disclaimer:"Payments go straight to {merchant} and can't be reversed; refunds come from the seller.",disclaimerScreening:"{merchant} checks paying wallets against sanctions lists and, where available, other risk signals.",wrongNetwork:"Wrong network",wrongNetworkText:"Your wallet is on {current}. This payment goes on {network}.",switchHint:"Your wallet asks you to approve the switch.",solanaNetwork:"Pay on {network}",solanaNetworkText:"Solana wallets choose their network themselves: switch yours to {network} before you pay.",solanaHintPhantom:"In Phantom: Settings \u203A Developer Settings \u203A Testnet Mode, then {network}.",solanaHintSolflare:"In Solflare: Settings \u203A General \u203A Network \u203A {cluster}.",solanaHintOther:"Choose the network in the settings of {wallet}.",notEnough:"Not enough",walletHas:"Your wallet has {amount} on {network}",shortBy:"{short} short of {need}.",payFromBalance:"Pay from what this wallet has",youHave:"You have {amount}",topUp:"Or add {symbol} to this wallet and come back:",getToken:"Get {symbol}",connectUnavailable:"This page has no wallet connection. Pay with a QR code instead.",switchFailed:"{wallet} did not switch to {network}. Switch it in the wallet, then try again.",notAuthorized:"{wallet} has not allowed this account here. Check in {wallet} that this account is connected to this site, then try again.",walletFailed:"{wallet} did not do it, and nothing was sent. Try again.",sentUnconfirmed:"{wallet} sent the payment and it is not confirmed yet. Do not pay again: this page updates once it lands.",declined:"You declined the request in {wallet}.",tryAgain:"Try again",failed:"The payment failed on {network}. Only the network fee was spent; the invoice is still open.",mismatch:"This transaction does not pay the invoice. If money left your wallet, contact {merchant}.",mismatchTakenElsewhere:"This transaction pays another invoice. If it was your payment for this one, contact {merchant} with the transaction hash.",mismatchHeldElsewhere:"This transaction is tied to another invoice, which holds it for a refund to the wallet that sent it. It does not count for this invoice. If it was your payment for this one, contact {merchant} with the transaction hash.",mismatchOtherWallet:"This transfer came from a wallet that did not confirm this invoice, so it does not pay it. If money left your wallet, contact {merchant}.",mismatchOtherWalletHeld:"This transfer came from a wallet that did not confirm this invoice, so it does not pay it. {merchant} returns it to the wallet that sent it, and you can still pay this invoice from the wallet that confirmed it.",mismatchChargeHeld:"This payment was sent or charged under an earlier price of this invoice, so it does not pay it. {merchant} returns it to your wallet, and you can still pay the invoice.",mismatchTooManyParts:"This invoice has taken as many parts as it can, so this transfer does not pay it. {merchant} returns it to your wallet; send the whole rest at once.",payAgain:"Pay again",unsupported:"{wallet} can't make this payment.",wrongCluster:"{wallet} is on another network, so nothing was paid. Switch it to {network} and pay again.",screeningUnavailable:"The wallet check is unavailable right now.",retryLater:"Try again in a minute",noAnswer:"The payment server did not answer. Check your connection and try again.",txTitle:"Payment to {merchant}",txDescription:"{amount} \xB7 {invoice}"},walletPrompt:{signIn:"Sign in {wallet}",confirmIn:"Confirm in {wallet}",switchIn:"Approve the switch in {wallet}",signText:"Sign the transfer of {amount} to {merchant} on {network}. No gas: {merchant} pays the network fee.",confirmText:"Confirm the transfer of {amount} to {merchant} on {network}.",check:"Check in {wallet} before signing",amount:"Amount",to:"To",network:"Network",priceLocked:"Price locked",notOpened:"The wallet window didn't open?",tryAgain:"Try again",stillWaiting:"No window? Open {wallet}: the request waits there.",cancel:"Cancel",submitting:"Handing the payment to Quasar\u2026"},payerProof:{title:"Confirm your wallet",text:"Confirm this wallet \u2014 it is free and moves no money.",summary:"What you sign",invoice:"Invoice",merchant:"Seller",amount:"Amount",wallet:"Wallet",site:"Site",alreadyConfirmed:"Already confirmed for this invoice: {wallet}. Switch to it in your wallet to skip this signature.",why:"Payments from this wallet count for this invoice once it signs. Your wallet shows a message to sign, not a payment: no fee, nothing leaves the wallet.",passkey:"{wallet} may ask for your passkey or fingerprint to sign.",confirm:"Confirm in {wallet}",waiting:"Waiting for {wallet}\u2026",note:"One signature per wallet for this invoice: a new price, token or network needs no new one.",noteSmart:"One signature per wallet for this invoice: a new price or token needs no new one; another network asks again.",promptText:"Sign the message that confirms this wallet pays invoice {invoice} of {merchant}. It is free and moves no money.",promptPasskey:"Confirm with your passkey in {wallet}. It signs the message that confirms this wallet pays invoice {invoice} of {merchant}; it is free and moves no money.",declined:"You declined the signature in {wallet}. It is free and moves no money: sign it to pay from this wallet, or choose another wallet or method.",unsupported:"{wallet} can't sign this confirmation. Choose another wallet or method.",failed:"{wallet} did not sign the confirmation. Try again.",invalid:"The signature could not be verified. Try again, or pay from another wallet.",unavailable:"The network can't check this wallet's signature right now. Try again in a minute.",wrongNetwork:"Switch {wallet} to {network}, then confirm again.",tooManyWallets:"Too many wallets have confirmed this invoice. Pay from one of them, or ask {merchant} for a new invoice.",switchDeclined:"You declined the switch to {network} in {wallet}. Approve it to confirm this wallet, or choose another method.",willSwitch:"Your wallet is on {current}: it first asks to switch to {network}.",confirmToPay:"Confirm this wallet to pay",payNote:"Paying from this wallet needs a free signature first: it confirms that the wallet pays this invoice and moves no money.",signInRequest:"{wallet} may show it as a sign-in request for {site}."},qr:{solanaTitle:"Scan with a Solana wallet",solanaHint:"Open Phantom, Solflare or Backpack",restHint:"Scan with the wallet that paid first, {wallet}.",scanStep:"Scan the code (Solana Pay)",approveStep:"Approve the amount below",solanaCode:"QR code of a Solana Pay request for {amount}",waiting:"Waiting for the payment\u2026",exchangeWarning:"Send from your own wallet, not from an exchange: an exchange drops the payment reference, and the payment would wait for a manual check.",openInWallet:"Open in wallet app",handoffTitle:"Pay on your phone",handoffHint:"Scan with the phone camera: this checkout opens there, and you pay with your mobile wallet.",handoffCode:"QR code that opens this checkout on your phone",handoffNote:"This page follows the payment and shows the receipt when it arrives.",copyLink:"Copy link",back:"Back to methods"},confirm:{title:"Confirming your payment",hint:"Usually under two minutes on {network}.",sent:"Sent",confirming:"Confirming",confirmed:"Confirmed",paid:"Paid",failed:"Failed",network:"Network",amount:"Amount",transaction:"Transaction",lastTransfer:"Last transfer",from:"From",canClose:"You can close this window: the payment keeps going, and the seller sends the receipt.",afterDeadline:"Your payment was sent before the deadline and is being confirmed.",pastDeadline:"Your payment is being confirmed. If it arrives after the invoice closes, {merchant} accepts it or returns it.",invoicePayment:"A payment for this invoice is on its way. Wait until it is confirmed before paying again.",viewOnExplorer:"View on the explorer",copyHash:"Copy the transaction"},paid:{title:"Payment received",summary:"on {network} \xB7 {date}",receipt:"Receipt",receiptHint:"PDF of the payment, also kept by the seller",download:"Download",refunded:"Refunded {amount} {currency}",back:"Back to {merchant}",returning:"Returning to {merchant} in {seconds} s",stay:"Stay here",autoPayOffer:"Pay the next periods automatically",autoPayActive:"Automatic payments are on.",autoPayOff:"Turn off",autoPayTurnedOff:"Automatic payments are off. {merchant} can no longer charge this wallet."},autoPay:{title:"Pay next periods automatically?",subtitle:"Optional. Without it, you get an invoice each period and pay it yourself.",allow:"You allow {merchant} to take",limit:"up to {amount}",every:"every {period}",from:"From",to:"To",validUntil:"Valid until",validUntilValue:"{date}, or until you turn it off",collector:"Quasar sends each charge for {merchant}, only to {merchant}'s wallet and within this limit.",invoices:"Each charge comes with an invoice and a receipt by email.",cap:"{merchant} can't take more than this limit in a period.",turnOff:"You can turn it off at any time on the page of any of these invoices: your wallet sends one transaction. To cancel the subscription itself, contact {merchant}.",confirm:"Allow automatic payments",skip:"Not now, I'll pay each invoice",walletNote:"Your wallet shows this permission (ERC-7715) before you approve it.",approveIn:"Approve in {wallet}",unavailable:"{wallet} can't allow automatic payments.",smartAccountNote:"Automatic payments need a smart account. {wallet} asks you to switch to it first: one transaction on {network}, and you pay its network fee. Your address stays the same.",smartAccountPrompt:"{wallet} asks you to switch this account to a smart account. Your address and your funds stay the same.",smartAccountNeeded:"Automatic payments need a smart account. In {wallet}, open the details of this account, turn on its smart account for {network}, then try again.",notGranted:"{wallet} did not give the permission. Try again, or pay each invoice yourself.",invalid:"This permission can't be used. Try again, or pay each invoice yourself."},autoPayOff:{title:"Turn off automatic payments?",subtitle:"{merchant} can no longer charge this wallet. The subscription goes on: later periods come as invoices you pay yourself. To cancel it, contact {merchant}.",wallet:"Wallet",allowed:"Allowed now",fee:"Your wallet sends one transaction on {network} and you pay its network fee.",confirm:"Turn off in {wallet}",checkAgain:"Check again",keep:"Keep them on",connect:"Connect that wallet",otherWallet:"Only the wallet that allowed them, {wallet}, can turn them off.",useThisWallet:"Use this wallet instead",inWallet:"Confirm in {wallet}\u2026",waiting:"Waiting for the network\u2026",notYet:"The network does not show it yet. If your wallet sent the transaction, check again in a minute.",unsupported:"{wallet} can't send this transaction."},outcome:{underpaidTitle:"Part of the payment arrived",underpaidText:"{received} of {total} received.",underpaidRest:"Send the rest, {rest}, from the same wallet on {network}.",underpaidNote:"Until the rest arrives, {merchant} sees the invoice as underpaid. It stays payable until {date}.",underpaidClosed:"The rest of this invoice can no longer be paid here.",underpaidClosedRefund:"After {date}, {merchant} can refund what arrived.",underpaidRateEnded:"The rate of this invoice has ended, so a rest paid now waits for {merchant} to accept it.",underpaidBlocked:"This wallet did not pass the wallet check, so it cannot pay the rest. Contact {merchant}.",payRestFirstWallet:"Only the wallet that paid first, {wallet}, can pay the rest. Connect that wallet to pay it.",payRest:"Pay the rest",heldTitle:"Payment received, {merchant} is checking it",heldScreening:"{merchant} checks the payment before confirming the order.",heldLate:"The payment arrived after the invoice closed. {merchant} accepts it or returns it.",heldOverpaid:"You sent more than the invoice. {merchant} confirms the order or returns the difference to your wallet.",heldQuoteExpired:"The payment arrived after the price lock ran out. {merchant} accepts it or returns it.",heldNote:"The seller contacts you if anything is needed.",refundedTitle:"Refunded",refundedText:"{merchant} refunded this invoice: {amount} {currency}.",expiredTitle:"This invoice has expired",expiredText:"It was payable until {date}. Ask {merchant} for a new one; nothing was charged.",expiredPartText:"It was payable until {date}. Part of the payment arrived: {amount}.",expiredPartNoAmount:"It was payable until {date}. Part of the payment arrived.",closedPartText:"{merchant} closed this invoice. {amount} of the payment arrived.",expiredPartRefund:"{merchant} can refund it to the wallet that paid; contact {merchant}.",expiredNote:"A payment sent after the deadline is held for the seller to refund or accept.",expiredWhileConfirming:"The invoice closed while your payment was confirming. If it arrives, it is recorded and shown to {merchant}, who accepts it or returns it.",expiredAfterQr:"If you paid with the QR code, {merchant} accepts the payment when it arrives or returns it.",expiredUnconfirmed:"Your payment could not be confirmed yet. Check your wallet: if the payment left it, Quasar checks it again for 24 hours. If it arrives, it is recorded and shown to {merchant}, who accepts it or returns it.",unconfirmedTitle:"We could not confirm your payment",unconfirmedText:"Check your wallet before paying again: your payment may still be on its way.",unconfirmedNote:"Quasar checks your payment again for 24 hours. If it arrives, it is recorded and shown to {merchant}.",unconfirmedContact:"Quasar does not check this payment again. If it left your wallet, contact {merchant} with the transaction hash.",unconfirmedNotReceived:"Quasar did not receive this payment. If it left your wallet, contact {merchant} with the transaction hash.",unconfirmedClosed:"Quasar did not find this payment on the network within 24 hours and no longer checks it. If it left your wallet, contact {merchant} with the transaction hash.",unconfirmedRetrying:"This page keeps handing your payment over to Quasar. Keep it open until the payment shows here.",unconfirmedInvoiceFull:"This invoice takes no more payments, and Quasar does not follow this one. Do not pay again; if it left your wallet, contact {merchant} with the transaction hash.",unconfirmedTakenElsewhere:"This transaction was handed over for another invoice first. Quasar credits it to the invoice the wallet that sent it confirmed, and this page shows the result while it follows the payment. Do not pay again; if your payment does not show here, contact {merchant} with the transaction hash.",unconfirmedUnmined:"Quasar reads this payment for a week after it learned of it, and records it if it goes through. Check your wallet; if it left and you need help, contact {merchant} with this transaction hash.",unconfirmedNonceSpent:"Your wallet used the number of this transaction for another one, which Quasar could not find, so money may have left your wallet. Do not pay again yet. If you sped it up, name its hash below; otherwise contact {merchant} with this transaction hash.",unconfirmedSettlementFailed:"The network confirmed your payment, but Quasar has not recorded it. Do not pay again; contact {merchant} with the transaction hash.",unconfirmedSettlementRetrying:"The network confirmed your payment, but Quasar has not recorded it yet. Quasar tries again daily, for 30 days after it learned of the payment. Do not pay again; contact {merchant} with the transaction hash.",followingUntil:"This page follows the payment until {time}. Later, reload it to see the outcome.",nameHash:"Does your wallet show another transaction?",nameHashField:"Transaction hash",nameHashSend:"Check this transaction",nameHashInvalid:"This is not a transaction of this network.",nameHashRefused:"Quasar could not take this transaction. Contact the seller with its hash.",unconfirmedPayAgain:"The payment did not leave my wallet",cancelledTitle:"This invoice was cancelled",cancelledText:"{merchant} cancelled it; nothing was charged.",cancelledWhilePaying:"{merchant} cancelled it. If your payment arrives, it is recorded and shown to {merchant}, who accepts it or returns it.",cancelledAfterQr:"{merchant} cancelled it. If you paid with the QR code, {merchant} accepts the payment when it arrives or returns it.",replacedTitle:"{merchant} corrected this invoice",replacedText:"{number} replaces it. This invoice can no longer be paid.",replacedPaid:"Already paid? Your payment moved to the new invoice.",openReplacement:"Open {number}",blockedTitle:"This wallet can't pay this invoice",blockedText:"The wallet check did not pass. Nothing was sent. Connect another wallet or contact {merchant}.",useAnotherWallet:"Use another wallet",contact:"Contact {merchant}",contactSubject:"Invoice {number}"},leave:{title:"Leave the checkout?",text:"Nothing is sent yet. The invoice stays open until {date}: reopen it from the link in your email or on the seller's site.",textNoDate:"Nothing is sent yet. The invoice stays open: reopen it from the link in your email or on the seller's site.",price:"The locked price is released; you get a new one when you come back.",stay:"Stay and pay",leave:"Leave"},summary:{test:"Test",testHint:"Test invoice: it is paid on a test network.",sellerDetails:"Seller details",registration:"Company number",taxId:"VAT ID",terms:"Terms",refundPolicy:"Refund policy",privacy:"Privacy",sellerRole:"{seller} is the seller. Quasar is the payment software: it never holds your funds and is not a party to this purchase.",payWithin:"Payment deadline",refundAfter:"Refund possible after",until:"until {date}",minutesLeft:"{minutes} minutes left to pay",oneMinuteLeft:"1 minute left to pay",invoice:"Invoice",quantity:"{quantity} \xD7 {price}",subtotal:"Subtotal",taxRate:"VAT {rate}%",tax:"VAT",total:"Total",secured:"Secured by Quasar",help:"Help",compact:"{count} items \xB7 incl. VAT {tax}",compactOne:"{count} item \xB7 incl. VAT {tax}",compactNoTax:"{count} items",compactNoTaxOne:"{count} item",showOrder:"Details"},refund:{button:"Refund",title:"Refund {invoice}",amountTitle:"What to refund",modeFiat:"An amount",modeFiatText:"In {currency}, converted at the rate of now",modeExact:"Everything received",modeExactText:"The tokens the payment brought, as they are",amount:"Amount, {currency}",amountHint:"Up to {amount}",reason:"Reason (optional)",continue:"Continue",movedTitle:"The price has moved",movedText:"The price of {symbol} changed since the payment, so this amount takes a different number of tokens.",movedSend:"This refund sends",movedAtPayment:"At the rate of the payment",movedReceived:"The payment brought",movedExact:'To return the tokens as they came, go back and choose "{exact}".',movedContinue:"Continue with this amount",movedBack:"Back",requesting:"Asking Quasar for the refund\u2026",connectTitle:"Connect a wallet",connectText:"The refund goes out on {network}, the network of the payment. Any wallet that holds {symbol} there can send it.",connect:"Connect wallet",connectUnavailable:"This page can't connect a wallet. Send the refund from your wallet, then record it.",confirmTitle:"Confirm the refund",send:"Send",to:"To",thePayer:"the payer",theSender:"the sender of this transfer",from:"From",balance:"Holds {amount}",networkFee:"Network fee",feeEstimate:"\u2248 {amount} \xB7 from your wallet",sendRefund:"Send refund",switchTo:"Switch to {network}",walletTitle:"Confirm in {wallet}",walletText:"Confirm the transfer of {amount} on {network}.",switchTitle:"Approve the switch in {wallet}",submitting:"Handing the refund to Quasar\u2026",onItsWay:"On its way",status:"Status",pending:"Pending",transaction:"Transaction",network:"Network",waiting:"{network} \xB7 waiting for confirmation",canClose:"You can close this window: the invoice shows how the refund goes.",refunded:"Refunded",creditNote:"Credit note",done:"Done",failedShort:"Part of the refund reached the buyer. Send the refund again: only what is missing goes.",failedTitle:"The refund failed",failedWithdrawnTitle:"You took the refund back",failedCancelledTitle:"You cancelled the refund",failedByHand:"The transaction of this refund cannot settle it: check it by hand against the refunds of the invoice.",failedText:"The transaction failed on {network}; only the network fee was spent. Send the refund again.",failedFromBuyer:"It was sent from the wallet it goes back to, or from a wallet that paid the invoice, so nothing went back. Send it again from another wallet.",failedNotFound:"Its transaction was not found in time or was replaced: it may still have arrived.",failedDropped:"Its transaction was not found on the network: it may still have arrived.",failedTooEarly:"Its transaction is older than the payment, so it is not this refund.",failedNoTransfer:"Its transaction sent nothing Quasar could see to the wallet the refund goes to.",failedWithdrawn:"You took it back before it was sent.",failedCancelling:"You cancelled it in your wallet. It can be sent again once the cancellation is final, usually in a few minutes.",failedCancelled:"You cancelled it in your wallet, so nothing was sent. You can send it again.",failedResendConfirmed:"You confirmed that it did not leave your wallet: it can be sent again.",failedHeldNote:"The transfer stays held. Close this window: its row says what to do next.",notSent:"Not sent",notEnough:"Not enough {symbol} on {address}: it holds {balance}.",declined:"You declined the request in {wallet}.",unsupported:"{wallet} can't send this refund.",wrongNetwork:"{wallet} is on another network, so nothing was sent. Switch it to {network} and send again.",failed:"The wallet did not send the refund. Try again.",noRecipient:"The payer's wallet is not known, so this refund can't be sent from here.",unreachable:"Quasar does not answer, so nothing was sent. Try again in a moment.",refusedAmount:"The amount is more than what is left to refund.",refusedNotRefundable:"This payment cannot be refunded any more.",refusedWhole:"A held transfer is returned whole.",refusedBlocked:"A compliance check blocks the wallet to refund. Nothing can be sent to it.",refusedNotWaiting:"This refund no longer waits for a transaction. Nothing was sent.",refusedMayHaveLanded:"An earlier transaction of this refund may have gone through. Check it before asking again.",refusedPrice:"The price cannot be read right now. Try again in a moment.",refusedTestOnly:"This node accepts test networks only.",refusedOther:"Quasar refused this refund. Nothing was sent.",slowNote:"Quasar has not seen this transaction land yet. If your wallet shows another hash, because it was sped up or cancelled there, record that one.",nothingSent:"Nothing was sent: the refund waits for its transaction.",notHandedOver:"The refund was sent, but Quasar hasn't taken its transaction yet. Hand it over again: nothing is sent twice.",handOver:"Hand it over again",record:"Record refund",recordHint:"Sent it another way? Record the refund with its transaction: Quasar checks it on-chain.",close:"Close",txTitle:"Refund of {invoice}",txDescription:"{amount} to the payer",txDescriptionSender:"{amount} to the sender of the transfer"}};var k=[{code:"en",name:"English",short:"EN"},{code:"uk",name:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",short:"UK"},{code:"zh-CN",name:"\u7B80\u4F53\u4E2D\u6587",short:"ZH"},{code:"es",name:"Espa\xF1ol",short:"ES"},{code:"it",name:"Italiano",short:"IT"},{code:"de",name:"Deutsch",short:"DE"}],r={"zh-CN":()=>import('./zhCN-BZBMKUUA.js').then(e=>e.zhCNLabels),es:()=>import('./es-LP3HJ4KB.js').then(e=>e.esLabels),de:()=>import('./de-53SSE6O2.js').then(e=>e.deLabels),uk:()=>import('./uk-EI4N5BMM.js').then(e=>e.ukLabels),it:()=>import('./it-JJ5Z5EUF.js').then(e=>e.itLabels)},i=new Map([["en",o]]),s=e=>!!e&&Object.hasOwn(r,e);function l(e){return !s(e)||i.has(e)}function c(e){return e&&i.get(e)||o}async function v(e){if(l(e))return c(e);let t=e,n=o;try{n=await r[t]();}catch{}return i.set(t,n),n}function T(e,t){if(!t)return e;let n={...e};for(let a of Object.keys(t))t[a]&&Object.assign(n,{[a]:{...e[a],...t[a]}});return n}export{o as a,k as e,l as f,c as g,v as h,T as i};
|