Stripe Gateway
Stripe payment gateway integration for SaaS subscriptions. This module enables accepting payments via Stripe for tenant subscription billing with support for cards and various payment methods.
Features
- Stripe Payments: Accept payments via Stripe's payment platform
- Subscription Management: Full subscription lifecycle management with Stripe Billing
- Webhook Handling: Automatic event processing via Stripe webhooks
- Card Payments: Accept credit and debit card payments
- Multiple Payment Methods: Support for bank transfers, wallets, and local payment methods
- Invoice Generation: Automatic invoice generation for all payments
- Proration Support: Automatic proration for plan changes
Requirements
- Open Core Business Suite (Base System)
- MultiTenancyCore module (required)
- Stripe account
- Stripe API keys (Publishable and Secret keys)
Installation
- Download the Stripe Gateway module package
- Extract the module to
Modules/StripeGateway - Run the installation command:
php artisan module:enable StripeGateway
php artisan migrate
- Configure your Stripe API keys
- Clear the application cache:
php artisan optimize:clear
Usage
Configuration
Navigate to Settings > Payment Gateways > Stripe to configure:
- Enter your Stripe Publishable Key
- Enter your Stripe Secret Key
- Enter your Webhook Signing Secret
- Save settings
Webhook Setup
Configure webhooks in your Stripe Dashboard:
- Go to Stripe Dashboard > Developers > Webhooks
- Add endpoint URL:
https://yourdomain.com/api/webhooks/stripe - Select events:
checkout.session.completedcustomer.subscription.createdcustomer.subscription.updatedcustomer.subscription.deletedinvoice.paidinvoice.payment_failed
Subscription Management
Stripe subscriptions are fully integrated:
- Tenants can subscribe using the Stripe Checkout
- Subscription changes are handled with proration
- Failed payments trigger dunning emails
- Cancelled subscriptions update tenant access
Card Payments
Accept card payments securely:
- PCI-compliant card handling via Stripe Elements
- Support for 3D Secure authentication
- Saved cards for future payments
- Multiple cards per customer
Payment History
View all Stripe transactions at Central Admin > Payments:
- Filter by tenant, date, or status
- View detailed transaction information
- Download invoices
- Process refunds
Configuration
Access module settings at Settings > Stripe Gateway to configure:
- API keys (Publishable and Secret)
- Webhook signing secret
- Default currency
- Tax settings
- Invoice customization
- Payment method types to accept