# ArPay 1.2.0

## Card and payment rules

- Staff alone assign cards and edit holder data, spending limits and ledger balances. Customers can request funding and card orders, view limits and freeze or unfreeze a customer-controlled card. A freeze imposed by staff can only be lifted by staff.
- Enter a stable external card assignment reference in the Admin Panel. A repeat of the original assignment returns the original card ID and opening allocation. A changed submission with the same reference returns a conflict. Earlier API clients can omit that field and use the built-in identity fallback.
- Use the same external payment reference in Funding completion and Load USD. References are trimmed, Unicode-normalized and case-insensitive, so both actions reduce to one credit. A reference claimed for another card, amount or funding request conflicts. Use a payment-source prefix if two external systems use overlapping numbers.
- Operator funding notes are private. A customer can see their own request note, the status and the financial posting through the Statement.
- An expiry month remains valid through its last UTC day. Expired cards are displayed as Closed and reject fresh activity; their recorded funds and historical records remain visible. Explicit closure requires a zero balance and resolution of outstanding requests and transactions.
- Refunds and reversals cannot be posted, including through the sandbox action. Previously recorded returns stay in the ledger. Pending manual entries can be corrected before completion. The default transaction fee applies when an operator leaves the fee blank.
- The upgrade maintains existing rows. Historical completed funding requests may have no external payment reference to match to a direct import. The Payments view covers known references, including migrated direct-load references. For a completed request with a missing reference, use **Link payment reference** to register the original payment without crediting the card again. Previously duplicated or ambiguous entries require an operational reconciliation; the migration does not alter customer balances to guess which entries were duplicates.

## Audit follow-up

| Finding | 1.2.0 change |
| --- | --- |
| ARP-01, ARP-05, ARP-06 | Stable assignment IDs, a shared payment reference registry and a separate private operator note. |
| ARP-02, ARP-03, ARP-04 | Admin-only limits and operator freezes, no new refund/reversal posting, pending-work closure guard and UTC expiry enforcement. |
| ARP-07, ARP-08, ARP-09 | Same-origin proxies use a designated Caddy address, production refuses sandbox databases, and super admins can suspend operators, revoke sessions or reset access. |
| ARP-10, ARP-11, ARP-12 | Debug signer preserved from v1.1.0, release signing configuration and verified-link configuration supplied. Android 1.0 had a different signer. Deployment needs the owner's HTTPS domain and distribution key. |
| ARP-13, ARP-14 | Retry overlay, renderer recovery, compatibility check and a supported Android WebView version. |
| ARP-15, ARP-16 | Type/network and active-state order checks, delivery for physical orders, linked-card and order IDs, and open order counts include fulfilment. |
| ARP-17, ARP-18, ARP-19 | Legacy review flag, type inference from linked orders, compatible creation and editing, unused-card owner correction and a Closed cards view. |
| ARP-20, ARP-21 | Card identity captured on new transaction and ledger writes. Card holder wrapping and fund-history labels distinguish cards. Network identifiers retain the original ArPay badge treatments. |
| ARP-22–ARP-25 | Posted customer statement, separate adjustment amounts, guarded funding transitions and a default fee with explicit override. |
| ARP-26–ARP-31 | Pre-posting transaction repairs, distinct occurrence/posting dates, consistent returned-spending accounting, deterministic new ledger row order, payment-linked audit data and clearer signed amounts. Historical unknown times and snapshots are left blank. |
| ARP-32–ARP-37 | Per-customer 2FA policy, recovery-code replacement, authenticator rotation, separate portal sessions, operator recovery, TOTP setup retry and an encrypted SMTP retry queue. |
| ARP-38–ARP-44 | Expanded filtering and pagination, linked customer histories, support conversations, editable confirmation steps, reconciliation view, explicit release requests, branded offline screen, individual read actions and preserved card/filter selection. |
| ARP-45–ARP-50 | Recorded schema version and migration lock, stricter new schemas, indexed financial writes and bounded MySQL idle reuse, readiness probe, typed customer API and versioned dependencies/CI. |

Build verification uses the ZIP's project and a sample HTTPS origin. Device-level behavior, deployed App Link association, live SMTP and public HTTPS are environment-dependent. The APK in the archive is the debug build.
