lib/active_merchant/billing/gateways/verifi.rb in activemerchant-1.26.0 vs lib/active_merchant/billing/gateways/verifi.rb in activemerchant-1.27.0
- old
+ new
@@ -7,11 +7,11 @@
# Fields that will be sent even if they are blank
self.required_fields = [ :amount, :type, :ccnumber, :ccexp, :firstname, :lastname,
:company, :address1, :address2, :city, :state, :zip, :country, :phone ]
end
- URL = 'https://secure.verifi.com/gw/api/transact.php'
+ self.live_url = self.test_url = 'https://secure.verifi.com/gw/api/transact.php'
RESPONSE_CODE_MESSAGES = {
"100" => "Transaction was Approved",
"200" => "Transaction was Declined by Processor",
"201" => "Do Not Honor",
@@ -198,10 +198,10 @@
end
def commit(trx_type, money, post)
post[:amount] = amount(money)
- response = parse( ssl_post(URL, post_data(trx_type, post)) )
+ response = parse( ssl_post(self.live_url, post_data(trx_type, post)) )
Response.new(response[:response].to_i == SUCCESS, message_from(response), response,
:test => test?,
:authorization => response[:transactionid],
:avs_result => { :code => response[:avsresponse] },