Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/algonauti/cardknox
Ruby client for easy integration with cardknow API.
https://github.com/algonauti/cardknox
Last synced: about 2 months ago
JSON representation
Ruby client for easy integration with cardknow API.
- Host: GitHub
- URL: https://github.com/algonauti/cardknox
- Owner: algonauti
- License: mit
- Created: 2024-09-12T09:02:33.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-16T15:35:39.000Z (4 months ago)
- Last Synced: 2024-09-17T12:15:07.244Z (4 months ago)
- Language: Ruby
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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](https://github.com/algonauti/cardknox/actions/workflows/ci.yml/badge.svg)
## Usage
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'cardknox'
```## Usage
```ruby
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
endresponse = 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](https://opensource.org/licenses/MIT).