0.0
The project is in a healthy, maintained state
Rails integration for MockCard: Rack middleware that answers MockCard's production monitoring probes safely, Rails credentials support and a rails g mockcard:install generator. Builds on the mockcard gem.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

~> 2.0
>= 7.1
 Project Readme

mockcard-rails

MockCard for Rails: guard your payment webhook routes against MockCard's production probes, with secrets from Rails credentials. Chaos runs and test helpers come from the mockcard gem.

Author: Arixeva Labs hello@arixevalabs.com · mockcard.io · MIT

gem "mockcard-rails"
bin/rails generate mockcard:install
bin/rails credentials:edit   # mockcard: { api_key: "mc_…", probe_secret: "mcp_…" }

The initializer lists the webhook paths to guard (config.mockcard.webhook_paths). Verified MockCard probes to those paths get 200 + MockCard-Probe-Ack: skipped before Rails routes them; everything else, including forged probes, reaches your controllers as usual. Works with the Pay gem's webhook route.

For chaos runs in your test suite, see the mockcard gem.