Stripe Connect Integration
A comprehensive WordPress plugin for integrating Stripe Connect with support for commission fees, application fees, and Uber Direct integration. This plugin provides a complete solution for managing payments, connected accounts, and fee structures through the Stripe platform.
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/usama-8738/stripe-connect-integration-plugin/archive/refs/heads/Dashboard-Restyling.zipDescription
A comprehensive WordPress plugin for integrating Stripe Connect with support for commission fees, application fees, and Uber Direct integration. This plugin provides a complete solution for managing payments, connected accounts, and fee structures through the Stripe platform.
Features
Core Features
- Stripe Connect Integration: Full support for Stripe Connect Express and Standard accounts
- Fee Management: Configure commission fees, application fees, and Uber Direct fees
- Dashboard Analytics: Visual charts and statistics for revenue tracking
- Transaction Management: Track and manage all payment transactions
- Webhook Support: Automatic webhook handling for real-time updates
- Logging System: Comprehensive logging with different levels (info, warning, error)
- Multi-Mode Support: Test and Live mode switching
Admin Features
- Modern, responsive admin interface
- Real-time fee calculator
- Transaction filtering and search
- Log management with filtering capabilities
- Export functionality for transactions
- Visual dashboard with Chart.js integration
Fee Structure
- Commission Fee: Percentage + Fixed amount (e.g., 2.9% + $0.30)
- Application Fee: Platform percentage fee
- Uber Direct Fee: Optional delivery service fee
- Net Amount Calculation: Automatic calculation after all fees
Installation
- Upload the
stripe-connect-integrationfolder to/wp-content/plugins/ - Activate the plugin through the 'Plugins' menu in WordPress
- Navigate to 'Stripe Connect' in the admin menu
- Configure your Stripe API keys in Settings
Configuration
Initial Setup
-
Get Your Stripe API Keys
- Log in to your Stripe Dashboard
- Navigate to Developers > API Keys
- Copy your Test and Live keys
-
Configure Plugin Settings
- Go to Stripe Connect > Settings in WordPress admin
- Choose your mode (Test or Live)
- Enter your API keys
- Configure fee structures
- Save settings
-
Set Up Webhooks
- In Stripe Dashboard, go to Developers > Webhooks
- Add endpoint:
https://yoursite.com/wp-json/stripe-connect-integration/v1/webhook - Select events to listen for
- Copy the webhook signing secret to plugin settings
Fee Configuration
- Commission Fee: Standard processing fee (percentage + fixed)
- Application Fee: Your platform's percentage take
- Uber Direct Fee: Optional delivery service fee
Usage
Shortcodes
-
Connect Button
[stripe_connect_button text="Connect with Stripe" class="custom-class"] -
Dashboard
[stripe_connect_dashboard]
PHP Functions
// Create a payment intent
$api = new Stripe_Connect_API();
$result = $api->create_payment_intent(100.00, 'USD', ['order_id' => '123']);
// Calculate fees
$fees = new Stripe_Connect_Fees();
$breakdown = $fees->calculate_fees(100.00);
// Log an event
$logger = new Stripe_Connect_Logger();
$logger->log('info', 'Payment processed', ['amount' => 100.00]);
Database Tables
The plugin creates the following tables:
wp_sci_transactions- Stores transaction datawp_sci_logs- System logswp_sci_connected_accounts- Connected Stripe accounts
Webhook Events
Supported webhook events:
payment_intent.succeededpayment_intent.payment_failedcharge.succeededaccount.updatedtransfer.created
Development
File Structure
stripe-connect-integration/
├── admin/ # Admin functionality
├── assets/ # CSS, JS, and images
├── includes/ # Core plugin classes
├── public/ # Public-facing functionality
└── vendor/ # Third-party libraries
Hooks and Filters
Actions
sci_payment_success- Fired on successful paymentsci_payment_failed- Fired on failed paymentsci_account_connected- Fired when account connects
Filters
sci_fee_calculation- Modify fee calculationssci_transaction_data- Filter transaction data before savingsci_log_message- Filter log messages
Requirements
- WordPress 5.0 or higher
- PHP 7.2 or higher
- Stripe PHP SDK
- SSL certificate (for live mode)
Support
For support, please visit https://copixels.com/ or create an issue on the GitHub repository.
Changelog
Version 1.0.0
- Initial release
- Full Stripe Connect integration
- Commission and application fee support
- Uber Direct fee integration
- Dashboard and analytics
- Transaction management
- Logging system
License
GPL-2.0+ License
Author
Muhammad Suleman Afzal
- Website: https://copixels.com/
Credits
- Stripe PHP SDK
- Chart.js for analytics
- DataTables for enhanced table functionality
Note: This plugin requires a valid Stripe account and API keys. Always test in Test mode before going live.