WP Manifestindependent plugin directory
manifest / ecommerce / stripe-connect-integration-plugin

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.

by Muhammad Suleman Afzal · github.com/usama-8738/stripe-connect-integration-plugin · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/usama-8738/stripe-connect-integration-plugin/archive/refs/heads/Dashboard-Restyling.zip

Description

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

  1. Upload the stripe-connect-integration folder to /wp-content/plugins/
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Navigate to 'Stripe Connect' in the admin menu
  4. Configure your Stripe API keys in Settings

Configuration

Initial Setup

  1. Get Your Stripe API Keys

    • Log in to your Stripe Dashboard
    • Navigate to Developers > API Keys
    • Copy your Test and Live keys
  2. 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
  3. 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

  1. Connect Button

    [stripe_connect_button text="Connect with Stripe" class="custom-class"]
  2. 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 data
  • wp_sci_logs - System logs
  • wp_sci_connected_accounts - Connected Stripe accounts

Webhook Events

Supported webhook events:

  • payment_intent.succeeded
  • payment_intent.payment_failed
  • charge.succeeded
  • account.updated
  • transfer.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 payment
  • sci_payment_failed - Fired on failed payment
  • sci_account_connected - Fired when account connects

Filters

  • sci_fee_calculation - Modify fee calculations
  • sci_transaction_data - Filter transaction data before saving
  • sci_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

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.