{{-- Whether BCP and BMart are actually joined up. Four things have to be true before a shop can be told what it is paying for, and each of them is a thing somebody does once and then forgets. This screen checks all four against the real configuration and the real token table, so "BMart is connected" stops being something an administrator has to take on trust. It shows whether each value is set. It never shows the value: a token and a webhook secret are credentials, and a status page is not a place to print them. --}}
@php $ready = collect($status)->every(fn ($check) => $check['ready']); @endphp

{{ $ready ? 'BMart billing is wired up' : 'BMart billing is not fully wired up' }}

{{ $ready ? 'Shops can read their entitlements, and BCP tells BMart when one changes.' : 'The unfinished items below are listed with what to do about each.' }}

Checks

Read live from configuration and the token table each time this page is opened.

    @foreach ($status as $key => $check)
  • {{ str_replace('_', ' ', $key) }} {{ $check['detail'] }} {{ $check['ready'] ? 'Ready' : 'Not set' }}
  • @endforeach

How the two systems talk

BMart asks BCP
GET /api/v1/bmart/entitlements/{shopId} One token, every shop, and nothing else — it is answered only for plans under the BMart product, at up to {{ number_format((int) config('bmart.rate_limit_per_minute')) }} requests a minute.
BCP tells BMart
A signed POST saying which shop changed — never what it changed to, so there is one description of what a shop may do and never a second that could disagree with it. Retried on a timeout or a 5xx; each delivery carries one event id, so a repeat is applied once.

Where the boundary runs

BCP owns

  • Plans and pricing
  • Subscriptions and trials
  • Invoices and payments
  • Entitlements

BMart owns

  • Shops and merchants
  • Products and orders
  • Its own Super Admin
  • Everything operational

{{ $plans }} {{ Str::plural('plan', $plans) }} · {{ $linked }} {{ Str::plural('shop', $linked) }} linked · {{ count($featureKeys) }} feature keys · {{ count($limitKeys) }} limit keys understood by BMart.