Ruby interface to the Bitkassa API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Bèr Kessels ba51277d2d Merge branch 'feature/integration' into develop 6 years ago
lib Remove a dead piece of code 6 years ago
test Adding a test to spec the #attributes on Request. 6 years ago
.gitignore Ignore built Gems. 6 years ago
.ruby-version Consolidate ruby version for travis and other testers 6 years ago
.travis.yml Pin Ruby version to >= 2.0.0 6 years ago
Gemfile Add code climate test-coverage reporting. 6 years ago
Gemfile.lock Add al files under lib to gemspec 6 years ago
LICENCE.txt Add MIT licence 6 years ago
README.md Add usage summary documentation to README 6 years ago
Rakefile Add Rake task to run tests 6 years ago
bitkassa.gemspec Add al files under lib to gemspec 6 years ago

README.md

Ruby interface to the Bitkassa API

Code Climate Test Coverage Build Status

API documentation

API documentation for this gem can be found on rubydoc.info

Documentation on the actual API can be found at bitkassa. This is in Dutch.

Usage summary

Setup Config.

Bitkassa.config.secret_api_key = "SECRET"
Bitkassa.config.merchant_id = "banketbakkerhenk"

Ininitialize, validate and perform a request

attributes = {
  currency: "EUR",
  amount: 1337,
  description: "Description",
  return_url: "http://example.com/return",
  update_url: "http://example.com/update",
  meta_info: "ORDERID42"
}

bitkassa = Bitkassa::PaymentRequest.new(attributes) #=> PaymentRequest
bitkassa.can_perform? #=> true
response = bitkassa.perform #=> PaymentResponse
response.payment_id #=> hAck1337
response.payment_url #=> https://www.bitkass.nl/tx/hAck1337