Sha256: e9787ac373d6d626a4f1b3c3b9d3e1aa44954f40ec3d946d682ae5d33bb39197
Contents?: true
Size: 692 Bytes
Versions: 1
Compression:
Stored size: 692 Bytes
Contents
# -*- encoding : utf-8 -*- require "rubykassa/engine" require 'rubykassa/client' require 'rubykassa/payment_interface' require 'rubykassa/xml_interface' require 'rubykassa/notification' module Rubykassa extend self def configure &block Rubykassa::Client.configure &block end %w(login first_password second_password mode http_method xml_http_method).map do |name| define_method name do Rubykassa::Client.configuration.send(name) end end def pay_url invoice_id, total, params, options = {} Rubykassa::PaymentInterface.new do self.total = total self.invoice_id = invoice_id self.params = params end.pay_url(options) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubykassa-0.1.0 | lib/rubykassa.rb |