U.CASH Pay for Chargebee. Add a "Pay with U.CASH" option to invoices; a verified webhook marks the invoice paid. Non-custodial.
Status: scaffold. The OAuth + platform API call in
markInvoicePaid()is stubbed (documented below). Wire it, validate in the platform sandbox, then list on the platform marketplace.
GET /pay?invoiceId=..&amount=..¤cy=..redirects to a hosted U.CASH Pay checkout for the invoice.POST /ucashpay/webhookverifies theX-Webhook-Signature(HMAC-SHA256, 300s window) and marks the invoice paid.
npm install
UCASH_CLOUD_TOKEN=st_your_store_cloud_token \
UCASH_WEBHOOK_SECRET=your_store_webhook_secret \
CHARGEBEE_SITE=.. CHARGEBEE_API_KEY=.. \
PORT=3000 npm start- Sign up at pay.u.cash, verify email.
- Set receive addresses under Settings -> Addresses.
- Create a store at Account -> Stores -> + Add Store; copy the Store Cloud Token + Store Webhook Secret.
- Set the webhook URL to
https://your-host/ucashpay/webhook, then Test Webhook.
Configure U.CASH Pay as a custom payment gateway in your Chargebee site, or record an external payment. In markInvoicePaid(): POST https://{site}.chargebee.com/api/v2/invoices/{invoiceId}/record_payment with body { amount, payment_method: 'other' }, Authorization: Basic apikey:x. Listing on the Chargebee marketplace is a separate review.
MIT.