{"repo":"neilberkman/paper_tiger","free":true,"listed":false,"github":"https://github.com/neilberkman/paper_tiger","clone":"git clone https://github.com/neilberkman/paper_tiger.git","description":"A stateful mock Stripe server for testing. Run it as a container with any Stripe SDK, or in-process in Elixir.","language":"Elixir","stars":12,"topics":["docker","elixir","mock-server","payments","stripe","stripe-api","test-automation","testing"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"PaperTiger A stateful mock Stripe server for testing. Run one container per test, per suite, or per CI job. Nothing is shared between them. Any Stripe SDK works by pointing its API base at the container. On Elixir, add {:paper tiger, \" 1.0\"} instead and skip the container. It runs in the same BEAM, with a separate namespace per test. Full setup for both paths is under Installation. How this compares PaperTiger stripe-mock Stripe sandboxes VCR cassettes localstripe --- --- --- --- --- --- Stateful yes no, 404s on resources it just created yes no, replays a recording yes Isolated environments unlimited resets on process restart 5 sandboxes per account one cassette per scenario one in-memory store Time travel unlimited no test clocks: 3 customers, 3 subscriptions, 10 quotes each no no Signed webhooks yes, delivered and retried fires hardcoded payloads yes no partial Rate limits none none 25 ops/sec none none Any Stripe SDK yes yes yes per-language libraries yes Runs offline yes yes no yes yes License MIT MIT proprietary Hippocratic 2.1 GPL-3.0 Stripe's limits above link to Stripe's docs. Rationale Testing payment processing requires simulating complex Stripe workflows: subscription billing cycles, invoice finalization, webhook delivery, idempotency handling. Using real Stripe test accounts introduces external dependencies, network latency, rate limits, and non-deterministic test data. Stubbing individual Stripe API calls leads to brittle tests that break when Stripe's API evolve","default_branch":null,"files":null,"tree":[],"storefront":"/r/neilberkman","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/neilberkman/paper_tiger/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}