This is a fake payment gateway. You can set the fail/succeed rate to determine what you get. At 50% you never know what you are gonna get with Gary.
Add this line to your application's Gemfile:
gem 'gary_busey', github: 'dvictory/gary_payments'
And then execute:
$ bundle
gateway = GaryBusey::Gateway.new(percent_decline: 50)
gateway.sale(100, {track2: '4111-1111-1111-1111')
Bug reports and pull requests are welcome on GitHub at https://github.com/dvictory/gary_payments.
The gem is available as open source under the terms of the MIT License.