# Shop PayPal reference

<!-- prettier-ignore-start -->

Developer reference for `capell-app/shop-paypal`. Start with the [README](../README.md) for what the extension does and how to install it.

## Package Details

Shop PayPal is an **Available** Capell package in the **Capell Commerce** product group. It ships as `capell-app/shop-paypal` and extends these surfaces: shared.

- Status: Available
- Tier: paid
- Bundle: commerce
- Composer package: `capell-app/shop-paypal`
- Namespace: `Capell\ShopPayPal`
- Theme key: not applicable

## Technical Shape

### Service providers

- `Capell\ShopPayPal\ShopPayPalMigrationMetadataServiceProvider`
- `Capell\ShopPayPal\ShopPayPalServiceProvider`

### Config files

- `packages/shop-paypal/config/capell-shop-paypal.php`

### Migrations

- `packages/shop-paypal/database/migrations/2026_11_19_000001_create_shop_paypal_checkouts.php`
- `packages/shop-paypal/database/migrations/2026_11_19_000002_create_shop_paypal_live_accounts.php`
- `packages/shop-paypal/database/migrations/2026_11_27_000001_create_shop_paypal_attempt_states.php`

### Models

- `ShopPayPalAttemptState`
- `ShopPayPalCheckout`
- `ShopPayPalLiveAccount`

### Route files

- `packages/shop-paypal/routes/web.php`

### Actions

- `ApplyShopPayPalCaptureAction`
- `BuildShopPayPalWalletButtonAction`
- `CaptureShopPayPalWalletPaymentAction`
- `ConfigureShopPayPalLiveAccountAction`
- `ResolveShopPayPalWalletOutcomeAction`
- `SetShopPayPalLiveModeAction`
- `StartShopPayPalCheckoutAction`
- `StartShopPayPalWalletPaymentAction`

### Data objects

- `PayPalAccessToken`
- `PayPalConfiguration`
- `ShopPayPalWalletButtonData`

### Command signatures

- `shop-paypal:live`

### Manifest action API

- `captureWalletPayment: Capell\ShopPayPal\Actions\CaptureShopPayPalWalletPaymentAction`
- `configureLiveAccount: Capell\ShopPayPal\Actions\ConfigureShopPayPalLiveAccountAction`
- `setLiveMode: Capell\ShopPayPal\Actions\SetShopPayPalLiveModeAction`
- `startCheckout: Capell\ShopPayPal\Actions\StartShopPayPalCheckoutAction`
- `startWalletPayment: Capell\ShopPayPal\Actions\StartShopPayPalWalletPaymentAction`

### Console command classes

- `ShopPayPalLiveAccountCommand`

### Manifest contributions

- `configurator: Capell\ShopPayPal\Manifest\ShopPayPalLiveRefundContribution`
- `configurator: Capell\ShopPayPal\Manifest\ShopPayPalPaymentContribution`
- `configurator: Capell\ShopPayPal\Manifest\ShopPayPalRefundContribution`
- `console-command: Capell\ShopPayPal\Manifest\ShopPayPalLiveAccountCommandContribution`
- `health-check: Capell\ShopPayPal\Health\ShopPayPalHealthCheck`
- `route: Capell\ShopPayPal\Manifest\ShopPayPalRoutesContribution`

### Health checks

- `Capell\ShopPayPal\Health\ShopPayPalHealthCheck`

### Blade views

- `packages/shop-paypal/resources/views/wallet-button.blade.php`

## Data Model

- Required tables: `shop_paypal_checkouts`, `shop_paypal_live_accounts`, `shop_paypal_attempt_states`.
- Protected tables: `shop_paypal_checkouts`, `shop_paypal_live_accounts`, `shop_paypal_attempt_states`.
- Models: `ShopPayPalAttemptState`, `ShopPayPalCheckout`, `ShopPayPalLiveAccount`.
- Migration files: `2026_11_19_000001_create_shop_paypal_checkouts.php`, `2026_11_19_000002_create_shop_paypal_live_accounts.php`, `2026_11_27_000001_create_shop_paypal_attempt_states.php`.
- Migration impact: run host migrations through the package install flow before opening package surfaces.
- Deletion/retention behaviour: migrations declare restricted-delete relationships; no timed pruning or retention schedule is declared in `capell.json`.

<!-- prettier-ignore-end -->