Skip to content

Add Funds & Prepaid Wallet Module Documentation

5 min readUpdated: Nov 29, 2026
View as Markdown
Role Primary Use Case Key Capabilities
Customer Account Administrator Corporate telecom self-service management. View live wallet balance, configure credit limits, purchase plans/DIDs, and monitor active service status.
Finance / Accounts Payable Wallet replenishment & invoice payments. Add funds via Stripe card, PayPal checkout, promotional coupon codes, or bank transfer, and audit immutable transaction ledgers.
End Subscriber Personal usage tracking. Review outbound call history, check message logs, and inspect plan quota consumption.

  1. Module Overview (Technical)
  2. Module Overview (Commercial & Business Value)
  3. Prepaid Digital Wallet & Credit Limits
  4. Top-Up Methods: Stripe, PayPal, Promo Coupons & Bank Wire
  5. Financial Ledger & Transaction Audit Trail
  6. Glossary

The Add Funds & Prepaid Wallet module manages balance top-ups, credit reserves, promotional coupon redemptions, and double-entry transaction ledgers in the Ring2All BSS Customer Portal. It protects carrier margins by maintaining strict prepaid debit controls in PostgreSQL 17 so the Online Charging System (OCS) enforces real-time balance limits across all active calls.

sequenceDiagram
    autonumber
    actor Client as Customer Portal
    participant API as Ring2All BSS API
    participant Gateway as Stripe / PayPal Gateway
    participant DB as PostgreSQL 17 Wallet Ledger
    participant OCS as Online Charging System (OCS)

    alt Credit / Debit Card (Stripe)
        Client->>API: POST /api/client/wallet/topup-intent { amount, currency }
        API->>Gateway: Create & Confirm PaymentIntent
    else PayPal Checkout
        Client->>API: POST /api/client/wallet/paypal/create-order { amount, currency }
        API->>Gateway: Create PayPal Order
        Client->>API: POST /api/client/wallet/paypal/capture-order { orderId }
        API->>Gateway: Capture PayPal Settlement
    end

    Gateway-->>API: 200 OK (Settlement Confirmed)
    API->>DB: Atomic Wallet Credit + Immutable Ledger Entry
    API->>OCS: Refresh Customer Available Balance
    API-->>Client: Wallet Credited Instantly
  • Atomic Balance Mutations: Utilizes PostgreSQL ACID transactions so wallet balance increments and ledger history rows commit atomically without rounding drift.
  • Immediate OCS Balance Synchronization: Real-time charging checks immediately reflect the updated wallet balance, lifting low-balance outbound call blocks as soon as funds settle.
  • PCI-DSS Compliant Tokenization: Sensitive card details are tokenized client-side via Stripe; PayPal checkout uses OAuth 2.0 server-side order creation and capture.

2. Module Overview (Commercial & Business Value)

Section titled “2. Module Overview (Commercial & Business Value)”
  • Zero Credit Risk for Carriers: Enforcing prepaid wallet top-ups eliminates uncollectible invoices and toll fraud exposure.
  • Flexible Multi-Gateway Funding: Customers can fund wallets instantly via saved Stripe cards ($25, $50, $100, $250, or custom amounts), PayPal checkout, promotional credit coupons, or B2B bank wire transfers.
  • Continuous Service Continuity: Auto-refill rules and low-balance warning alerts protect clients against dropped calls and unexpected outbound service interruptions.
  • Immutable Accounting Transparency: Comprehensive transaction ledger details every top-up, monthly recurring plan deduction, coupon credit, and per-minute call charge.

The Wallet overview screen presents an immediate executive summary of the customer’s financial standing and operational status.

Prepaid Wallet Overview

  • Current Balance Card:
    • Displays live usable funding available for telephony usage, plan renewals, and DID rentals (e.g., $145.50 USD).
    • Shows account operational status badge: Active or Suspended.
  • Credit Limit Card:
    • Indicates authorized overdraft or emergency cushion allowed before calls are barred (e.g., $50.00 USD).
    • Displays auto-refill configuration status (Disabled or Enabled).
  • Account Type Card:
    • Identifies the billing archetype (Prepaid or Postpaid).
    • Displays the immutable customer account number (e.g., #ACC-10005).

4. Top-Up Methods: Stripe, PayPal, Promo Coupons & Bank Wire

Section titled “4. Top-Up Methods: Stripe, PayPal, Promo Coupons & Bank Wire”

Clicking + Add (or Redeem Coupon) on the Wallet screen opens the Add Funds to Wallet modal.

Add Funds to Wallet Modal

4.1 Instant Card & PayPal Recharge Controls

Section titled “4.1 Instant Card & PayPal Recharge Controls”
Control / Endpoint Description
Recharge Presets Quick-select buttons for $25, $50, $100, and $250 plus custom USD/currency amount input ($5 – $5,000).
Stripe Credit / Debit Card Charges the customer’s default vaulted Stripe PaymentMethod via POST /api/client/wallet/topup-intent.
PayPal Digital Wallet When enabled in Settings → Payment Gateways, customers fund wallets via PayPal order creation (POST /api/client/wallet/paypal/create-order) and server-side capture (POST /api/client/wallet/paypal/capture-order).
Promo Coupon Redemption Validates (validateCoupon) and applies single-use promotional credit codes directly into the customer’s prepaid balance.
Bank Wire / Direct Transfer When enabled by the carrier administrator, displays institutional bank routing, account/IBAN, and mandatory ACC-xxxxx remittance instructions for manual finance reconciliation.

5. Financial Ledger & Transaction Audit Trail

Section titled “5. Financial Ledger & Transaction Audit Trail”

All balance modifications are permanently recorded in the immutable financial ledger and displayed in the Transactions table on the Wallet view.

Transaction Type Description Impact on Balance Example Ledger Description
topup Customer payment via Stripe card, PayPal checkout, or verified bank transfer. Positive (+) Stripe Credit Card Auto-Refill / PayPal Order Capture
charge Monthly recurring plan fee or hardware rental deduction. Negative (-) Monthly Recurring Subscription: Cloud Mini-PBX Business Pro
usage Aggregated call traffic, AI usage, or out-of-bundle minute debits. Negative (-) PSTN Outbound Minutes Settlement
refund Administrative credit adjustment or promotional coupon deposit. Positive (+) Promotional Credit Coupon Redemption

  • Digital Wallet: An in-app electronic ledger storing client monetary credit used to settle recurring and pay-as-you-go telephony services.
  • Prepaid Billing: A billing model where services are consumed exclusively against pre-deposited funds, preventing debt accumulation.
  • Credit Limit: An authorized credit cushion below $0.00 allowing uninterrupted voice calls up to the configured limit.
  • PayPal Order Capture: Server-verified PayPal REST checkout flow ensuring funds are captured before crediting the prepaid wallet.
  • Double-Entry Ledger: An accounting method where every financial adjustment records both the delta amount and resulting balance for full auditability.