Skip to content

Ruby client for easy integration with cardknow API.

License

Notifications You must be signed in to change notification settings

algonauti/cardknox

Repository files navigation

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.

About

Ruby client for easy integration with cardknow API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published