Ruby interface to the Bitkassa API
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.gitignore
.ruby-version
.travis.yml
Gemfile
Gemfile.lock
LICENCE.txt
README.md
Rakefile
bitkassa.gemspec

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