LifterLMS
The Orboni for LifterLMS plugin adds “Crypto” to LifterLMS’s own checkout, with no code. The student picks it, checks out, picks a coin on Orboni’s payment page and pays from any wallet or exchange. The money goes to the wallets you set in the dashboard, and once the payment is final on the chain LifterLMS records the transaction, completes the order and enrols the student by itself.
It is a payment gateway for LifterLMS 7.0 or later, beside the Manual gateway and any other you use, for courses and memberships sold with one-time access plans. It needs WordPress 6.5 and PHP 7.4 or later. Its source is open, under the GPL like WordPress itself: orboni/orboni-for-lifterlms on GitHub.
Set it up
- 1Download
orboni-for-lifterlms.zip. In WordPress, go to Plugins → Add New Plugin → Upload Plugin, choose the file, install it and activate it. LifterLMS must be active. - 2In the Orboni dashboard, set the wallets you want to be paid to under Wallets, then copy a secret key under Developers → API keys — a test key (
sk_test_…) first. - 3In WordPress, open LifterLMS → Settings → Checkout → Crypto (Orboni), tick “Enable Crypto (Orboni)” and paste the key.
- 4Under Developers → Webhooks, add an endpoint at the webhook address the gateway’s settings show (
https://your-site.com/wp-json/orboni-lifterlms/v1/webhook), with every event or at least thecheckout.session.*ones, and paste its signing secret (whsec_…) into the gateway’s settings. Press Save Changes. - 5Buy a course as a student, and on its payment page, signed in to the dashboard, press Simulate payment: the order turns Completed and the student is enrolled. Then swap in your live key and the live endpoint’s secret.
How orders move
The plugin reads the payment back from Orboni before it changes an order, and the order follows the payment as it is now — whether the webhook, the student’s return or a scheduled check comes first, twice or out of order.
| Payment | Orboni says | The order |
|---|---|---|
| Paid in full | complete, paid | A succeeded transaction: LifterLMS completes the order and enrols the student |
| On the chain, not final yet | processing | Pending, until it is final |
| Part paid | partially_paid | Pending, with how much came; the payment page asks the student for the rest |
| Held for your review | held | Pending, with the reason; accept it in the dashboard and the order is completed |
| Ran out with nothing paid | expired, unpaid | Pending: the student pays it again from the course’s checkout |
| Ran out part paid | expired, partially_paid | Pending, with what arrived: settle it with the student |
| Money that paid it left the chain | payment_reversed | The transaction Failed, so the order is Failed and the enrolment ends — until the dashboard shows it paid again, when both come back |
| More came after it was paid | extra_received | A note with the total; the order stays Completed |
A completed order is never taken back by anything else, and an order you cancelled is never completed by a late payment: a note says it arrived. Each change is written in the order’s notes: the coin, the network, the amount and the session. Without a webhook the order still moves: the plugin reads the payment when the student comes back from the payment page, ten minutes after the page opens, and again after it runs out. A student who comes back before the payment is final is told it is on its way, and their order page says so too.
Good to know
- Your site’s currency, as set in LifterLMS: US dollars, euros, pounds, yen or any other currency a checkout session takes (Currencies in the API reference). The payment page shows the order’s total in it, and Orboni turns it into dollars at the rate of the day (the European Central Bank’s, or the market’s for a currency the ECB does not publish); the student pays that in the coin they pick. With a currency that is not on the list Crypto is not offered at checkout, and the gateway’s settings say so.
- The least is worth $1.00. A smaller order is refused at checkout, with a sentence saying it is below the minimum for a crypto payment; in another currency than dollars Orboni checks the total’s worth.
- One-time access plans only: crypto is sent from the student’s wallet each time, so LifterLMS leaves Crypto out at the checkout of a plan with recurring payments. A coupon that takes the whole price makes a free order, which LifterLMS’s Manual gateway completes without a payment page.
- A student who checks out again gets the same payment page while it has more than five minutes left, never a second session for the same order and amount: LifterLMS takes their pending order up again. The payment page’s back link closes it and brings the student back to the course’s checkout, to pay again or another way.
- An order whose total grew after the student was sent to pay is left Pending when the payment completes, with both amounts in a note.
- Refunds: the money is in your wallet, so send it back from there and record the refund in the dashboard. Then refund the transaction in LifterLMS (the order → its transaction → Refund, as a manual refund), which marks the order Refunded and ends the enrolment.
- Several sites can share one Orboni project: each adds its own endpoint and acts only on its own orders.
- Tick “Debug Log” in the gateway’s settings to see every request in LifterLMS’s log (LifterLMS → Status → Logs, the file starting “orboni”). Errors are logged either way; keys and signing secrets never are.
What the plugin sends
Each order makes a checkout session through POST /v1/checkout/sessions, with an idempotency key of the site, the order, the amount and its currency, and the try, so a retry never makes a second one.
- amountinteger
- The order’s total after any coupon, in the currency’s smallest unit: cents, or whole yen.
- currencystring
- The site’s currency, in lower case: usd, eur, jpy…
- descriptionstring
- The course or membership and its plan, as “Watercolour basics — Lifetime access”, cut at 250 characters.
- detailsstring
- The order’s number and your site’s name: “Order #1042 at Northwind Academy”.
- client_reference_idstring
- The LifterLMS order’s id.
- metadataobject
- lifterlms_order_id, and lifterlms_site — a short hash of the site’s address, so two sites on one project never act on each other’s events.
- customer_emailstring
- The student’s email, where Orboni sends the receipt when your project sends receipts.
- localestring
- The student’s language in WordPress.
- success_url, cancel_urlstring
- Addresses of your site with the order and a key of its own: the first reads the payment and goes on to LifterLMS’s page after a purchase; the second closes the payment page and returns to the course’s checkout.
No address, phone number or other student data is sent. A paid order’s transaction keeps the session’s id as its transaction id, so a payment in the dashboard, an export or a webhook leads to its order by client_reference_id, and the order to its payment by the transaction id.
This page as Markdown, for a program or an AI assistant: /docs/lifterlms.md. Something missing or unclear? Write to us from the dashboard’s Help & Support.