Sha256: 9a15ba723d9d781e8f6fec49de0a80c0907d990b68e05e8ff83aa754c11b33cb
Contents?: true
Size: 692 Bytes
Versions: 6
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
6 entries across 6 versions & 1 rubygems