{"data":{"slug":"github-claude-office-skills-skills-stripe-payments-f19ac083fece","title":"Stripe Payments Automation","summary":"Automate payment processing, subscription management, invoicing, and financial reporting with Stripe. This tool provides payment confirmations, subscription status updates, financial reports, and webhook event handling.","url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-stripe-payments-f19ac083fece","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-claude-office-skills-skills-stripe-payments-f19ac083fece","markdown_url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-stripe-payments-f19ac083fece.md","download_url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-stripe-payments-f19ac083fece\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure that the Stripe API keys and environment are configured before initiating payment processing. The first deliverable is a payment confirmation in JSON format after a successful transaction.","instructions":"---\nname: Stripe Payments\ndescription: Automate Stripe payment processing, subscription management, invoicing, and financial reporting\nversion: 1.0.0\nauthor: Claude Office Skills\ncategory: payments\ntags:\n  - stripe\n  - payments\n  - subscriptions\n  - billing\n  - fintech\ndepartment: finance\nmodels:\n  - claude-3-opus\n  - claude-3-sonnet\n  - gpt-4\nmcp:\n  server: payments-mcp\n  tools:\n    - stripe_charges\n    - stripe_customers\n    - stripe_subscriptions\n    - stripe_invoices\ncapabilities:\n  - Payment processing\n  - Subscription lifecycle\n  - Invoice management\n  - Revenue analytics\ninput:\n  - Payment details\n  - Customer data\n  - Subscription plans\n  - Invoice configurations\noutput:\n  - Payment confirmations\n  - Subscription status\n  - Financial reports\n  - Webhook events\nlanguages:\n  - en\nrelated_skills:\n  - subscription-management\n  - invoice-automation\n  - saas-metrics\n---\n\n# Stripe Payments\n\nComprehensive skill for automating Stripe payment processing and subscription management.\n\n## Core Workflows\n\n### 1. Payment Flow\n\n```\nSTRIPE PAYMENT FLOW:\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502    Customer     \u2502\n\u2502  Payment Intent \u2502\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n         \u25bc\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502    Checkout     \u2502\n\u2502  - Card Input   \u2502\n\u2502  - Validation   \u2502\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n         \u25bc\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502   Processing    \u2502\n\u2502  - Auth         \u2502\n\u2502  - Capture      \u2502\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n         \u25bc\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502   Confirmation  \u2502\n\u2502  - Receipt      \u2502\n\u2502  - Webhook      \u2502\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n```\n\n### 2. Webhook Events\n\n```yaml\nwebhook_handlers:\n  payment_intent.succeeded:\n    actions:\n      - fulfill_order\n      - send_receipt\n      - update_crm\n      \n  payment_intent.payment_failed:\n    actions:\n      - notify_customer\n      - retry_payment\n      - log_failure\n      \n  customer.subscription.created:\n    actions:\n      - provision_access\n      - send_welcome_email\n      - update_metrics\n      \n  customer.subscription.deleted:\n    actions:\n      - revoke_access\n      - send_offboarding_email\n      - trigger_retention_flow\n      \n  invoice.payment_failed:\n    actions:\n      - send_dunning_email\n      - update_subscription_status\n      - create_support_ticket\n```\n\n## Subscription Management\n\n### Plan Configuration\n\n```yaml\nsubscription_plans:\n  - name: Starter\n    id: plan_starter\n    price: 29\n    currency: usd\n    interval: month\n    features:\n      - \"5 users\"\n      - \"10GB storage\"\n      - \"Email support\"\n    metadata:\n      tier: 1\n      \n  - name: Growth\n    id: plan_growth\n    price: 79\n    currency: usd\n    interval: month\n    features:\n      - \"25 users\"\n      - \"100GB storage\"\n      - \"Priority support\"\n    metadata:\n      tier: 2\n      \n  - name: Enterprise\n    id: plan_enterprise\n    price: custom\n    interval: month\n    features:\n      - \"Unlimited users\"\n      - \"Unlimited storage\"\n      - \"24\/7 support\"\n      - \"Custom integrations\"\n    metadata:\n      tier: 3\n```\n\n### Subscription Lifecycle\n\n```yaml\nsubscription_automation:\n  on_create:\n    - provision_service\n    - send_welcome_email\n    - create_customer_record\n    - schedule_onboarding_call\n    \n  on_upgrade:\n    - adjust_limits\n    - prorate_billing\n    - send_upgrade_confirmation\n    - unlock_features\n    \n  on_downgrade:\n    - schedule_limit_reduction\n    - send_downgrade_notice\n    - offer_retention_discount\n    \n  on_cancel:\n    - schedule_access_revocation\n    - send_exit_survey\n    - trigger_win_back_campaign\n    \n  on_renewal:\n    - send_renewal_receipt\n    - update_usage_quotas\n    - check_plan_eligibility\n```\n\n## Invoice Management\n\n### Invoice Automation\n\n```yaml\ninvoice_settings:\n  defaults:\n    auto_advance: true\n    collection_method: charge_automatically\n    days_until_due: 30\n    \n  templates:\n    header:\n      company_name: \"{{company}}\"\n      logo: \"{{logo_url}}\"\n      \n    footer:\n      payment_terms: \"Net 30\"\n      thank_you: \"Thank you for your business!\"\n      \n  automation:\n    - event: invoice.created\n      actions:\n        - add_line_items\n        - apply_discounts\n        - calculate_tax\n        \n    - event: invoice.finalized\n      actions:\n        - send_to_customer\n        - log_to_accounting\n        \n    - event: invoice.paid\n      actions:\n        - send_receipt\n        - update_revenue\n```\n\n### Dunning Management\n\n```yaml\ndunning_sequence:\n  - day: 0\n    event: payment_failed\n    actions:\n      - retry_payment\n      - email_template: payment_failed_1\n      \n  - day: 3\n    actions:\n      - retry_payment\n      - email_template: payment_failed_2\n      - sms_reminder\n      \n  - day: 7\n    actions:\n      - retry_payment\n      - email_template: payment_failed_3\n      - mark_at_risk\n      \n  - day: 14\n    actions:\n      - final_retry\n      - email_template: final_notice\n      - pause_subscription\n      \n  - day: 30\n    actions:\n      - cancel_subscription\n      - email_template: cancellation\n      - revoke_access\n```\n\n## Checkout Integration\n\n### Checkout Session\n\n```javascript\n\/\/ Create Checkout Session\nconst session = await stripe.checkout.sessions.create({\n  mode: 'subscription',\n  payment_method_types: ['card'],\n  line_items: [{\n    price: 'price_xxx',\n    quantity: 1,\n  }],\n  success_url: 'https:\/\/example.com\/success?session_id={CHECKOUT_SESSION_ID}',\n  cancel_url: 'https:\/\/example.com\/cancel',\n  customer_email: 'customer@example.com',\n  subscription_data: {\n    trial_period_days: 14,\n    metadata: {\n      plan_tier: 'growth'\n    }\n  },\n  allow_promotion_codes: true,\n});\n```\n\n### Payment Elements\n\n```javascript\n\/\/ Create Payment Intent\nconst paymentIntent = await stripe.paymentIntents.create({\n  amount: 2000,\n  currency: 'usd',\n  customer: 'cus_xxx',\n  payment_method_types: ['card'],\n  metadata: {\n    order_id: '12345'\n  }\n});\n\n\/\/ Confirm Payment\nconst result = await stripe.confirmCardPayment(\n  paymentIntent.client_secret,\n  {\n    payment_method: {\n      card: cardElement,\n      billing_details: {\n        name: 'John Doe'\n      }\n    }\n  }\n);\n```\n\n## Revenue Analytics\n\n### Dashboard Metrics\n\n```\nSTRIPE REVENUE DASHBOARD\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n\nMRR:          $125,450 (+8.5%)\nARR:          $1,505,400\nNew MRR:      $12,340\nChurned MRR:  $4,120\nNet MRR:      +$8,220\n\nSUBSCRIPTION BREAKDOWN:\nActive:       892\nTrialing:     156\nPast Due:     23\nCancelled:    45 (this month)\n\nBY PLAN:\nStarter    \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 45%  \u2502 $28,500\nGrowth     \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2591 38%  \u2502 $47,600\nEnterprise \u2588\u2588\u2588\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 17%  \u2502 $49,350\n\nCHURN ANALYSIS:\nMonthly Churn Rate:  4.2%\nMRR Churn:          $4,120\nReasons:\n- Price             \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2591\u2591\u2591\u2591 35%\n- Competitor        \u2588\u2588\u2588\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2591 25%\n- No longer needed  \u2588\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 20%\n- Support issues    \u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 12%\n- Other             \u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 8%\n```\n\n### Cohort Analysis\n\n```yaml\ncohort_metrics:\n  - cohort: \"2024-01\"\n    customers: 150\n    month_1_retention: 95%\n    month_3_retention: 82%\n    month_6_retention: 71%\n    ltv_estimate: $890\n    \n  - cohort: \"2024-02\"\n    customers: 180\n    month_1_retention: 93%\n    month_3_retention: 79%\n    ltv_estimate: $820\n```\n\n## Fraud Prevention\n\n### Risk Rules\n\n```yaml\nradar_rules:\n  - name: block_high_risk\n    condition: \"risk_level = 'highest'\"\n    action: block\n    \n  - name: review_elevated_risk\n    condition: \"risk_level = 'elevated'\"\n    action: review\n    \n  - name: block_disposable_email\n    condition: \"email_domain in @disposable_domains\"\n    action: block\n    \n  - name: velocity_check\n    condition: \"card_country != ip_country\"\n    action: review\n    \n  - name: amount_threshold\n    condition: \"amount > 100000\"  # $1000\n    action: review\n```\n\n## Customer Portal\n\n### Portal Configuration\n\n```yaml\ncustomer_portal:\n  features:\n    subscription_update:\n      enabled: true\n      products:\n        - product_starter\n        - product_growth\n        - product_enterprise\n      proration_behavior: create_prorations\n      \n    subscription_cancel:\n      enabled: true\n      mode: at_period_end\n      cancellation_reason:\n        enabled: true\n        options:\n          - \"Too expensive\"\n          - \"Missing features\"\n          - \"Switched to competitor\"\n          - \"No longer needed\"\n          - \"Other\"\n          \n    payment_method_update:\n      enabled: true\n      \n    invoice_history:\n      enabled: true\n      \n  branding:\n    colors:\n      primary: \"#5469d4\"\n    icon: \"{{company_icon}}\"\n```\n\n## Reporting Automation\n\n### Scheduled Reports\n\n```yaml\nreports:\n  - name: daily_revenue\n    schedule: \"0 9 * * *\"\n    metrics:\n      - gross_volume\n      - net_volume\n      - new_customers\n      - failed_payments\n    destination: slack_finance\n    \n  - name: weekly_mrr\n    schedule: \"0 9 * * 1\"\n    metrics:\n      - mrr\n      - arr\n      - churn_rate\n      - expansion_revenue\n    destination: email_leadership\n    \n  - name: monthly_reconciliation\n    schedule: \"0 9 1 * *\"\n    metrics:\n      - total_revenue\n      - fees\n      - refunds\n      - payouts\n    destination: accounting_system\n```\n\n## API Examples\n\n### Common Operations\n\n```javascript\n\/\/ Create Customer\nconst customer = await stripe.customers.create({\n  email: 'customer@example.com',\n  name: 'John Doe',\n  metadata: {\n    user_id: '12345'\n  }\n});\n\n\/\/ Create Subscription\nconst subscription = await stripe.subscriptions.create({\n  customer: customer.id,\n  items: [{ price: 'price_xxx' }],\n  trial_period_days: 14,\n  payment_behavior: 'default_incomplete',\n  expand: ['latest_invoice.payment_intent']\n});\n\n\/\/ Update Subscription\nawait stripe.subscriptions.update(subscription.id, {\n  items: [{\n    id: subscription.items.data[0].id,\n    price: 'price_new_xxx'\n  }],\n  proration_behavior: 'create_prorations'\n});\n\n\/\/ Issue Refund\nconst refund = await stripe.refunds.create({\n  payment_intent: 'pi_xxx',\n  amount: 1000  \/\/ Partial refund\n});\n```\n\n## Best Practices\n\n1. **Use Webhooks**: Don't rely on redirect alone\n2. **Idempotency Keys**: Prevent duplicate charges\n3. **Error Handling**: Graceful failure recovery\n4. **PCI Compliance**: Use Stripe Elements\n5. **Test Mode**: Validate before production\n6. **Monitor Disputes**: Respond promptly\n7. **Dunning Strategy**: Recover failed payments\n8. **Revenue Recognition**: Track MRR properly\n","use_cases":["Process payments and manage subscriptions seamlessly","Generate financial reports and track revenue","Handle webhook events for real-time updates","Automate invoice creation and dunning management"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/claude-office-skills\/skills\/blob\/9c4c7d5cd2813a8936bf2c9fdb174ea883b85a11\/stripe-payments\/SKILL.md","source_commit":"9c4c7d5cd2813a8936bf2c9fdb174ea883b85a11","license":null,"version":"1.0.0","listing_approved_at":"2026-11-22","created_at":"2026-11-21T15:16:30.000000Z","updated_at":"2026-11-22T11:18:09.000000Z","seo_title":"Stripe Payments Automation Tool","seo_description":"Automate Stripe payments, subscriptions, and invoicing with this powerful tool for finance teams.","seo_keywords":["Stripe payment automation","Subscription management tool","Stripe invoicing system","Payment processing automation","Stripe webhook handling"]}}