Integration Module 2.0 for Medusa is outRead the announcement
O

Orboni

Crypto payments for Medusa v2: USDT, USDC, Bitcoin and more, paid straight to your own wallets through Orboni's payment page.

npm install medusa-plugin-orboni
Category
Built by
Version
1.0.0
Last updated
5 days ago
Monthly downloads
Loading downloads

Orboni for Medusa

Crypto payments for Medusa v2: the buyer pays on Orboni's payment page, picking USDT, USDC, Bitcoin, Ethereum or another coin, from any wallet or exchange. The money goes straight to the wallets you set in the Orboni dashboard, and Medusa places and captures the order once the payment is final — through the buyer's return or the webhook, whichever comes first.

It is a payment module provider for Medusa 2.5 and later, tested end to end on Medusa 2.23. Full guide: https://orboni.com/docs/medusa

Install

In , add it to the Payment Module's providers:

  1. In the Orboni dashboard, set your wallets under Wallets, and copy a secret key under Developers → API keys — a test key () first — into .
  2. Under Developers → Webhooks, add an endpoint at with the events, and put its signing secret () into .
  3. Restart Medusa. In the admin, open Settings → Regions, edit each region that should take crypto and add Orboni () to its payment providers.

The provider's id is ( for another ).

The storefront

Orboni is a redirect payment, like PayPal: the storefront sends the buyer to the payment page and completes the cart when they come back.

, and in are optional: without them the provider's and options are used, and a signed-in customer's email is sent by itself.

How orders move

PaymentOrboni saysIn Medusa
Paid in fullThe order placed, its payment captured — from the cart's completion or the webhook, whichever comes first
On the chain, not final yet; or held for your review, Completing the cart places the order awaiting its payment; the webhook captures it once paid
Part paidNo order; the payment page asks the buyer for the rest
Not paidNo order; the cart stays, and the buyer can pay or choose another way
Ran out unpaidNo order

The provider reads the payment back from Orboni before Medusa acts on it, so a webhook sent twice, late or out of order changes nothing. A changed cart total or another way to pay closes the old payment page and opens a new one for the new total.

Options

Option
required or ; the key decides test or live
the endpoint's , or a list of them while you roll one
, where the payment page sends the buyer, unless the storefront passes its own
the coins offered, as ; every coin with a wallet if left out
seconds the page stays open (Orboni's default if left out)
, or : whether the page asks for an email
the line the payment page shows; Orboni's default if left out

Good to know

  • The currency is the cart's: US dollars, euros, pounds, yen and any other currency a checkout session takes. In one Orboni does not take, starting the payment fails with a reason, and the buyer chooses another way.
  • Refunds: the money is in your wallet, so send it back from there. A refund in Medusa's admin is recorded in Orboni; nothing moves by itself.
  • Several Medusa stores can share one Orboni project: each adds its own endpoint, and a store passes over a session it did not make.
  • Nothing about the buyer is sent but the email; the address, phone and cart lines stay in Medusa.

Licence

MIT. Source: https://github.com/orboni/medusa-plugin-orboni