LaWallet - Wordpress combines two Lightning features in one WordPress plugin:
- WooCommerce checkout payments through a merchant Lightning Address with LNURL-pay, LUD-21 backend verification, NIP-57 fast detection, Yadio fiat conversion, and WebLN support.
- LaWallet Lightning Address and NIP-05 discovery for site users by redirecting
/.well-known/*requests to a configured LaWallet API gateway.
The WooCommerce gateway creates a Lightning invoice during checkout, stores the invoice and LUD-21 verify URL on the order, shows a QR/payment link to the customer, then verifies settlement server-side before marking the order paid. NIP-57 zap receipts and WebLN can speed up browser detection, but the backend always confirms with LUD-21 before completing the order.
The discovery option is based on lawalletio/lawallet-wordpress: it adds a settings page under Settings -> LaWallet, verifies the configured gateway with /.well-known/nostr.json?name=_, registers a WordPress rewrite for /.well-known/*, and redirects discovery requests with HTTP 307.
Install or download the plugin from WordPress.org.
Start WordPress, WooCommerce, and the mock Lightning/LaWallet provider:
make up
make setupOpen WordPress at http://localhost:8080.
Admin credentials:
user: admin
pass: password
The local setup configures:
WooCommerce merchant Lightning Address: merchant@mock-lnurl:4000
LaWallet discovery gateway: http://mock-lnurl:4000
The mock provider is available on http://localhost:4000. It implements LNURL-pay, returns a LUD-21 verify URL, publishes mock NIP-57 receipts over ws://localhost:4000/nostr, and serves mock NIP-05 responses for discovery verification.
Run the end-to-end checkout and discovery test:
make e2e- Configure WooCommerce payments under
WooCommerce -> Settings -> Payments -> LaWallet - Wordpress. - Configure Lightning Address/NIP-05 discovery under
Settings -> LaWallet. - The merchant Lightning Address must support LNURL-pay and return a LUD-21
verifyURL in invoice callback responses. - If the provider exposes
allowsNostr: trueandnostrPubkey, the plugin requests a zap invoice and listens for NIP-57 receipts to claim faster in the browser. - The LUD-21 verify response is the settlement authority. Relay receipts never mark an order paid by themselves.
- Pending Lightning orders are checked by WordPress cron. Paid orders are completed; expired unpaid orders are cancelled.
- For non-BTC store currencies, the gateway uses Yadio BTC exchange rates by default. A manual sats-per-currency-unit setting is available for controlled environments.
- Discovery redirects requests like
https://example.com/.well-known/lnurlp/aliceandhttps://example.com/.well-known/nostr.json?name=aliceto the configured LaWallet gateway.
Primary protocol references used:
