Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 939 Bytes

README.md

File metadata and controls

40 lines (26 loc) · 939 Bytes

Cardknox

A lightweight Ruby client for interacting with the Cardknox API, built using faraday. It provides an easy and minimal setup for handling payments and other operations via Cardknox.

CI

Usage

Installation

Add this line to your application's Gemfile:

gem 'cardknox'

Usage

api = Cardknox::API::Client.new('your_api_key') do |config|
  config.gateway_version = "5.0.0"
  config.software_name = "CardKnox Ruby client"
  config.software_version = Cardknox::VERSION
end

response = api.transaction("cc:Sale", {
  xCardNum: "4111111111111111",
  xExp: "1225",
  xAmount: "999"
})

Contributing

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

License

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