Project

bitkassa

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby interface to the Bitkassa API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 5.8
~> 10.4
~> 1.22

Runtime

~> 2.4
 Project Readme

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