lib/active_merchant/billing/gateways/linkpoint.rb in activemerchant-1.83.0 vs lib/active_merchant/billing/gateways/linkpoint.rb in activemerchant-1.84.0
- old
+ new
@@ -1,10 +1,9 @@
require 'rexml/document'
module ActiveMerchant #:nodoc:
module Billing #:nodoc:
-
# Initialization Options
# :login Your store number
# :pem The text of your linkpoint PEM file. Note
# this is not the path to file, but its
# contents. If you are only using one PEM
@@ -257,10 +256,11 @@
gsub(%r((<cardnumber>)\d+(</cardnumber>))i, '\1[FILTERED]\2').
gsub(%r((<cvmvalue>)\d+(</cvmvalue>))i, '\1[FILTERED]\2')
end
private
+
# Commit the transaction by posting the XML file to the LinkPoint server
def commit(money, creditcard, options = {})
response = parse(ssl_post(test? ? self.test_url : self.live_url, post_data(money, creditcard, options)))
Response.new(successful?(response), response[:message], response,
@@ -322,11 +322,10 @@
end
# Set up the parameters hash just once so we don't have to do it
# for every action.
def parameters(money, creditcard, options = {})
-
params = {
:payment => {
:subtotal => amount(options[:subtotal]),
:tax => amount(options[:tax]),
:vattax => amount(options[:vattax]),
@@ -416,10 +415,9 @@
return params
end
def parse(xml)
-
# For reference, a typical response...
# <r_csp></r_csp>
# <r_time></r_time>
# <r_ref></r_ref>
# <r_error></r_error>