openreceive 0.4.4 → 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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +32 -18
- data/lib/openreceive/rates.rb +1 -1
- data/lib/openreceive/version.rb +1 -1
- data/skills/integrate-openreceive/SKILL.md +1 -0
- data/skills/integrate-openreceive/references/btcpay.md +1 -1
- data/skills/integrate-openreceive/references/django.md +1 -1
- data/skills/integrate-openreceive/references/fastapi.md +1 -1
- data/skills/integrate-openreceive/references/fastify.md +1 -1
- data/skills/integrate-openreceive/references/laravel.md +1 -1
- data/skills/integrate-openreceive/references/next.md +1 -1
- data/skills/integrate-openreceive/references/node.md +1 -1
- data/skills/integrate-openreceive/references/php.md +1 -1
- data/skills/integrate-openreceive/references/rails.md +1 -1
- data/skills/integrate-openreceive/references/woocommerce.md +176 -0
- metadata +17 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a58066e78b2dd865b470bda546e371dccea7881c47c0b9d6a98476ffc425ce2
|
|
4
|
+
data.tar.gz: 1924a2e38066b8b7e52806850029917093805c998e3cfa8ea37656f62ae5ebd9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f150f29cf3356647ca2e3c1566e63a8824e62a3af6258586422af5a20193c0447855f39fb819870b5f920543e182f63043bb09d73eba36b5a67feeae61098284
|
|
7
|
+
data.tar.gz: 0ee1d97ff42aa3d35587c01f44bad5828511599afe373500c01e1b4e445d78ffef3fd672a88329c0e60d1028cd48d5373831bc2abb5554e8c682a5d18c79c908
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.6 - 2026-09-11
|
|
4
|
+
|
|
5
|
+
Remove obsolete VEF from live price-feed requests, matching the JavaScript,
|
|
6
|
+
Python and PHP engines. Refresh installation and quickstart documentation and
|
|
7
|
+
package metadata. Release in lockstep with the compact checkout and publishing
|
|
8
|
+
fixes in 0.4.6; no Ruby public API change.
|
|
9
|
+
|
|
10
|
+
## 0.4.5 - 2026-09-07
|
|
11
|
+
|
|
12
|
+
Release in lockstep with the Python/PHP publishing workflow fixes and complete
|
|
13
|
+
WooCommerce integration documentation. Shared HTTP golden fixtures now use
|
|
14
|
+
the canonical placeholder definitions. No Ruby public API change.
|
|
15
|
+
|
|
3
16
|
## 0.4.4 - 2026-09-07
|
|
4
17
|
|
|
5
18
|
Version lockstep with the 0.4.4 npm release (every checkout image now ships
|
data/README.md
CHANGED
|
@@ -1,23 +1,34 @@
|
|
|
1
1
|
# openreceive
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
3
|
+
**Bitcoin Lightning payments for Ruby. Your app, your wallet.**
|
|
4
|
+
|
|
5
|
+
[OpenReceive](https://openreceive.org) helps you accept payments directly into
|
|
6
|
+
a wallet you control. Keep your orders, prices, and fulfillment in your own
|
|
7
|
+
application, with receive-only Nostr Wallet Connect (NWC) connecting your
|
|
8
|
+
server to your wallet.
|
|
9
|
+
|
|
10
|
+
OpenReceive supports optional swaps from **USDT, USDC, SOL, and ETH** through
|
|
11
|
+
a configured swap provider. The provider converts the payment to **BTC over
|
|
12
|
+
Lightning**, which settles into the merchant's connected wallet. Available
|
|
13
|
+
assets and networks depend on the provider; swaps are optional.
|
|
14
|
+
|
|
15
|
+
This gem is the lightweight Ruby foundation: exact money conversion, exchange
|
|
16
|
+
rates, wallet adapters, and shared settlement rules, with no database
|
|
17
|
+
dependency. Most applications should start with one of the integrations
|
|
18
|
+
built on it:
|
|
19
|
+
|
|
16
20
|
- [`openreceive-rails`](https://rubygems.org/gems/openreceive-rails) — the
|
|
17
|
-
|
|
21
|
+
complete Rails integration, with payment storage in your existing database,
|
|
22
|
+
reconciliation, and three application hooks. [Start with Rails](https://github.com/OpenReceive/openreceive/blob/master/docs/guides/quickstart-rails.md).
|
|
23
|
+
- [`openreceive-server`](https://rubygems.org/gems/openreceive-server) — invoice
|
|
24
|
+
creation, payment checks, and a Rack handler for custom Ruby integrations
|
|
25
|
+
that provide their own payment persistence. [Explore the server gem](https://github.com/OpenReceive/openreceive/blob/master/packages/ruby/openreceive-server/README.md).
|
|
18
26
|
|
|
19
27
|
## Install
|
|
20
28
|
|
|
29
|
+
Requires Ruby 3.2 or later. Choose this gem directly when you need the payment
|
|
30
|
+
primitives rather than a mounted checkout integration.
|
|
31
|
+
|
|
21
32
|
```sh
|
|
22
33
|
gem install openreceive
|
|
23
34
|
```
|
|
@@ -39,6 +50,8 @@ gem "openreceive"
|
|
|
39
50
|
(`OpenReceive::Nwc.normalize_wallet_error`,
|
|
40
51
|
`OpenReceive::Nwc.normalize_transaction`).
|
|
41
52
|
- Settlement-authority rules: what counts as settled, and what never does.
|
|
53
|
+
Settlement requires `settled_at` or state `settled`; a preimage alone does
|
|
54
|
+
not settle a payment.
|
|
42
55
|
- The built-in price feed (`OpenReceive::Rates`): a static provider and the
|
|
43
56
|
cached live feed with primary/fallback failover, fail-closed windows, and
|
|
44
57
|
the shared currency list.
|
|
@@ -49,13 +62,14 @@ gem "openreceive"
|
|
|
49
62
|
(`subscribe_notifications`, forwarded to that gem's
|
|
50
63
|
`subscribe_to_notifications`).
|
|
51
64
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
decisions.
|
|
65
|
+
Money, wallet normalization, and settlement rules are tested against shared
|
|
66
|
+
cross-language vectors in `spec/test-vectors`.
|
|
55
67
|
|
|
56
68
|
## Links
|
|
57
69
|
|
|
58
|
-
-
|
|
70
|
+
- Rails quickstart: [Add checkout to your app](https://github.com/OpenReceive/openreceive/blob/master/docs/guides/quickstart-rails.md)
|
|
71
|
+
- API reference: [Ruby and Rails APIs](https://github.com/OpenReceive/openreceive/blob/master/docs/guides/api-reference.md)
|
|
72
|
+
- Website: <https://openreceive.org>
|
|
59
73
|
- Source: <https://github.com/openreceive/openreceive>
|
|
60
74
|
- Changelog: [CHANGELOG.md](CHANGELOG.md)
|
|
61
75
|
|
data/lib/openreceive/rates.rb
CHANGED
|
@@ -40,7 +40,7 @@ module OpenReceive
|
|
|
40
40
|
# The fixed fiat list both live feeds price Bitcoin against. Hard-coded so
|
|
41
41
|
# the primary and fallback URLs always request the same currencies.
|
|
42
42
|
PRICE_FEED_VS_CURRENCIES =
|
|
43
|
-
"usd,aed,ars,aud,bdt,bhd,bmd,brl,cad,chf,clp,cny,czk,dkk,eur,gbp,gel,hkd,huf,idr,ils,inr,jpy,krw,kwd,lkr,mmk,mxn,myr,ngn,nok,nzd,php,pkr,pln,rub,sar,sek,sgd,thb,try,twd,uah,
|
|
43
|
+
"usd,aed,ars,aud,bdt,bhd,bmd,brl,cad,chf,clp,cny,czk,dkk,eur,gbp,gel,hkd,huf,idr,ils,inr,jpy,krw,kwd,lkr,mmk,mxn,myr,ngn,nok,nzd,php,pkr,pln,rub,sar,sek,sgd,thb,try,twd,uah,vnd,zar"
|
|
44
44
|
|
|
45
45
|
PRICE_FEED_CURRENCIES = PRICE_FEED_VS_CURRENCIES.split(",").freeze
|
|
46
46
|
|
data/lib/openreceive/version.rb
CHANGED
|
@@ -30,6 +30,7 @@ code** (`NWC_URI`).
|
|
|
30
30
|
- Rails: [references/rails.md](references/rails.md)
|
|
31
31
|
- Django: [references/django.md](references/django.md)
|
|
32
32
|
- Laravel: [references/laravel.md](references/laravel.md)
|
|
33
|
+
- WordPress + WooCommerce: [references/woocommerce.md](references/woocommerce.md) — the packaged gateway and merchant settings.
|
|
33
34
|
- BTCPay Server: [references/btcpay.md](references/btcpay.md) — a plugin,
|
|
34
35
|
configured in BTCPay's store UI or Greenfield API; no application code,
|
|
35
36
|
no npm packages, no gem. The rest of this file is about the library.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# OpenReceive agent directions (BTCPay Server)
|
|
2
2
|
|
|
3
|
-
These directions describe OpenReceive 0.4.
|
|
3
|
+
These directions describe OpenReceive 0.4.6.
|
|
4
4
|
|
|
5
5
|
Connect a BTCPay Server store to a receive-only NWC wallet with the OpenReceive
|
|
6
6
|
plugin, and optionally let payers pay BTCPay invoices with USDT, USDC, ETH or
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# OpenReceive agent directions (Django)
|
|
2
2
|
|
|
3
|
-
These directions describe OpenReceive 0.4.
|
|
3
|
+
These directions describe OpenReceive 0.4.6.
|
|
4
4
|
|
|
5
5
|
Add OpenReceive to a Django project — the app you are already working in. You
|
|
6
6
|
do not need a copy of the OpenReceive source: the Python package is on PyPI
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# OpenReceive agent directions (FastAPI)
|
|
2
2
|
|
|
3
|
-
These directions describe OpenReceive 0.4.
|
|
3
|
+
These directions describe OpenReceive 0.4.6.
|
|
4
4
|
|
|
5
5
|
Add OpenReceive to a FastAPI application — the app you are already working in.
|
|
6
6
|
You do not need a copy of the OpenReceive source: the engine is on PyPI
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# OpenReceive agent directions (Fastify)
|
|
2
2
|
|
|
3
|
-
These directions describe OpenReceive 0.4.
|
|
3
|
+
These directions describe OpenReceive 0.4.6.
|
|
4
4
|
|
|
5
5
|
Add OpenReceive to a Fastify application — the app you are already working in.
|
|
6
6
|
You do not need a copy of the OpenReceive source: the packages are on npm, and
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# OpenReceive agent directions (Laravel)
|
|
2
2
|
|
|
3
|
-
These directions describe OpenReceive 0.4.
|
|
3
|
+
These directions describe OpenReceive 0.4.6.
|
|
4
4
|
|
|
5
5
|
Add OpenReceive to a Laravel application — the app you are already working in.
|
|
6
6
|
You do not need a copy of the OpenReceive source: the package is on Packagist
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# OpenReceive agent directions (Next.js)
|
|
2
2
|
|
|
3
|
-
These directions describe OpenReceive 0.4.
|
|
3
|
+
These directions describe OpenReceive 0.4.6.
|
|
4
4
|
|
|
5
5
|
Add OpenReceive to a Next.js App Router application — the app you are already
|
|
6
6
|
working in. You do not need a copy of the OpenReceive source: the packages are
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# OpenReceive agent directions (Node.js)
|
|
2
2
|
|
|
3
|
-
These directions describe OpenReceive 0.4.
|
|
3
|
+
These directions describe OpenReceive 0.4.6.
|
|
4
4
|
|
|
5
5
|
Add OpenReceive to a Node application — the app you are already working in. You
|
|
6
6
|
do not need a copy of the OpenReceive source: the packages are on npm, and the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# OpenReceive agent directions (PHP)
|
|
2
2
|
|
|
3
|
-
These directions describe OpenReceive 0.4.
|
|
3
|
+
These directions describe OpenReceive 0.4.6.
|
|
4
4
|
|
|
5
5
|
Add OpenReceive to a PHP application — the app you are already working in. You
|
|
6
6
|
do not need a copy of the OpenReceive source: the engine is on Packagist
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# OpenReceive agent directions (Rails)
|
|
2
2
|
|
|
3
|
-
These directions describe OpenReceive 0.4.
|
|
3
|
+
These directions describe OpenReceive 0.4.6.
|
|
4
4
|
|
|
5
5
|
Add OpenReceive to a Rails application — the app you are already working in. You
|
|
6
6
|
do not need a copy of the OpenReceive source: the gem is on RubyGems, the
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
# OpenReceive agent directions (WordPress + WooCommerce)
|
|
2
|
+
|
|
3
|
+
These directions describe OpenReceive 0.4.6.
|
|
4
|
+
|
|
5
|
+
Install and configure the OpenReceive gateway in the existing WooCommerce
|
|
6
|
+
store. Preserve its theme, checkout, customer accounts, order model and prices.
|
|
7
|
+
The plugin bundles the PHP engine and checkout assets; the merchant does not
|
|
8
|
+
install npm or Composer packages on the WordPress server.
|
|
9
|
+
|
|
10
|
+
## Step 0 — inspect configuration
|
|
11
|
+
|
|
12
|
+
Check WordPress, WooCommerce and PHP versions, GMP and sodium availability,
|
|
13
|
+
whether the plugin is installed, and whether the Doctor panel reports the
|
|
14
|
+
receive-only NWC credential as set. Never display its value. For a real store,
|
|
15
|
+
ask the merchant to configure a receive-only wallet if none is available.
|
|
16
|
+
For repository development, use the Docker demo's explicit testkit override.
|
|
17
|
+
|
|
18
|
+
Upload a built plugin archive, not a zip of the source directory. The plugin
|
|
19
|
+
has not yet been accepted into the WordPress.org directory. Configuration and
|
|
20
|
+
the complete quickstart follow below.
|
|
21
|
+
|
|
22
|
+
The plugin owns only its payment-attempt tables in the WordPress database.
|
|
23
|
+
WooCommerce owns orders, totals, stock and email. Do not add an external
|
|
24
|
+
idempotency store, payment database, browser wallet credentials or custom
|
|
25
|
+
fulfillment implementation. Guest return links use WooCommerce's order key;
|
|
26
|
+
the plugin verifies it before issuing an expiring order-bound cookie.
|
|
27
|
+
|
|
28
|
+
Run `wp openreceive doctor` after configuration. Use the documented scheduled
|
|
29
|
+
reconciliation or optional notifications command for offline settlement.
|
|
30
|
+
Manual merchant refunds and provider-managed payer swap refunds are separate
|
|
31
|
+
flows; a receive-only NWC wallet cannot send payments.
|
|
32
|
+
|
|
33
|
+
## Further reading
|
|
34
|
+
|
|
35
|
+
- [Express Quickstart (Node)](https://openreceive.org/guides/quickstart-node.md)
|
|
36
|
+
- [Fastify Quickstart](https://openreceive.org/guides/quickstart-fastify.md)
|
|
37
|
+
- [FastAPI Quickstart](https://openreceive.org/guides/quickstart-fastapi.md)
|
|
38
|
+
- [Django Quickstart](https://openreceive.org/guides/quickstart-django.md)
|
|
39
|
+
- [Next.js Quickstart](https://openreceive.org/guides/quickstart-next.md)
|
|
40
|
+
- [Rails Quickstart](https://openreceive.org/guides/quickstart-rails.md)
|
|
41
|
+
- [PHP Quickstart (plain PHP)](https://openreceive.org/guides/quickstart-php.md)
|
|
42
|
+
- [Laravel Quickstart](https://openreceive.org/guides/quickstart-laravel.md)
|
|
43
|
+
- [BTCPay Server Quickstart](https://openreceive.org/guides/quickstart-btcpay.md)
|
|
44
|
+
- [BTCPay Plugin Reference](https://openreceive.org/guides/btcpay-reference.md)
|
|
45
|
+
- [Node ORM Recipes](https://openreceive.org/guides/node-orms.md)
|
|
46
|
+
- [Authorization](https://openreceive.org/guides/authorization.md)
|
|
47
|
+
- [Rate Limiting](https://openreceive.org/guides/rate-limiting.md)
|
|
48
|
+
- [Frontend Checkout](https://openreceive.org/guides/frontend-checkout.md)
|
|
49
|
+
- [Checkout UX](https://openreceive.org/guides/checkout-ux.md)
|
|
50
|
+
- [Headless Checkout](https://openreceive.org/guides/headless-checkout.md)
|
|
51
|
+
- [Automated Swaps](https://openreceive.org/guides/automated-swaps.md)
|
|
52
|
+
- [Swap Refunds](https://openreceive.org/guides/swap-refunds.md)
|
|
53
|
+
- [Lightning Swap Connect URI](https://openreceive.org/guides/lightning-swap-connect.md)
|
|
54
|
+
- [Environment Variables](https://openreceive.org/guides/environment-variables.md)
|
|
55
|
+
- [Payment Storage](https://openreceive.org/guides/storage.md)
|
|
56
|
+
- [Deploying OpenReceive](https://openreceive.org/guides/deploying.md)
|
|
57
|
+
- [Testing Your OpenReceive Integration](https://openreceive.org/guides/host-testing.md)
|
|
58
|
+
- [API Reference](https://openreceive.org/guides/api-reference.md)
|
|
59
|
+
- [Security](https://openreceive.org/guides/security.md)
|
|
60
|
+
- [Provider Registry](https://openreceive.org/guides/provider-registry.md)
|
|
61
|
+
- [Price Feeds](https://openreceive.org/guides/price-feeds.md)
|
|
62
|
+
- [React Material UI Recipe](https://openreceive.org/guides/react-material-ui-recipe.md)
|
|
63
|
+
- [Flask Recipe](https://openreceive.org/guides/flask-recipe.md)
|
|
64
|
+
- [Writing Your Own Checkout Route](https://openreceive.org/guides/custom-checkout-route.md)
|
|
65
|
+
- [Agent Directions: Node.js](https://openreceive.org/guides/agent-directions-node.md)
|
|
66
|
+
- [Agent Directions: Fastify](https://openreceive.org/guides/agent-directions-fastify.md)
|
|
67
|
+
- [Agent Directions: FastAPI](https://openreceive.org/guides/agent-directions-fastapi.md)
|
|
68
|
+
- [Agent Directions: Django](https://openreceive.org/guides/agent-directions-django.md)
|
|
69
|
+
- [Agent Directions: Next.js](https://openreceive.org/guides/agent-directions-next.md)
|
|
70
|
+
- [Agent Directions: Rails](https://openreceive.org/guides/agent-directions-rails.md)
|
|
71
|
+
- [Agent Directions: PHP](https://openreceive.org/guides/agent-directions-php.md)
|
|
72
|
+
- [Agent Directions: Laravel](https://openreceive.org/guides/agent-directions-laravel.md)
|
|
73
|
+
- [Agent Directions: BTCPay Server](https://openreceive.org/guides/agent-directions-btcpay.md)
|
|
74
|
+
- [WordPress + WooCommerce Quickstart](https://openreceive.org/guides/quickstart-woocommerce.md)
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## The quickstart, in full
|
|
79
|
+
|
|
80
|
+
Inlined verbatim so this file needs no network access — follow it once Step 0
|
|
81
|
+
passes. The page it comes from is https://openreceive.org/guides/quickstart-woocommerce.
|
|
82
|
+
|
|
83
|
+
## WordPress + WooCommerce quickstart
|
|
84
|
+
|
|
85
|
+
Install the built OpenReceive plugin zip through **Plugins → Add New → Upload
|
|
86
|
+
Plugin**, with WooCommerce already active. The source directory needs a build;
|
|
87
|
+
it cannot be uploaded as-is. WordPress.org submission is still pending.
|
|
88
|
+
|
|
89
|
+
Requirements: WordPress 6.6+, WooCommerce 9+, 64-bit PHP 8.2+ with GMP and sodium,
|
|
90
|
+
and MySQL 8 or MariaDB 10.5+. Activation creates payment-attempt tables in the
|
|
91
|
+
existing WordPress database. No separate database or application is required.
|
|
92
|
+
|
|
93
|
+
### Get the installable archive
|
|
94
|
+
|
|
95
|
+
Use `openreceive-wordpress-<version>.zip` from the selected
|
|
96
|
+
[OpenReceive GitHub release](https://github.com/OpenReceive/openreceive/releases)
|
|
97
|
+
when that asset is listed. A GitHub source-code zip is not the plugin archive.
|
|
98
|
+
If the release does not yet provide a built zip, build it on a development
|
|
99
|
+
machine with Node 22+, PHP 8.2+, Composer and WP-CLI:
|
|
100
|
+
|
|
101
|
+
```sh
|
|
102
|
+
git clone https://github.com/OpenReceive/openreceive.git
|
|
103
|
+
cd openreceive
|
|
104
|
+
git checkout <release-tag>
|
|
105
|
+
npm ci
|
|
106
|
+
npm run build:packages
|
|
107
|
+
composer install --working-dir=packages/php/wordpress
|
|
108
|
+
npm run release:wordpress:build
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Upload the resulting `dist/openreceive-wordpress-<version>.zip`. WP-CLI must be
|
|
112
|
+
on `PATH`, or set `OPENRECEIVE_WP_CLI` to the absolute path of its phar. The
|
|
113
|
+
WordPress server needs neither Node nor Composer: dependencies and checkout
|
|
114
|
+
assets are bundled inside the built plugin.
|
|
115
|
+
|
|
116
|
+
### Configure the wallet
|
|
117
|
+
|
|
118
|
+
Open **WooCommerce → Settings → Payments → OpenReceive**. Enter a receive-only
|
|
119
|
+
NWC code, save, then enable the gateway. Saving verifies receive permissions
|
|
120
|
+
and fails closed on a spend-capable wallet unless the explicit override is set.
|
|
121
|
+
The password fields never show saved credentials. Values are encrypted using
|
|
122
|
+
keys derived from WordPress's authentication keys; re-enter them after rotating
|
|
123
|
+
those keys.
|
|
124
|
+
|
|
125
|
+
For managed deployments, configure `OPENRECEIVE_NWC_URI` in `wp-config.php` from
|
|
126
|
+
your server's secret environment. It takes precedence over the settings field.
|
|
127
|
+
Optional `OPENRECEIVE_LSC_URI_PRIMARY` and `OPENRECEIVE_LSC_URI_BACKUP` constants
|
|
128
|
+
configure swap providers. Never put these values in browser code or logs.
|
|
129
|
+
|
|
130
|
+
### Checkout and settlement
|
|
131
|
+
|
|
132
|
+
Both WooCommerce checkout blocks and classic checkout redirect to the order-pay
|
|
133
|
+
page. The plugin reads the amount from `WC_Order`, serves the bundled checkout,
|
|
134
|
+
and authorizes the customer through their account, checkout session or an
|
|
135
|
+
expiring signed cookie issued after verifying the order-pay key. Keep that
|
|
136
|
+
order-pay URL available to customers returning to a pending payment or swap
|
|
137
|
+
refund. The plugin verifies that each requested payment hash belongs to the order.
|
|
138
|
+
|
|
139
|
+
Payment attempts persist before invoice instructions appear. Settlement commits
|
|
140
|
+
once in the payment transaction. WooCommerce's `payment_complete` then handles
|
|
141
|
+
status, stock and emails. A durable order marker lets subsequent requests and
|
|
142
|
+
scheduled passes repair an interruption between settlement and order completion.
|
|
143
|
+
|
|
144
|
+
The checkout polling drives opportunistic reconciliation through the PHP
|
|
145
|
+
engine's shared database gate. Action Scheduler adds a recurring one-minute
|
|
146
|
+
safety net. Configure a system cron to run WordPress scheduled work on stores
|
|
147
|
+
with little traffic; no page visits means WP-Cron alone cannot guarantee prompt
|
|
148
|
+
settlement. Optional process-manager commands:
|
|
149
|
+
|
|
150
|
+
```sh
|
|
151
|
+
wp openreceive doctor
|
|
152
|
+
wp openreceive reconcile
|
|
153
|
+
wp openreceive notifications
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
The notifications command runs as a separate process. The Doctor panel in the
|
|
157
|
+
gateway settings reports schema, credential presence, scheduling and attention
|
|
158
|
+
orders. A currency without a usable price feed makes the gateway unavailable.
|
|
159
|
+
|
|
160
|
+
### Refunds and removal
|
|
161
|
+
|
|
162
|
+
The receive-only wallet cannot send merchant refunds. Make those manually from
|
|
163
|
+
your wallet. Payer swap refunds use the configured provider through the same
|
|
164
|
+
authorized order-pay page; enabling LSC payments commits the shop to keeping
|
|
165
|
+
that recovery path available. See [swap refunds](https://openreceive.org/guides/swap-refunds.md).
|
|
166
|
+
|
|
167
|
+
Deactivation preserves payment records. Deleting the plugin drops its two
|
|
168
|
+
tables only if **Remove data on uninstall** was enabled. WooCommerce orders are
|
|
169
|
+
retained.
|
|
170
|
+
|
|
171
|
+
### Local example
|
|
172
|
+
|
|
173
|
+
The repository's `examples/wordpress` Docker stack builds the plugin and seeds
|
|
174
|
+
WooCommerce from the shared button catalog. Run `npm run demo wordpress` for
|
|
175
|
+
the real-wallet mode, or use its documented `compose.testkit.yml` override for
|
|
176
|
+
a disposable fake-wallet shop. No testkit routes are registered by default.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openreceive
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenReceive
|
|
@@ -23,7 +23,19 @@ dependencies:
|
|
|
23
23
|
- - ">="
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
25
|
version: '0'
|
|
26
|
-
description:
|
|
26
|
+
description: |
|
|
27
|
+
Build Bitcoin Lightning payments into your Ruby application with OpenReceive.
|
|
28
|
+
Work with exact money amounts, normalize wallet responses, and apply consistent
|
|
29
|
+
settlement rules while keeping control of your wallet and application.
|
|
30
|
+
|
|
31
|
+
This lightweight core provides money conversion, exchange rates, Nostr Wallet
|
|
32
|
+
Connect (NWC) adapters, and swap-address validation without a database dependency.
|
|
33
|
+
For a complete Rails integration, install openreceive-rails. For a custom Ruby
|
|
34
|
+
or Rack integration, use openreceive-server.
|
|
35
|
+
|
|
36
|
+
OpenReceive integrations support optional swaps from USDT, USDC, SOL, and ETH
|
|
37
|
+
through a configured provider, settling as BTC over Lightning into your wallet.
|
|
38
|
+
Available assets and networks depend on the provider.
|
|
27
39
|
email:
|
|
28
40
|
- info@openreceive.org
|
|
29
41
|
executables: []
|
|
@@ -52,6 +64,7 @@ files:
|
|
|
52
64
|
- skills/integrate-openreceive/references/node.md
|
|
53
65
|
- skills/integrate-openreceive/references/php.md
|
|
54
66
|
- skills/integrate-openreceive/references/rails.md
|
|
67
|
+
- skills/integrate-openreceive/references/woocommerce.md
|
|
55
68
|
homepage: https://openreceive.org
|
|
56
69
|
licenses:
|
|
57
70
|
- MIT
|
|
@@ -60,7 +73,7 @@ metadata:
|
|
|
60
73
|
source_code_uri: https://github.com/openreceive/openreceive
|
|
61
74
|
changelog_uri: https://github.com/openreceive/openreceive/blob/master/packages/ruby/openreceive/CHANGELOG.md
|
|
62
75
|
bug_tracker_uri: https://github.com/openreceive/openreceive/issues
|
|
63
|
-
documentation_uri: https://
|
|
76
|
+
documentation_uri: https://github.com/openreceive/openreceive/blob/master/packages/ruby/openreceive/README.md
|
|
64
77
|
rubygems_mfa_required: 'true'
|
|
65
78
|
rdoc_options: []
|
|
66
79
|
require_paths:
|
|
@@ -78,5 +91,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
78
91
|
requirements: []
|
|
79
92
|
rubygems_version: 3.6.9
|
|
80
93
|
specification_version: 4
|
|
81
|
-
summary:
|
|
94
|
+
summary: Bitcoin Lightning payment primitives for Ruby. Your app, your wallet.
|
|
82
95
|
test_files: []
|