Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

U.CASH Pay for Blesta

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.

How it works

  1. process() creates a U.CASH Pay checkout via the SDK and redirects the buyer.
  2. After paying, the buyer lands on success() (the Blesta payment success page).
  3. U.CASH Pay sends an HMAC-signed settlement webhook to webhook(). The gateway verifies the signature, reconciles amount + currency, records a Transaction, and applies it to the invoice (marking it paid).

Requirements

  • Blesta 5.x / 6.x.
  • PHP 7.2+ with the curl extension.
  • HTTPS on the public webhook URL.
  • A free U.CASH Pay account.

Install

  1. Copy the ucashpay/ directory into your Blesta install at components/gateways/ucashpay/.
  2. In the Blesta admin go to Settings -> Payment Gateways -> Available Gateways, click Install on U.CASH Pay.

Configure

  1. In U.CASH Pay -> Account -> Stores, create a store for this Blesta install and copy its Cloud token and Webhook secret.

  2. 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).

  3. Set the store's Webhook URL in U.CASH Pay -> Account -> Stores -> [your store] -> Edit to:

    https://YOUR-BLESTA/gateway/ucashpay/webhook
    
  4. Save, then send a test invoice.

Files

  • components/gateways/ucashpay/ucashpay.php the gateway module class.
  • components/gateways/ucashpay/config.json gateway metadata (incl. callback_url).
  • components/gateways/ucashpay/language/en_us/ucashpay.php English language strings.
  • components/gateways/ucashpay/PayUCashIntegration.php the shared SDK.

Multi-store

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.

Support

https://u.cash

(c) 2015-2026 U.CASH. All rights reserved.

About

U.CASH Pay payment plugin for blesta. Crypto + cards, non-custodial.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages