# Restore Now Connect 1.1.0

Release 1.1.0 adds verified email sign-in and Stripe card/eligible Apple Pay payment inside the approved website panel, using the same salon, availability, staff capacity, booking record and full online payment rules as Restore Now. Existing 1.0.0 and 1.0.1 installations stay pinned and unchanged until their owner deliberately upgrades.

```html
<div id="restore-booking">
  <a data-restorenow-fallback href="https://restorenowapp.com/book/YOUR_SPA_ID">Book securely</a>
</div>
<script src="https://restorenowapp.com/connect/v1.1.0/restore-now.js"></script>
<script>
  const panel = RestoreNow.mount('#restore-booking', {
    installationId: 'YOUR_PUBLIC_INSTALLATION_UUID',
    locale: 'en',
    loading: 'eager',
    theme: {
      preset: 'light', accent: '#204832', background: '#F7F5EF',
      surface: '#FFFFFF', text: '#173B2B', muted: '#68736A',
      border: '#78867A', font: 'system', radius: 'soft', density: 'comfortable'
    },
    onStateChange: ({status, code}) => { /* presentation only; never fulfil an order here */ }
  });
  // These update presentation without resetting selection or active card fields.
  // panel.updateTheme({preset: 'restore'});
  // Retry an active payment checks/resumes the original request; it does not replace the iframe.
  // panel.retry();
  // On component unmount: panel.destroy();
</script>
```

Use your site's CSP nonce on authored scripts. Optional `nonce` is forwarded to the loader-created stylesheet. A partner must permit the Restore Now script, style, and frame origin. Card fields, verified guest sessions, form answers and payment secrets stay in the Restore Now child, in memory only. Parent callbacks contain only `status` and optional generic `code`: `loading`, `ready`, `error`, `checkout_started`, `payment_pending`, `confirmed`. They are observations, never authority to confirm bookings or money. Do not send customer information through SDK options or messages.

Theme keys are optional. Presets are `restore`, `dark`, `light`; colors are six-digit hex only. `font` is `system`, `geist`, `serif`, `mono`; `radius` is `square`, `soft`, `round`; `density` is `compact`, `comfortable`. Primary and muted text and accent links require contrast ≥4.5 against both backgrounds; borders require ≥3. The SDK chooses accessible button foregrounds. Unsupported keys, CSS expressions, selectors, arbitrary font URLs and unreadable combinations are rejected. Stripe fields use the supported Appearance API and changeAppearance method; later theme changes do not remount entered card fields. Only the bundled, licensed Geist font can load from Restore Now; arbitrary remote fonts remain disallowed. Wallet branding remains provider controlled.

Private checkout requires an active approved HTTPS installation and matching parent handshake. It supports ordinary full online visits; groups, events, prepaid credit and other optional modules remain explicit secure links. The localhost development preview remains public selection only. There is no approval bypass or live test mode switch.

Apple Pay appears only when Stripe reports that the actual device/browser/domain/account is eligible. Register both the partner domain and Restore Now iframe domain for the Stripe account that owns the charge, in the appropriate provider environment. Cross-origin Safari support depends on browser version and `allow="payment *"`; the new loader supplies the iframe permission. Cards remain the fallback. Provider configuration and real Safari/Apple Pay acceptance are separate release gates, not proved by automated fixtures.

Ordinary card and Apple Pay confirmation use `redirect: 'if_required'` to remain in the panel. A bank or browser can require an authentication navigation. The server freezes a Restore-owned return URL, containing only public installation/origin/channel and an opaque request UUID. The returned panel verifies that frozen, already-dispatched context and asks for email verification again before showing protected status or resuming the original payment. If the host remounted and its channel changed, the explicit recovery link opens a separate Restore Now tab, unframed and return-only. Pausing a website cannot strand an already-dispatched payment; return proof cannot create new bookings.

Automated tests use intercepted Auth/Stripe/API doubles only. They do not prove real email delivery, a charge, wallet eligibility, DNS registration or installation activation. The official 1.1.0 source archive and versioned manifest are separate from the retained 1.0.0 and 1.0.1 downloads.

Required release order:

1. Apply the forward migration `20261025193643_booking_elements_checkout_context.sql`.
2. Configure the new Elements path with its paired publishable key and card-only payment-method configuration, and register the required wallet domains in the correct provider environment.
3. Deploy `create-checkout` and `booking-connect` with the new contracts.
4. Publish the versioned 1.1 renderer and assets.
5. Complete verified partner approval and public activation.

Never publish the new frontend before its backend: an older backend can ignore `checkout_ui`. Copying a snippet or source archive does not deploy the backend or activate a partner.

Provider references: [Checkout Elements](https://docs.stripe.com/payments/quickstart), [confirmation](https://docs.stripe.com/js/custom_checkout/confirm), [session data](https://docs.stripe.com/js/custom_checkout/session_object), [wallet domains and iframes](https://docs.stripe.com/payments/payment-methods/pmd-registration?dashboard-or-api=api), [CSP](https://docs.stripe.com/security/guide#content-security-policy).
