# sabbirvuia/payoo-mfs architecture

> Architecture diagram of the GitHub repository sabbirvuia/payoo-mfs, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sabbirvuia/payoo-mfs
- Repository: https://github.com/sabbirvuia/payoo-mfs

## Overview

PAYOO is a browser-based mobile-finance interface. The main journey is login to the home dashboard, where users switch between account services; add-money, cash-out, and bonus scripts update the displayed balance and append transaction-history entries. The README also documents money transfer and bill payment, though their implementation is not shown here. The supplied excerpts show DOM-backed state rather than a separate backend or persistent store, so undocumented service wiring is omitted.

Main entry points: [`scripts/machin.js`](https://github.com/sabbirvuia/payoo-mfs/blob/main/scripts/machin.js) (Section Navigation), [`scripts/add-money.js`](https://github.com/sabbirvuia/payoo-mfs/blob/main/scripts/add-money.js) (Add Money), [`scripts/cash-out.js`](https://github.com/sabbirvuia/payoo-mfs/blob/main/scripts/cash-out.js) (Cash Out), [`home.html`](https://github.com/sabbirvuia/payoo-mfs/blob/main/home.html) (Transaction History)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access"]
  node_login["Login<br/>[login-page.js]"]
end

subgraph group_dashboard["Dashboard"]
  node_home["Home Dashboard<br/>[home.html]"]
  node_navigation["Section Navigation<br/>[machin.js]"]
  node_account["Balance Display<br/>[home.html]"]
end

subgraph group_services["Money Services"]
  node_add_money["Add Money<br/>[add-money.js]"]
  node_cash_out["Cash Out<br/>[cash-out.js]"]
  node_bonus["Bonus Rewards<br/>[get-bonus.js]"]
  node_transfer["Money Transfer<br/>[home.html]"]
  node_bill["Bill Payment<br/>[pay-bill.js]"]
end

subgraph group_activity["Account Activity"]
  node_history["Transaction History<br/>[home.html]"]
  node_trx_id["Transaction ID Generator<br/>[home.js]"]
end

node_customer(("Customer"))

node_customer -->|"enters credentials"| node_login
node_login -->|"redirects on success"| node_home
node_customer -->|"selects section"| node_navigation
node_navigation -->|"shows section"| node_add_money
node_navigation -->|"shows section"| node_cash_out
node_navigation -->|"shows section"| node_bonus
node_navigation -->|"shows section"| node_transfer
node_navigation -->|"shows section"| node_bill
node_navigation -->|"shows section"| node_history
node_add_money -->|"updates balance"| node_account
node_add_money -->|"appends entry"| node_history
node_cash_out -->|"updates balance"| node_account
node_cash_out -->|"appends entry"| node_history
node_bonus -->|"updates balance"| node_account
node_bonus -->|"appends entry"| node_history
node_add_money -->|"requests ID"| node_trx_id
node_cash_out -->|"requests ID"| node_trx_id

click node_login "https://github.com/sabbirvuia/payoo-mfs/blob/main/scripts/login-page.js"
click node_home "https://github.com/sabbirvuia/payoo-mfs/blob/main/home.html"
click node_navigation "https://github.com/sabbirvuia/payoo-mfs/blob/main/scripts/machin.js"
click node_account "https://github.com/sabbirvuia/payoo-mfs/blob/main/home.html"
click node_add_money "https://github.com/sabbirvuia/payoo-mfs/blob/main/scripts/add-money.js"
click node_cash_out "https://github.com/sabbirvuia/payoo-mfs/blob/main/scripts/cash-out.js"
click node_bonus "https://github.com/sabbirvuia/payoo-mfs/blob/main/scripts/get-bonus.js"
click node_transfer "https://github.com/sabbirvuia/payoo-mfs/blob/main/home.html"
click node_bill "https://github.com/sabbirvuia/payoo-mfs/blob/main/scripts/pay-bill.js"
click node_history "https://github.com/sabbirvuia/payoo-mfs/blob/main/home.html"
click node_trx_id "https://github.com/sabbirvuia/payoo-mfs/blob/main/scripts/home.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_login toneBlue
class node_home,node_navigation,node_account toneAmber
class node_add_money,node_cash_out,node_bonus,node_transfer,node_bill toneMint
class node_history,node_trx_id toneRose
class node_customer toneIndigo
```

## Components

### Access

- [Login](https://github.com/sabbirvuia/payoo-mfs/blob/main/scripts/login-page.js): `scripts/login-page.js`

### Dashboard

- [Home Dashboard](https://github.com/sabbirvuia/payoo-mfs/blob/main/home.html): `home.html`
- [Section Navigation](https://github.com/sabbirvuia/payoo-mfs/blob/main/scripts/machin.js): `scripts/machin.js`
- [Balance Display](https://github.com/sabbirvuia/payoo-mfs/blob/main/home.html): `home.html`

### Money Services

- [Add Money](https://github.com/sabbirvuia/payoo-mfs/blob/main/scripts/add-money.js): `scripts/add-money.js`
- [Cash Out](https://github.com/sabbirvuia/payoo-mfs/blob/main/scripts/cash-out.js): `scripts/cash-out.js`
- [Bonus Rewards](https://github.com/sabbirvuia/payoo-mfs/blob/main/scripts/get-bonus.js): `scripts/get-bonus.js`
- [Money Transfer](https://github.com/sabbirvuia/payoo-mfs/blob/main/home.html): `home.html`
- [Bill Payment](https://github.com/sabbirvuia/payoo-mfs/blob/main/scripts/pay-bill.js): `scripts/pay-bill.js`

### Account Activity

- [Transaction History](https://github.com/sabbirvuia/payoo-mfs/blob/main/home.html): `home.html`
- [Transaction ID Generator](https://github.com/sabbirvuia/payoo-mfs/blob/main/scripts/home.js): `scripts/home.js`

### Other components

- **Customer**

## Connections

- Customer → Login: enters credentials (evidence: `readme.md`)
- Login → Home Dashboard: redirects on success (evidence: `scripts/login-page.js`)
- Customer → Section Navigation: selects section (evidence: `readme.md`)
- Section Navigation → Add Money: shows section (evidence: `scripts/machin.js`)
- Section Navigation → Cash Out: shows section (evidence: `scripts/machin.js`)
- Section Navigation → Bonus Rewards: shows section (evidence: `scripts/machin.js`)
- Section Navigation → Money Transfer: shows section (evidence: `scripts/machin.js`)
- Section Navigation → Bill Payment: shows section (evidence: `scripts/machin.js`)
- Section Navigation → Transaction History: shows section (evidence: `scripts/machin.js`)
- Add Money → Balance Display: updates balance (evidence: `scripts/add-money.js`)
- Add Money → Transaction History: appends entry (evidence: `scripts/add-money.js`)
- Cash Out → Balance Display: updates balance (evidence: `scripts/cash-out.js`)
- Cash Out → Transaction History: appends entry (evidence: `scripts/cash-out.js`)
- Bonus Rewards → Balance Display: updates balance (evidence: `scripts/get-bonus.js`)
- Bonus Rewards → Transaction History: appends entry (evidence: `scripts/get-bonus.js`)
- Add Money → Transaction ID Generator: requests ID (evidence: `scripts/add-money.js`)
- Cash Out → Transaction ID Generator: requests ID (evidence: `scripts/cash-out.js`)
