engyahmed7/laravel-plaid 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

engyahmed7/laravel-plaid

Composer 安装命令:

composer create-project engyahmed7/laravel-plaid

包简介

The skeleton application for the Laravel framework.

README 文档

README

A robust and secure integration between Laravel, Plaid API, and Stripe API, enabling users to link bank accounts, process card or ACH payments, and transfer payouts to car owners.

Laravel Plaid Stripe PHP

System Flow

1. Card Payments (Pay-In via Stripe)

sequenceDiagram
    participant Customer
    participant Laravel
    participant Stripe

    Customer->>Laravel: Provide Card Info
    Laravel->>Stripe: Create Payment Method (Card)
    Stripe-->>Laravel: Payment Method ID
    Laravel->>Stripe: Create Payment Intent
    Stripe-->>Laravel: Payment Confirmation
    Laravel-->>Customer: Payment Success
Loading

2. Bank Account Pay-In (Plaid + Stripe ACH Debit)

sequenceDiagram
    participant User
    participant Laravel
    participant Plaid
    participant Stripe

    User->>Laravel: Request Plaid Link Token
    Laravel->>Plaid: POST /link/token/create
    Plaid-->>Laravel: Link Token
    Laravel-->>User: Return Link Token

    User->>Plaid: Select Bank & Authenticate
    Plaid-->>User: Public Token
    User->>Laravel: Send Public Token

    Laravel->>Plaid: Exchange Public Token for Access Token & Account Info
    Plaid-->>Laravel: Bank Account Details
    Laravel->>Stripe: Create Bank Account Payment Method
    Stripe-->>Laravel: Payment Method ID
    Laravel->>Stripe: Create Payment Intent (ACH Debit)
Loading

3. Merchant Payout to Car Owners (Stripe Payout)

sequenceDiagram
    participant Merchant
    participant Laravel
    participant Stripe
    participant CarOwner

    Laravel->>Stripe: Create Connected Account for Car Owner
    Laravel->>Stripe: Initiate Payout
    Stripe-->>CarOwner: Funds Deposited to Bank
Loading

Key Features

  • Plaid Integration for secure bank account linking

  • Stripe Pay-In with:

    • Credit/Debit cards
    • ACH debits via Plaid-linked bank accounts
  • Stripe Payouts to car owners’ bank accounts

  • Transaction Management Dashboard

  • Secure API-first architecture

  • Responsive UI built with BootstrapCSS

Prerequisites

  • PHP 8.1+
  • Composer
  • Node.js 16+
  • MySQL 5.7+
  • Plaid API credentials
  • Stripe API keys (secret & publishable)

Installation

  1. Clone the repository:
git clone https://github.com/engyahmed7/laravel-plaid-to-stripe-payments.git
cd laravel-plaid-to-stripe-payments
  1. Install PHP dependencies:
composer install
  1. Install JavaScript dependencies:
npm install
npm run dev
  1. Create environment file:
cp .env.example .env
  1. Generate application key:
php artisan key:generate
  1. Configure environment variables in .env:
DB_DATABASE=your_database_name
DB_USERNAME=your_db_username
DB_PASSWORD=your_db_password

PLAID_CLIENT_ID=your_plaid_client_id
PLAID_SECRET=your_plaid_secret
PLAID_ENV=sandbox # or development/production

STRIPE_KEY=your_stripe_publishable_key
STRIPE_SECRET=your_stripe_secret_key
  1. Run migrations:
php artisan migrate

Usage

Card Pay-In

  1. Create a Stripe customer
  2. Add a payment method (card)
  3. Create a payment intent to charge the customer

Bank Account Pay-In via Plaid

  1. Use Plaid Link to connect a bank account
  2. Exchange the public token for bank account info
  3. Create a Stripe payment method of type us_bank_account
  4. Create a Stripe payment intent to debit the bank account

Payout to Car Owners

  1. Create a Stripe connected account for the owner
  2. Initiate payout using Stripe::payouts->create()

Development Notes

⚠️ This project uses Plaid’s Sandbox Environment and Stripe test mode by default for development and testing.

For production deployment, follow these steps:

  1. Replace sandbox credentials with production keys
  2. Set PLAID_ENV=production in .env
  3. Complete Plaid's production onboarding process

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch:
    git checkout -b feature/amazing-feature
  3. Commit your changes:
    git commit -m 'Add some amazing feature'
  4. Push to the branch:
    git push origin feature/amazing-feature
  5. Open a Pull Request with a clear description

Learn More

For detailed documentation, visit:

engyahmed7/laravel-plaid 适用场景与选型建议

engyahmed7/laravel-plaid 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 07 月 20 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「framework」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 engyahmed7/laravel-plaid 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 engyahmed7/laravel-plaid 我们能提供哪些服务?
定制开发 / 二次开发

基于 engyahmed7/laravel-plaid 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 13
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-20