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.
Bitkassa.config.secret_api_key = "SECRET"
Bitkassa.config.merchant_id = "banketbakkerhenk"
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