lib/sisow/payment.rb in sisow-1.7 vs lib/sisow/payment.rb in sisow-2.0

- old
+ new

@@ -1,9 +1,11 @@ module Sisow class Payment - attr_accessor :purchase_id, + attr_accessor :merchant_id, + :merchant_key, + :purchase_id, :issuer_id, :description, :amount, :entrance_code, :return_url, @@ -46,10 +48,13 @@ def response @raw_response ||= request.perform end def request - @request ||= Sisow::Api::TransactionRequest.new(self) + @request ||= Sisow::Api::TransactionRequest.new(self).tap do |r| + r.merchant_id = merchant_id if merchant_id + r.merchant_key = merchant_key if merchant_key + end end end end