Integrate Plaid for financial data connectivity
3.xTo connect bank accounts and import transactions, configure Plaid in your .env file:
PLAID_CLIENT_ID=your-client-id
PLAID_CLIENT_SECRET=your-secret
PLAID_ENVIRONMENT=sandbox # sandbox, development, or production
PLAID_WEBHOOK_URL=https://your-static-domain.com/api/plaid/webhookImportant:
PLAID_WEBHOOK_URLmust end with/api/plaid/webhookand use a static domain (e.g., via ngrok).- After connecting an account on the "Connected Accounts" page, you must run the following command to process queued transactions:
php artisan queue:listen
PLAID_CLIENT_ID=your-client-id
PLAID_CLIENT_SECRET=your-secret
PLAID_ENVIRONMENT=sandbox
PLAID_WEBHOOK_URL=https://my-static-domain.ngrok-free.app/api/plaid/webhook