berkes / bitkassa

Ruby interface to the Bitkassa API

Home Page:https://www.bitkassa.nl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Ruby interface to the Bitkassa API

https://www.bitkassa.nl

License:MIT License


Languages

Language:Ruby 100.0%