SuperAPI AI 工具集

payment-failure-audit

数据与分析

查看项目

更新于 10-15 16:51

技能介绍

用途:审计 Stripe 支付失败情况,涵盖被拒付款(declined charges)、PaymentIntent 失败、发票失败、拒付代码(decline codes)与失败率分析。当用户询问“有多少支付……”一类失败统计问题时使用。

前置条件:需通过 OAuth 或受限密钥连接 Stripe MCP,文档见 https://docs.stripe.com/mcp。任何调用前先用 GetMcpTools 指定 server: "user-Stripe"(或 plugin-stripe-stripe)。列表/检索优先走 stripe_api_search → stripe_api_details → stripe_api_read。始终分页:limit: 100,用 has_more 配合 starting_after 翻页。金额默认以分为单位(另有说明除外)。绝不在输出中暴露密钥。

工作流:

  1. 近期失败付款——GetCharges 加筛选,或用 search_stripe_resources: charges:status:"failed"(如可则分页)。
  2. 失败的 PaymentIntent——GetPaymentIntents,状态为 requires_payment_method 或 failed。
  3. 未结发票——GetInvoices,status: open 且有 subscription。 按以下维度分组失败:outcome.reason / 拒付代码、card.funding、card.country、钱包支付还是直连卡。

常见拒付原因与建议修复:insufficient_funds(借记余额——催款邮件);card_declined(通用——重试并更新支付方式);expired_card(卡片到期邮件);authentication_required(在设置时启用 3DS);Radar block(检查 Radar 规则)。

输出模板:支付失败([period]);总失败数 [N] | $[amount];失败率 [X]% of attempts;按原因分组表 | Reason | Count | % |;按卡资金类型分组表 | funding | Count |;首要建议列表。若出现阻断或最高风险等级,链接到 radar-fraud-rules。

限制:具体收费、价格与平台信息暂未提供;必须依赖 Stripe MCP 连接与相应读写权限。