/gary_payments

Mock Payment Gateway

Primary LanguageRubyMIT LicenseMIT

Gary Busey

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.

Gary

Installation

Add this line to your application's Gemfile:

gem 'gary_busey', github: 'dvictory/gary_payments'

And then execute:

$ bundle

Usage

gateway = GaryBusey::Gateway.new(percent_decline: 50)
gateway.sale(100, {track2: '4111-1111-1111-1111')

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/dvictory/gary_payments.

License

The gem is available as open source under the terms of the MIT License.