Sha256: f77887c1a15edc682ba241bc2f7aa8e0af46b86e7075dfae5b8ba3a5cf0ed2de
Contents?: true
Size: 930 Bytes
Versions: 1
Compression:
Stored size: 930 Bytes
Contents
module ActiveMerchant module Billing class PaywareConnectGateway::XMLBuilder def initialize(merged_options) @client_id = merged_options[:client_id] @merchant_key = merged_options[:merchant_key] @login = merged_options[:login] @password = merged_options[:password] @options = merged_options end def build raise NotImplemented end private attr_reader :options, :client_id, :merchant_key, :login, :password def build_credit_request xml = Builder::XmlMarkup.new xml.TRANSACTION do xml.FUNCTION_TYPE "PAYMENT" xml.PAYMENT_TYPE "CREDIT" xml.CLIENT_ID(client_id) xml.MERCHANTKEY(merchant_key) xml.USER_ID(login) xml.USER_PW(password) yield xml end xml.target! end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workarea-payware_connect-2.1.2 | lib/active_merchant/billing/payware_connect_gateway/xml_builder.rb |