Skip to content
ContractSpec
Start here

Package manual · examples

·Examples and implementation patterns

example.integration-paypal

Credential-free PayPal commerce integration example with deterministic policy handoffs.

examplesexamplev6.0.5stableservernode
@lssm-tech/example.integration-paypal
bun add @lssm-tech/example.integration-paypal
Package source ↗Manifest ↗

Manifest declarations describe the current workspace; they do not verify registry publication or runtime execution.

Package guide

Credential-free PayPal commerce example built on the canonical paypalIntegrationSpec.

What This Demonstrates

  • Canonical integration reuse from @lssm-tech/lib.contracts-integrations.
  • Deterministic checkout, buyer approval, capture, refund, subscription, webhook, and marketplace lifecycle fixtures.
  • Explicit human and policy handoffs for approval, refunds, seller onboarding, and payouts.
  • A redacted sandbox connection plus stable tenant timestamps.
  • No provider SDK execution, outbound network calls, or usable credentials.

Public Entry Points

  • . — complete example barrel.
  • ./integration — canonical PayPal integration re-export.
  • ./workflow — deterministic commerce lifecycle.
  • ./blueprint and ./tenant — app and tenant configuration.
  • ./connection.sample — redacted connection metadata.
  • ./integration-paypal.feature — feature composition.
  • ./docs and its alias ./docs/integration-paypal.docblock — documentation registration.
  • ./example — example registry descriptor.

Running Locally

From examples/integration-paypal:

  • bun run test
  • bun run typecheck
  • bun run lint:check
  • bun run build

Host Boundary

This package describes contracts only. A host must supply authenticated PayPal adapters, webhook verification, approval gateways, tenant isolation, and recorded policy evidence. Never put client secrets or access tokens in connection config.

Relationships

THIS PACKAGEexample.integration-paypal10 import paths

Arrows point from a package to its direct dependency. Counts are derived from captured workspace manifests.

2 declarations

Declared capabilities

This manifest does not declare a capability catalogue. Use the guide, import map and source to assess the package.

Scripts

  • publish:pkgbun publish --tolerate-republish --ignore-scripts --verbose
  • publish:pkg:canarybun publish:pkg --tag canary
  • buildcontractspec-bun-build build
  • build:bundlecontractspec-bun-build transpile
  • build:typescontractspec-bun-build types
  • devcontractspec-bun-build dev
  • cleanrimraf dist .turbo
  • lintbun lint:fix
  • lint:fixnode ../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../scripts/biome.cjs check --write .
  • lint:checknode ../../scripts/biome.cjs check .
  • testbun test --pass-with-no-tests
  • prebuildcontractspec-bun-build prebuild
  • typechecktsgo --noEmit