Phoca Cart
The Orboni plugin adds crypto to Phoca Cart’s checkout, with no code. The buyer chooses Crypto as the payment method, confirms the order and pays on Orboni’s payment page, picking a coin and paying from any wallet or exchange. The money goes to the wallets you set in the dashboard, and the order is marked paid by itself once the payment is final.
It is a Phoca Cart 6 payment plugin for Joomla 5 and 6, tested end to end on Joomla 5.4 with Phoca Cart 6.1.9. It is free, and its source is open, under the GNU GPL (version 2 or later): orboni/phocacart-payment on GitHub. Joomla’s own updater offers its new versions.
Set it up
- 1Download plg_pcp_orboni.zip from the newest release. In Joomla’s administrator, open System → Install → Extensions and upload it. The plugin switches itself on.
- 2In Components → Phoca Cart → Payment, press New, give the method a title such as “Crypto (USDT, USDC, BTC, ETH and more)”, choose Orboni for Phoca Cart as its Payment Method and keep it published. Its settings appear under it.
- 3In 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 — into Secret key, and save. - 4Under Developers → Webhooks, add an endpoint at the Webhook address the method’s settings show, with every event, or at least the
checkout.session.*ones, and paste its signing secret (whsec_…) into Webhook signing secret. Save. - 5Add the Cron address shown under it in System → Scheduled Tasks as a GET Request task every 15 minutes, or call it from your server’s cron: it reads back payments whose webhook did not arrive, and cancels orders whose page ran out unpaid.
- 6Place an order with Crypto, and on its payment page, signed in to the dashboard, press Simulate payment: the order turns Completed. Then swap in your live key (
sk_live_…) and the live endpoint’s secret. The key decides test or live at Orboni.
How orders move
Confirming the order makes it in Phoca Cart as Pending and sends the buyer to Orboni’s payment page for its total. The cart is kept until the buyer comes back with a payment on its way, so a buyer who leaves the payment page can still choose another way. The plugin reads the payment back from Orboni before it changes anything, and the order follows the payment as it is now — whether the webhook, the buyer’s return or the cron comes first, twice or out of order. What happened is written in the order’s history; the move to Completed sends the emails that status is set to send.
| Payment | Orboni says | In Phoca Cart |
|---|---|---|
| Paid in full | complete, paid | Completed (downloads open, as with Phoca Cart’s own PayPal plugin), a history line naming the coin, the network and the session; the emails the status sends |
| On the chain, not final yet | processing | Still Pending, with a history line; Completed once final |
| Part paid | partially_paid | Still Pending, saying how much came; the payment page asks the buyer for the rest |
| Held for your review | held | Still Pending, giving the reason; accept it in the dashboard and the order is Completed |
| Left by the page’s back link, nothing sent | open, unpaid | Canceled, saying why, and the buyer is back at checkout with the cart, to pay another way |
| Ran out with nothing paid | expired, unpaid | Canceled, saying why |
| Ran out part paid | expired, partially_paid | Still Pending, saying what arrived of what was due; settle the rest with the buyer |
| Paid for an order changed after its page opened | complete, paid | Still Pending, with what was paid and what the order totals; check it before shipping |
| Money that paid it left the chain | payment_reversed | Back to Pending, told not to ship until the dashboard shows it paid again |
| More came after it was paid | extra_received | A history line saying what came in all; send the extra back from your wallet if the buyer asks |
The statuses for waiting, paid and ran out can be changed in the method’s settings; a payment that arrives after its page was canceled still marks the order Completed. Back from the payment page, the buyer lands on Phoca Cart’s info page, which says where the payment stands while it is not final, with the way back to the payment page while it is open and a link to check again. Without a webhook a payment is still recorded once the buyer comes back, and the cron address reads back open pages whose webhook did not arrive; set up the webhook all the same.
Good to know
- The currency: the order’s own — 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 the buyer pays its worth in the coin they pick. The method’s amount, zone, country, shipping and currency rules are set as for any Phoca Cart payment method.
- The least is worth $1.00. Below it the buyer is told the order is below the minimum and is back at checkout, with the cart, to choose another way to pay.
- A buyer who opens the payment step again gets the same payment page while it is open, not a second one.
- Refunds: the money is in your wallet, so send it back from there, record the refund in the dashboard, and set the order Refunded in Phoca Cart.
- Several Joomla sites can share one Orboni project: each adds its own endpoint and acts only on its own orders.
- The secret key and the signing secret are never shown again in the method’s settings: leave a field empty to keep what is saved, sealed with a key made from your site’s own secret. Debug log writes each request and webhook to administrator/logs/plg_pcp_orboni.php; errors are written either way, keys and secrets never.
What the plugin sends
Each order makes a checkout session through POST /v1/checkout/sessions, with an idempotency key of the site, the order and its amount, and the try, so a retry never makes a second one. Nothing is sent until the plugin has your key and a buyer pays with it.
- amountinteger
- The order’s total with shipping, taxes and any payment fee, in the currency’s smallest unit: cents, or whole yen.
- currencystring
- The order’s currency, in lower case: usd, eur, jpy…
- descriptionstring
- The order’s products, as “Mug × 2, Poster”, cut at 250 characters.
- detailsstring
- The order number and your site’s name: “Order A1B2C3 at Example Store”.
- client_reference_idstring
- Phoca Cart’s id of the order: “42”.
- metadataobject
- phocacart_order_id, phocacart_order_number and phocacart_site — a key made from your Joomla site’s own secret, so two sites on one project never act on each other’s events.
- customer_emailstring
- The buyer’s email, where Orboni sends the receipt when your project sends receipts.
- localestring
- The buyer’s language in your store, as en-GB.
- success_url, cancel_urlstring
- The plugin’s two return addresses, with the order and a key of its own: one reads the payment back and shows Phoca Cart’s info page, the other cancels an order with nothing sent and brings the buyer back to checkout with the cart.
No address, phone number or other buyer data is sent. A payment in the dashboard, an export or a webhook leads to its order by client_reference_id and the order number in its metadata, and an order to its payment by the session id in its history.
This page as Markdown, for a program or an AI assistant: /docs/phocacart.md. Something missing or unclear? Write to us from the dashboard’s Help & Support.