Skip to content

About

MockCard for Rails: Rack middleware that answers MockCard's production monitoring probes safely, credentials support and an install generator.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

MockCard for Rails: Rack middleware that answers MockCard's production monitoring probes safely, credentials support and an install generator.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages