@openreceive/elements 0.4.5 → 0.4.6
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 +25 -1
- package/dist/{chunk-4APDZW7L.js → chunk-VP27OICT.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/wrapper-shared.js +1 -1
- package/package.json +3 -3
- package/skills/integrate-openreceive/references/btcpay.md +1 -1
- package/skills/integrate-openreceive/references/django.md +1 -1
- package/skills/integrate-openreceive/references/fastapi.md +1 -1
- package/skills/integrate-openreceive/references/fastify.md +1 -1
- package/skills/integrate-openreceive/references/laravel.md +1 -1
- package/skills/integrate-openreceive/references/next.md +1 -1
- package/skills/integrate-openreceive/references/node.md +1 -1
- package/skills/integrate-openreceive/references/php.md +1 -1
- package/skills/integrate-openreceive/references/rails.md +1 -1
- package/skills/integrate-openreceive/references/woocommerce.md +24 -1
package/README.md
CHANGED
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
# @openreceive/elements
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Add Bitcoin Lightning checkout to any website with
|
|
4
|
+
`<openreceive-checkout>`. The custom element displays payment choices, QR
|
|
5
|
+
codes, and live payment status, with no frontend framework required. It also
|
|
6
|
+
ships `<openreceive-theme-toggle>` for switching the checkout theme.
|
|
7
|
+
|
|
8
|
+
OpenReceive supports optional swaps from **USDT, USDC, SOL, and ETH** through
|
|
9
|
+
a configured swap provider. The provider converts the payment to **BTC over
|
|
10
|
+
Lightning**, which settles into the merchant's connected wallet. Available
|
|
11
|
+
assets and networks depend on the provider; swaps are optional.
|
|
12
|
+
|
|
13
|
+
Pair this browser package with an OpenReceive server integration. Your server
|
|
14
|
+
authorizes the order, sets the amount, configures swaps, and verifies
|
|
15
|
+
settlement; wallet and provider credentials stay on the server.
|
|
16
|
+
|
|
17
|
+
## Install
|
|
18
|
+
|
|
19
|
+
Use Node.js 22 or later for package tooling.
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
npm install @openreceive/elements
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Follow the [frontend checkout guide](https://github.com/openreceive/openreceive/blob/master/docs/guides/frontend-checkout.md)
|
|
26
|
+
to connect the component to your server routes. Use the server-side payment
|
|
27
|
+
hook to fulfill orders; browser callbacks update the interface.
|
|
4
28
|
|
|
5
29
|
## Mount
|
|
6
30
|
|
|
@@ -1250,7 +1250,7 @@ function renderElementCompactPaymentSelectorHtml(swapAssetOptions, view) {
|
|
|
1250
1250
|
<h2 id="payment-method-heading" class="${orClasses5.wizardHeaderTitle}">${escapeHtml6(checkoutLabels5.wizardTitle)}</h2>
|
|
1251
1251
|
<p class="${orClasses5.wizardHeaderSubtitle}">${escapeHtml6(checkoutLabels5.wizardSubtitle)}</p>
|
|
1252
1252
|
</header>
|
|
1253
|
-
<div class="${orClasses5.
|
|
1253
|
+
<div class="${orClasses5.methodBody}" aria-labelledby="payment-method-heading">
|
|
1254
1254
|
<div part="method-grid" role="group" aria-label="${escapeHtml6(checkoutLabels5.paymentMethod)}" class="${orClasses5.methodGrid}">
|
|
1255
1255
|
${tiles}${loadingTile}
|
|
1256
1256
|
</div>
|
|
@@ -1284,7 +1284,7 @@ function renderElementNetworkSelectorHtml(group, view, continueButtonHtml, mobil
|
|
|
1284
1284
|
label: option.network_label
|
|
1285
1285
|
})}
|
|
1286
1286
|
</span>
|
|
1287
|
-
<span class="
|
|
1287
|
+
<span class="${orClasses5.methodNetworkLabel}">${escapeHtml6(option.network_label)}</span>
|
|
1288
1288
|
${optionSelected ? `<span aria-hidden="true" class="${networkCheckClasses(accent)}">\u2713</span>` : ""}
|
|
1289
1289
|
</button>
|
|
1290
1290
|
${optionDisabled && optionLimit !== void 0 ? `<span class="${orClasses5.methodLimitHint}">${escapeHtml6(optionLimit)}</span>` : ""}
|
package/dist/index.js
CHANGED