Skills Plugins MCP Prompt Model 博客 我的中心

stripe-integration

Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks. Use when integrating Stripe payments, building subscription systems, or implementing secure checkout flows.

DeepseekModel 官方收录技能 质量 优秀 · 90 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=wshobson-agents-plugins-payment-processing-skills-stripe-integration-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name stripe-integration description Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks. Use when integrating Stripe payments, building subscription systems, or implementing secure checkout flows. Stripe Integration Master Stripe payment processing integration for robust, PCI-compliant payment flows including checkout, subscriptions, webhooks, and refunds. When to Use This Skill Implementing payment processing in web/mobile applications Setting up subscription billing systems Handling one-time payments and recurring charges Processing refunds and disputes Managing customer payment methods Implementing SCA (Strong Customer Authentication) for European payments Building marketplace payment flows with Stripe Connect Core Concepts 1. Payment Flows Checkout Sessions Recommended for most integrations Supports all UI paths: Stripe-hosted checkout page Embedded checkout form Custom UI with Elements (Payment Element, Express Checkout Element) using ui_mode='custom' Provides built-in checkout capabilities (line items, discounts, tax, shipping, address collection, saved payment methods, and checkout lifecycle events) Lower integration and maintenance burden than Payment Intents Payment Intents (Bespoke control) You calculate the final amount with taxes, discounts, subscriptions, and currency conversion yourself. More complex implementation and long-term maintenance burden Requires Stripe.js for PCI compliance Setup Intents (Save Payment Methods) Collect payment method without charging Used for subscriptions and future payments Requires customer confirmation 2. Webhooks Critical Events: payment_intent.succeeded : Payment completed payment_intent.payment_failed : Payment failed customer.subscription.updated : Subscription changed customer.subscription.deleted : Subscription canceled charge.refunded : Refund processed invoice.payment_succeeded : Subscription payment successful 3. Subscriptions Components: Product : What you're selling Price : How much and how often Subscription : Customer's recurring payment Invoice : Generated for each billing cycle 4. Customer Management Create and manage customer records Store multiple payment methods Track customer metadata Manage billing details Quick Start import stripe stripe.api_key = "sk_test_..." # Create a checkout session session = stripe.checkout.Session.create( line_items=[{ 'price_data' : { 'currency' : 'usd' , 'product_data' : { 'name' : 'Premium Subscription' , }, 'unit_amount' : 2000 , # $20.00 'recurring' : { 'interval' : 'month' , }, }, 'quantity' : 1 , }], mode= 'subscription' , success_url= 'https://yourdomain.com/success?session_id={CHECKOUT_SESSION_ID}' , cancel_url= 'https://yourdomain.com/cancel' ) # Redirect user to session.url print (session.url) Detailed patterns and worked examples Detailed pattern documentation lives in references/details.md . Read that file when the navigation tier above is insufficient. Testing # Use test mode keys stripe.api_key = "sk_test_..." # Test card numbers TEST_CARDS = { 'success' : '4242424242424242' , 'declined' : '4000000000000002' , '3d_secure' : '4000002500003155' , 'insufficient_funds' : '4000000000009995' } def test_payment_flow (): """Test complete payment flow.""" # Create test customer customer = stripe.Customer.create( email= "test@example.com" ) # Create payment intent intent = stripe.PaymentIntent.create( amount= 1000 , automatic_payment_methods={ 'enabled' : True }, currency= 'usd' , customer=customer. id ) # Confirm with test card confirmed = stripe.PaymentIntent.confirm( intent. id , payment_method= 'pm_card_visa' # Test payment method ) assert confirmed.status == 'succeeded'
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

验证码 --

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。