Payments
Package docs status
Section titled “Package docs status”This page is generated from package source documentation in the Capell packages repository and the checked-in manifest. Source documentation is not distribution status. Before running a Composer command, verify that the exact package and compatible 1.x release are available through public Packagist or the authenticated marketplace account.
| Field | Value |
|---|---|
| Composer package | capell-app/payments |
| Package slug | payments |
| Product group | Capell Commerce |
| Tier | premium |
| Bundle | commerce |
| Runtime contexts | admin, frontend, console |
| Capell version | ^1.0 |
| Catalogue role | extension |
| Release channel | Beta |
| Source repository | capell-app/packages |
| Source path | packages/payments |
| Docs source | packages/payments/docs |
| Manifest | capell.json |
What This Plugin Adds
Section titled “What This Plugin Adds”Payments is an Available, Schema-owning Capell package in the Capell Commerce product group. It ships as capell-app/payments and extends these surfaces: admin, frontend, console.
Payments adds Stripe and PayPal checkout, provider-neutral payment records, verified webhooks, refunds, subscriptions, billing portals, and paid-download fulfillment.
Customers can complete configured checkout and billing flows. Admins can inspect checkout sessions, payment intents, refunds, disputes, subscriptions, and webhook events as an operational record.
Status details:
- Status: Available
- Tier: premium
- Bundle: commerce
- Composer package:
capell-app/payments - Namespace:
Capell\Payments - Theme key: not applicable
Why It Matters
Section titled “Why It Matters”For developers: Gateway and fulfillment contracts keep provider calls and post-payment delivery behind Actions with idempotency and webhook verification.
For teams: Teams can take payments and reconcile provider activity from Capell while retaining a clear record of refunds, disputes, and fulfillment.
Screens And Workflow
Section titled “Screens And Workflow”Screenshot contract: docs/screenshots.json.


- Payments checkout sessions (admin, required evidence).
- Payments webhook events (admin, required evidence).
- Payments settings (admin, required evidence).
- Payments customer portal billing (frontend, required evidence).
- Payments Form Builder checkout (frontend, required evidence).
- Payments checkout failure and return state (frontend, supplementary evidence).
- Payments checkout sessions with admin sidebar menu open (admin, supplementary evidence).
Technical Shape
Section titled “Technical Shape”Service providers
Section titled “Service providers”Capell\Payments\Providers\PaymentsServiceProviderCapell\Payments\Providers\AdminServiceProvider
Config files
Section titled “Config files”packages/payments/config/capell-payments.php
Migrations
Section titled “Migrations”packages/payments/database/migrations/2026_05_31_000001_create_payment_customers_table.phppackages/payments/database/migrations/2026_05_31_000002_create_payment_checkout_sessions_table.phppackages/payments/database/migrations/2026_05_31_000003_create_payment_intents_table.phppackages/payments/database/migrations/2026_05_31_000004_create_payment_subscriptions_table.phppackages/payments/database/migrations/2026_05_31_000005_create_payment_webhook_events_table.phppackages/payments/database/migrations/2026_05_31_000006_create_payment_refunds_table.phppackages/payments/database/migrations/2026_05_31_000007_create_payment_disputes_table.phppackages/payments/database/migrations/2026_05_31_000009_create_payment_download_entitlements_table.php
Settings migrations
Section titled “Settings migrations”packages/payments/database/settings/2026_05_31_000008_create_payments_settings.php
Settings classes
Section titled “Settings classes”PaymentsSettings
Models
Section titled “Models”CheckoutSessionPaymentCustomerPaymentDisputePaymentDownloadEntitlementPaymentIntentPaymentRefundPaymentWebhookEventSubscription
Filament classes
Section titled “Filament classes”CheckoutSessionResourceListCheckoutSessionsListPaymentCustomersPaymentCustomerResourceListPaymentDisputesPaymentDisputeResourceListPaymentIntentsPaymentIntentResourceListPaymentRefundsPaymentRefundResourceListSubscriptionsSubscriptionResourceListPaymentWebhookEventsPaymentWebhookEventResourcePaymentsSettingsSchema
Route files
Section titled “Route files”packages/payments/routes/web.php
Policies
Section titled “Policies”AbstractPaymentsResourcePolicyCheckoutSessionPolicyPaymentCustomerPolicyPaymentDisputePolicyPaymentIntentPolicyPaymentRefundPolicyPaymentWebhookEventPolicySubscriptionPolicy
Extension contracts
Section titled “Extension contracts”PaymentFulfillmentHandlerPaymentGateway
Actions
Section titled “Actions”BuildPaymentsHealthReportActionBuildPaymentsPrivacyExportActionCapturePayPalCheckoutSessionActionCreateBillingPortalSessionActionCreateCheckoutSessionActionCreatePaidDownloadUrlActionDownloadPaidDownloadActionErasePaymentsPrivacyDataActionFormatPaymentMoneyActionFulfillCompletedCheckoutSessionActionGeneratePaymentGatewayIdempotencyKeyActionGrantPaidDownloadAccessActionHandlePayPalWebhookActionHandleStripeWebhookActionIssuePaymentRefundActionProcessPayPalWebhookEventActionProcessStripeWebhookEventActionReconcilePaymentWebhooksActionRecordCheckoutSessionActionRecordPaymentCustomerActionRecordPaymentDisputeActionRecordPaymentIntentActionRecordPaymentRefundActionRecordSubscriptionActionRedactPaymentErrorMessageActionReprocessPaymentWebhookEventsActionResolvePaymentProviderApiEndpointActionResolvePaymentSettingActionResolvePaymentsPrivacyRecordIdsActionResolvePortalPaymentCustomerActionResolveSubscriptionEntitlementActionValidateFormPaymentReturnUrlActionVerifyStripeWebhookSignatureAction
Data objects
Section titled “Data objects”BillingPortalSessionDataCheckoutLineItemDataCheckoutSessionDataCreateBillingPortalSessionDataCreateCheckoutSessionDataPaymentCustomerDataPaymentDisputeDataPaymentFulfillmentResultDataPaymentIntentDataPaymentRefundDataPaymentsHealthReportDataPaymentsPrivacyRecordIdsDataReconcilePaymentWebhooksResultDataRefundRequestDataReprocessPaymentWebhookEventsResultDataResolvedPaymentProviderEndpointDataSubscriptionDataSubscriptionEntitlementData
ProcessPayPalWebhookEventJobProcessStripeWebhookEventJob
Command signatures
Section titled “Command signatures”capell:payments:webhooks:reconcilecapell:payments:webhooks:reprocess
Manifest action API
Section titled “Manifest action API”billingPortal: Capell\Payments\Actions\CreateBillingPortalSessionActioncheckout: Capell\Payments\Actions\CreateCheckoutSessionActionpaidDownloadUrl: Capell\Payments\Actions\CreatePaidDownloadUrlActionsubscriptionEntitlement: Capell\Payments\Actions\ResolveSubscriptionEntitlementAction
Console command classes
Section titled “Console command classes”ReconcilePaymentWebhooksCommandReprocessPaymentWebhookEventsCommand
Manifest contributions
Section titled “Manifest contributions”admin-resource: Capell\Payments\Manifest\CheckoutSessionResourceContributionadmin-resource: Capell\Payments\Manifest\PaymentCustomerResourceContributionadmin-resource: Capell\Payments\Manifest\PaymentDisputeResourceContributionadmin-resource: Capell\Payments\Manifest\PaymentIntentResourceContributionadmin-resource: Capell\Payments\Manifest\PaymentRefundResourceContributionadmin-resource: Capell\Payments\Manifest\PaymentWebhookEventResourceContributionadmin-resource: Capell\Payments\Manifest\SubscriptionResourceContributionconsole-command: Capell\Payments\Manifest\PaymentsConsoleCommandsContributionhealth-check: Capell\Payments\Manifest\PaymentsHealthContributionmodel: Capell\Payments\Manifest\PaymentsModelsContributionroute: Capell\Payments\Manifest\PaymentsFrontendRoutesContributionsetting: Capell\Payments\Manifest\PaymentsSettingsContribution
Health checks
Section titled “Health checks”Capell\Payments\Health\PaymentsHealthCheck
Cache tags
Section titled “Cache tags”payments
Data Model
Section titled “Data Model”- Required tables:
payment_customers,payment_checkout_sessions,payment_intents,payment_subscriptions,payment_webhook_events,payment_refunds,payment_disputes,payment_download_entitlements. - Protected tables:
payment_customers,payment_checkout_sessions,payment_intents,payment_subscriptions,payment_webhook_events,payment_refunds,payment_disputes,payment_download_entitlements. - Models:
CheckoutSession,PaymentCustomer,PaymentDispute,PaymentDownloadEntitlement,PaymentIntent,PaymentRefund,PaymentWebhookEvent,Subscription. - Core record references in migrations:
sites via site_id. - Migration files:
2026_05_31_000001_create_payment_customers_table.php,2026_05_31_000002_create_payment_checkout_sessions_table.php,2026_05_31_000003_create_payment_intents_table.php,2026_05_31_000004_create_payment_subscriptions_table.php,2026_05_31_000005_create_payment_webhook_events_table.php,2026_05_31_000006_create_payment_refunds_table.php,2026_05_31_000007_create_payment_disputes_table.php,2026_05_31_000009_create_payment_download_entitlements_table.php. - Migration impact: run host migrations through the package install flow before opening package surfaces.
- Deletion/retention behaviour: migrations declare cascade-on-delete relationships and null-on-delete relationships; no timed pruning or retention schedule is declared in
capell.json.
Install Impact
Section titled “Install Impact”- Required packages:
capell-app/admin,capell-app/core. - Admin navigation: declares
admin-resource: CheckoutSessionResourceContribution,admin-resource: PaymentCustomerResourceContribution,admin-resource: PaymentDisputeResourceContribution,admin-resource: PaymentIntentResourceContribution,admin-resource: PaymentRefundResourceContribution,admin-resource: PaymentWebhookEventResourceContribution,admin-resource: SubscriptionResourceContribution; each Filament page or resource controls its own navigation visibility. - Admin/editor extensions: none declared.
- Permissions:
View:PaymentCustomer,View:CheckoutSession,View:PaymentIntent,View:Subscription,View:PaymentWebhookEvent,View:PaymentRefund,View:PaymentDispute; access also governed by package policies:AbstractPaymentsResourcePolicy,CheckoutSessionPolicy,PaymentCustomerPolicy,PaymentDisputePolicy,PaymentIntentPolicy,PaymentRefundPolicy,PaymentWebhookEventPolicy,SubscriptionPolicy. - Public routes: loads
routes/web.php; registersPaymentsFrontendRoutesContribution. - Database changes: package migrations are declared.
- Config:
config/capell-payments.php. - Settings:
Capell\Payments\Settings\PaymentsSettings. - Queues or schedules: queue jobs
ProcessPayPalWebhookEventJob,ProcessStripeWebhookEventJob. - Cache tags:
payments. - Commands:
capell:payments:webhooks:reconcile,capell:payments:webhooks:reprocess.
Common Pitfalls
Section titled “Common Pitfalls”- Keep required Capell packages on compatible v4 releases:
capell-app/admin,capell-app/core. - Run migrations before opening package resources or public routes.
- Review package configuration before production-like verification:
config/capell-payments.php,Capell\Payments\Settings\PaymentsSettings. - Review middleware, throttling, signatures, and public-output safety in
routes/web.phpbefore exposing routes. - Keep public Blade and cached HTML free of authoring markers, model IDs, permissions, signed editor URLs, and lazy database queries.
- Custom write integrations must preserve invalidation for
paymentscache tags.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Likely cause | Check | Fix |
|---|---|---|---|
| Package surface is missing after install | Provider or manifest is not loaded | Confirm capell.json, package composer.json, and provider registration | Reinstall the package, refresh Composer autoload, and clear host caches |
| Admin screen or command fails on missing table | Package migrations have not run | Check the tables listed in Data Model | Run host migrations and rerun the focused package test |
| Route returns unexpected output | Route cache, middleware, or signed URL setup does not match the package route file | Check the route files listed in Technical Shape | Clear route cache and verify middleware before exposing public routes |
| Background work does not run | Queue worker or declared schedule is not active | Check the jobs and scheduled commands listed in Technical Shape | Start the queue worker or host scheduler, then run the focused command or package test |
| Public output leaks unexpected state | Render data, cache variation, or authoring boundary has regressed | Check public Blade, cache tags, and public-output safety tests | Move data loading out of Blade and rerun the package public-output tests |
Quick Start
Section titled “Quick Start”- Install the package:
composer require capell-app/payments. - Open the package admin surface at
/admin/payments/checkout-sessionsand confirm Payments is available.
Next Steps
Section titled “Next Steps”- Package docs
- Overview
- Worked extension examples
- Admin guide
- Configuration files:
config/capell-payments.php. - Troubleshooting
- Screenshot contract
- Marketplace assets
- Capell content language plan
- Capell documentation design system
- Capell and package ERD notes
- Related packages: Access Gate, Customer Portal.