Accept crypto and card payments in your Blesta billing system through U.CASH Pay. Customers pay their invoices at the hosted U.CASH Pay checkout and the invoice is marked Paid automatically.
process()creates a U.CASH Pay checkout via the SDK and redirects the buyer.- After paying, the buyer lands on
success()(the Blesta payment success page). - U.CASH Pay sends an HMAC-signed settlement webhook to
webhook(). The gateway verifies the signature, reconciles amount + currency, records aTransaction, and applies it to the invoice (marking it paid).
- Blesta 5.x / 6.x.
- PHP 7.2+ with the
curlextension. - HTTPS on the public webhook URL.
- A free U.CASH Pay account.
- Copy the
ucashpay/directory into your Blesta install atcomponents/gateways/ucashpay/. - In the Blesta admin go to Settings -> Payment Gateways -> Available Gateways, click Install on U.CASH Pay.
-
In U.CASH Pay -> Account -> Stores, create a store for this Blesta install and copy its Cloud token and Webhook secret.
-
In Blesta -> Settings -> Payment Gateways -> U.CASH Pay, paste them into Cloud token and Webhook secret, and set the U.CASH Pay URL (default
https://pay.u.cash). -
Set the store's Webhook URL in U.CASH Pay -> Account -> Stores -> [your store] -> Edit to:
https://YOUR-BLESTA/gateway/ucashpay/webhook -
Save, then send a test invoice.
components/gateways/ucashpay/ucashpay.phpthe gateway module class.components/gateways/ucashpay/config.jsongateway metadata (incl.callback_url).components/gateways/ucashpay/language/en_us/ucashpay.phpEnglish language strings.components/gateways/ucashpay/PayUCashIntegration.phpthe shared SDK.
One U.CASH Pay store per Blesta install. Running several integrations? Create one store each in U.CASH Pay -> Account -> Stores; each gets its own Cloud token, Webhook secret, and Webhook URL.
(c) 2015-2026 U.CASH. All rights reserved.