stripe-subscription-tester

Test Stripe subscription lifecycle webhooks and lock behavior in Rails.

1|1|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/przbadu/skills-factory --skill stripe-subscription-tester
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stripe-subscription-tester
Source: https://github.com/przbadu/skills-factory/tree/main/skills/stripe-subscription-tester
Command: npx skills add https://github.com/przbadu/skills-factory --skill stripe-subscription-tester

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill removes the guesswork from testing Stripe subscription lifecycle behavior in the local ProcurementExpress app, helping you verify how billing events affect company access and payment state.

Core Features & Use Cases

  • Lifecycle Simulation: Recreates Stripe scenarios such as incomplete subscriptions, payment failures, past due states, unpaid retries, and successful recovery.
  • Webhook Validation: Checks the app's webhook handlers and confirms whether subscription events correctly lock or unlock a company.
  • State Inspection: Verifies company, customer, subscription, and payment status in the Rails app between each step so you can catch regressions early.
  • Use Case: A developer needs to confirm that a declined card locks a customer account, then a later successful payment restores access without breaking related child-company behavior.

Quick Start

Use stripe-subscription-tester to walk me through a Stripe subscription test for this company ID and plan, pausing after each step so I can verify the app and database state.

Frequently Asked Questions about stripe-subscription-tester

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test Stripe webhook subscription lifecycle events in a local Rails environment?

You test Stripe subscription lifecycle events locally by using the Stripe CLI to trigger webhooks for incomplete, failed, past_due, and unpaid states, then verifying the Rails database to confirm the app correctly locks or unlocks company access.

What is the best way to verify a failed Stripe payment locks a company account in my web app?

The best way to verify a failed Stripe payment locks a company account is to simulate payment failures and past_due states via Stripe CLI webhooks, then inspect the company and subscription status in your Rails database to ensure the lock behavior triggers correctly.

How do I simulate a successful payment recovery to unlock a company after a Stripe subscription becomes past due?

You simulate a successful payment recovery by triggering a successful payment event through the Stripe CLI after a past_due or unpaid state, then checking the Rails app to confirm the webhook handler restores access and unlocks the company.

Does this approach to Stripe subscription testing work with parent-child company lock flows?

Yes, this approach to Stripe subscription testing works with parent-child company lock flows by verifying webhook-driven state changes across related company records in the Rails app, ensuring child-company behavior remains intact when a parent company is locked or unlocked.

What do I need to set up before testing Stripe subscription billing flows locally?

Before testing Stripe subscription billing flows locally, you need the Stripe CLI configured to forward webhooks to your local Rails server, and access to the Rails database to verify company, customer, subscription, and payment states between each lifecycle step.

Why does my Stripe webhook handler not lock a customer account when a subscription payment fails?

Your Stripe webhook handler may not lock a customer account because the subscription state transition or event payload handling is incorrect; this Skill helps isolate the issue by testing incomplete, failed, and unpaid webhook events and verifying the resulting Rails database lock state.