Token导航 LogoToken导航

Agent Skill · 研究检索

laravel-cashier-stripe(Laravel cashier Stripe 搜索)

laravel-cashier-stripe 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

laravel-cashier-stripe 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证为 MIT,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 61,288。

总安装 353周安装 15GitHub Stars 公开资料未说明下载 124核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:laravel-cashier-stripe(Laravel cashier Stripe 搜索)
来源仓库:https://github.com/microck/ordinary-claude-skills
仓库路径:skills/laravel-cashier-stripe
安装命令:
npx skills add microck/ordinary-claude-skills --skill "laravel-cashier-stripe"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add microck/ordinary-claude-skills --skill "laravel-cashier-stripe"

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

Laravel Cashier Stripe 集成工具,支持订阅与一次性支付处理。适合在 AI 宿主中构建电商或会员系统相关的支付模块。通过 npx skills add 命令安装,需配合 Stripe 密钥与环境配置使用。使用前务必验证测试环境交易流程,避免生产环境误操作造成损失。

laravel-cashier-stripe 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/laravel-cashier-stripe

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add microck/ordinary-claude-skills --skill "laravel-cashier-stripe";命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

laravel-cashier-stripe 怎么安装?

在终端执行 npx skills add microck/ordinary-claude-skills --skill "laravel-cashier-stripe"。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

laravel-cashier-stripe 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

laravel-cashier-stripe 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

laravel-cashier-stripe 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

laravel-cashier-stripe 用的人多吗?

公开数据是累计安装 353 次,近一周安装 15 次,下载 124 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

laravel-cashier-stripe 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
laravel-cashier-stripe

Laravel cashier Stripe 搜索 · 本页

353—接触敏感数据MIT未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
laravel-cashier-stripe
description
Laravel Cashier (Stripe) - Subscription billing and payment processing

Laravel Cashier (Stripe) Skill

Comprehensive assistance with Laravel Cashier (Stripe) development for subscription billing, payment processing, and Stripe integration in Laravel applications.

When to Use This Skill

This skill should be triggered when:

  • Implementing subscription billing in Laravel applications
  • Setting up recurring payments with Stripe
  • Managing customer subscriptions, trials, and plan changes
  • Processing one-time charges or invoices
  • Handling Stripe webhooks and events
  • Implementing checkout flows with Stripe Checkout
  • Managing customer payment methods and cards
  • Working with Stripe invoices and billing portals
  • Setting up trial periods and proration logic
  • Debugging Stripe integration issues in Laravel

Quick Reference

Installation and Setup

# Install Cashier
composer require laravel/cashier

# Publish migrations and migrate
php artisan vendor:publish --tag="cashier-migrations"
php artisan migrate

# Publish config (optional)
php artisan vendor:publish --tag="cashier-config"

Configure Billable Model

use Laravel\Cashier\Billable;

class User extends Authenticatable
{
    use Billable;
}

Creating a Subscription

// Basic subscription with trial and checkout
$user->newSubscription('default', 'price_monthly')
    ->trialDays(5)
    ->allowPromotionCodes()
    ->checkout([
        'success_url' => route('checkout.success'),
        'cancel_url' => route('checkout.cancel'),
    ]);

Checking Subscription Status

// Check if user has active subscription
if ($user->subscribed('default')) {
    // User is subscribed to "default" plan
}

// Check specific product subscription
if ($user->subscribedToProduct('prod_premium', 'default')) {
    // User is subscribed to premium product
}

// Check trial status
if ($user->subscription('default')->onTrial()) {
    // User is still in trial period
}

Managing Payment Methods

// Store payment method (in view with Stripe.js)
$intent = $user->createSetupIntent();

// Retrieve payment methods
$paymentMethods = $user->paymentMethods();
$defaultMethod = $user->defaultPaymentMethod();

// Add and update payment methods
$user->addPaymentMethod($paymentMethodId);
$user->updateDefaultPaymentMethod($paymentMethodId);

Swapping Subscription Plans

// Swap to different price/plan
$user->subscription('default')->swap('price_yearly');

// Swap and skip trial
$user->subscription('default')->skipTrial()->swap('price_yearly');

Single Charges and Invoices

// One-time charge
$user->charge(1000, $paymentMethodId, [
    'description' => 'One-time charge',
]);

// Create invoice for service
$user->invoiceFor('Premium Support', 5000, [
    'description' => '3 months of premium support',
]);

// Refund a charge
$user->refund($chargeId);

Canceling Subscriptions

// Cancel immediately
$user->subscription('default')->cancel();

// Cancel at end of billing period
$user->subscription('default')->cancelAtEndOfBillingPeriod();

// Resume canceled subscription
if ($user->subscription('default')->onGracePeriod()) {
    $user->subscription('default')->resume();
}

Working with Invoices

// Get all invoices
$invoices = $user->invoices();

// Get upcoming invoice
$upcomingInvoice = $user->upcomingInvoice('default');

// Download invoice PDF
return $user->invoices()->first()->download();

Billing Portal Integration

// Redirect to Stripe billing portal
Route::get('/billing', function (Request $request) {
    return $request->user()
        ->redirectToBillingPortal(route('dashboard'));
})->middleware(['auth']);

Customer Management

// Create/get Stripe customer
$stripeCustomer = $user->createOrGetStripeCustomer();

// Update customer details
$user->updateStripeCustomer([
    'name' => 'Updated Name',
    'email' => ' [email protected] ',
]);

// Manage tax IDs
$taxId = $user->createTaxId('eu_vat', 'BE0123456789');
$user->deleteTaxId('txi_belgium');

Key Concepts

Billable Model

The Billable trait adds subscription and payment functionality to your Eloquent models (typically User). It provides methods for creating subscriptions, processing charges, managing payment methods, and accessing invoices.

Subscriptions

Cashier manages recurring billing through subscriptions. Each subscription has:

  • Name: Identifier like "default" or "premium"
  • Price ID: Stripe price identifier (e.g., "price_monthly")
  • Status: Active, trialing, canceled, incomplete, etc.
  • Trial period: Optional trial days before charging
  • Metered billing: Support for usage-based pricing

Payment Methods

Stripe payment methods represent stored payment credentials (cards, bank accounts). Cashier provides helpers to:

  • Store payment methods securely via Setup Intents
  • Set default payment methods for subscriptions
  • Update and delete payment methods
  • Handle payment method verification

Webhooks

Stripe sends webhook events for subscription changes, payment failures, invoice updates, etc. Cashier automatically handles common webhooks, but you can extend functionality by listening to specific events.

Checkout Sessions

Stripe Checkout provides a pre-built payment page. Cashier simplifies creating checkout sessions for subscriptions and one-time products, handling the complete payment flow with minimal code.

Invoices

Cashier provides access to Stripe invoices for both subscriptions and one-time charges. You can retrieve, preview, and download invoices as PDFs.

Reference Files

This skill includes comprehensive documentation in references/:

  • other.md - Complete Laravel Cashier documentation covering:

- Installation and configuration - Subscription management (create, swap, cancel, resume) - Payment method handling and Setup Intents - Single charges and invoicing - Stripe Checkout integration - Webhook handling and event processing - Customer portal integration - Tax ID management - Testing strategies

Use view to read the reference file when you need detailed information about specific features.

Working with This Skill

For Beginners

Start by:

  1. Installing Cashier and running migrations
  2. Adding the Billable trait to your User model
  3. Setting up environment variables (STRIPE_KEY, STRIPE_SECRET)
  4. Creating your first subscription with newSubscription()
  5. Testing with Stripe test mode API keys

Basic workflow:

// 1. Configure model
use Laravel\Cashier\Billable;
class User extends Authenticatable { use Billable; }

// 2. Create subscription
$user->newSubscription('default', 'price_monthly')->create();

// 3. Check status
if ($user->subscribed('default')) {
    // Grant access
}

For Intermediate Users

Focus on:

  • Implementing complete checkout flows with Stripe Checkout
  • Managing payment method changes and updates
  • Handling subscription plan swaps and prorations
  • Working with trial periods and grace periods
  • Processing one-time charges alongside subscriptions
  • Customizing invoice details and tax information

For Advanced Users

Explore:

  • Webhook event customization and extended handling
  • Metered billing and usage-based pricing
  • Multi-plan subscriptions (multiple subscriptions per user)
  • Customer balance and credit management
  • Tax ID validation and compliance
  • Advanced invoice customization
  • Stripe Connect integration for marketplaces
  • Testing strategies for subscription flows

Navigation Tips

  • Start with the Quick Reference section for common tasks
  • Check Key Concepts to understand core Cashier terminology
  • Use references/other.md for complete implementation details
  • Reference the official Laravel Cashier docs at https://laravel.com/docs/12.x/billing for the latest updates

Environment Configuration

Required environment variables in .env:

STRIPE_KEY=pk_test_your_stripe_publishable_key
STRIPE_SECRET=sk_test_your_stripe_secret_key
STRIPE_WEBHOOK_SECRET=whsec_your_webhook_signing_secret
CASHIER_CURRENCY=usd

Important: Use test mode keys (pk_test_*, sk_test_*) during development and switch to live keys (pk_live_*, sk_live_*) for production.

Common Patterns

Complete Subscription Checkout Flow

// 1. Create checkout session
public function subscribe(Request $request)
{
    return $request->user()
        ->newSubscription('default', 'price_monthly')
        ->trialDays(14)
        ->allowPromotionCodes()
        ->checkout([
            'success_url' => route('checkout.success') . '?session_id={CHECKOUT_SESSION_ID}',
            'cancel_url' => route('checkout.cancel'),
        ]);
}

// 2. Handle success
public function success(Request $request)
{
    $sessionId = $request->get('session_id');

    if ($request->user()->subscribed('default')) {
        return redirect()->route('dashboard')
            ->with('success', 'Subscription activated!');
    }
}

Upgrade/Downgrade Pattern

// Upgrade to annual plan with prorated credit
public function upgrade(Request $request)
{
    $subscription = $request->user()->subscription('default');

    if ($subscription->active()) {
        $subscription->swap('price_yearly');
        return back()->with('success', 'Upgraded to annual plan!');
    }
}

Payment Method Update Flow

// Controller: Generate setup intent
public function paymentMethods(Request $request)
{
    return view('billing.payment-methods', [
        'intent' => $request->user()->createSetupIntent(),
        'paymentMethods' => $request->user()->paymentMethods(),
    ]);
}

// View: Stripe.js integration (Blade)
<form id="payment-form" method="POST" action="{{ route('payment-method.add') }}">
    @csrf
    <div id="card-element"></div>
    <button type="submit">Add Payment Method</button>
</form>

// Controller: Store payment method
public function addPaymentMethod(Request $request)
{
    $request->user()->addPaymentMethod($request->payment_method);
    return back()->with('success', 'Payment method added!');
}

Resources

Official Documentation

  • Laravel Cashier (Stripe): https://laravel.com/docs/12.x/billing
  • Stripe API Documentation: https://stripe.com/docs/api
  • Stripe Testing Guide: https://stripe.com/docs/testing

Testing

Use Stripe test card numbers for development:

  • Success: 4242 4242 4242 4242
  • Decline: 4000 0000 0000 0002
  • Requires authentication: 4000 0025 0000 3155

Always use test mode API keys during development and testing.

Notes

  • Cashier requires PHP 8.1+ and Laravel 10.0+
  • Always configure webhooks in production for reliable subscription management
  • Use Stripe test mode during development
  • The Billable trait can be added to any Eloquent model, not just User
  • Cashier handles most webhook events automatically
  • Consider using Stripe's billing portal for customer self-service
  • Reference files preserve structure and examples from official Laravel docs
  • Test subscription flows thoroughly before going to production

Updating

This skill is based on Laravel Cashier for Laravel 12.x. For the latest information, refer to the official documentation at https://laravel.com/docs/billing.

平台分布

trae

27.95%
按下载量换算35

Antigravity

24.45%
按下载量换算30

windsurf

15.95%
按下载量换算20

Claude Code

12.07%
按下载量换算15

Codex

8.12%
按下载量换算10

Gemini CLI

3.12%
按下载量换算4

安全审计

暂无安全审计结果可展示。

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills