Panly API docsstaging

Screens / Premium (owner paywall)

Premium (owner paywall)

Where a 402 or a lapsed plan sends the owner (PAN-114/116): start Premium Monthly (the only plan), with a countdown while the plan is in grace. Payment runs through the stub provider's test payment sheet; after confirm the plan and session reload (PAN-123). Shows an expired checkout or payments not available.

App routes
/premium
Access
owner, signed in (outside the shell)
Screen code
lib/screens/premium/premium_page.dart
lib/screens/premium/premium_controller.dart
lib/screens/premium/widgets/test_payment_sheet.dart
lib/screens/premium/widgets/premium_countdown_view.dart
lib/core/navigation/payment_gate.dart
Source
elmermj/panly-app @ pre-staging-test (72aaffd)

API calls (4)

CallWhy the screen makes itWhere in the app code
GET /v1/billing
Billing status of the current business
Plan status and lapse phase lib/screens/premium/premium_controller.dart:100
lib/domain/usecases/billing/billing_usecase.dart:14
lib/data/repositories/billing_repository.dart:29
GET /v1/config
Public app configuration (payment provider)
Whether payments are available (public, sent without a token) lib/screens/premium/premium_controller.dart:115
lib/domain/usecases/billing/billing_usecase.dart:12
lib/data/repositories/billing_repository.dart:19
POST /v1/billing/checkout
Start a (stub) checkout
Start a Premium Monthly checkout lib/screens/premium/premium_controller.dart:130
lib/domain/usecases/billing/billing_usecase.dart:16
lib/data/repositories/billing_repository.dart:33
POST /v1/billing/checkout/confirm
Confirm a (stub) checkout, which marks the plan paid
Confirm the test payment, then reload the plan lib/screens/premium/widgets/test_payment_sheet.dart:166
lib/screens/premium/premium_controller.dart:180
lib/domain/usecases/billing/billing_usecase.dart:18
lib/data/repositories/billing_repository.dart:40

Each call links to its operation in the API reference. Code locations are file:line in panly-app at 72aaffd, listed from the screen down to the line that sends the request.