lib/active_merchant/billing/gateways/plugnpay.rb in activemerchant-1.105.0 vs lib/active_merchant/billing/gateways/plugnpay.rb in activemerchant-1.106.0

- old
+ new

@@ -78,16 +78,16 @@ 'P98' => 'Missing merchant/publisher name', 'P99' => 'Currently Blank' } TRANSACTIONS = { - :authorization => 'auth', - :purchase => 'auth', - :capture => 'mark', - :void => 'void', - :refund => 'return', - :credit => 'newreturn' + authorization: 'auth', + purchase: 'auth', + capture: 'mark', + void: 'void', + refund: 'return', + credit: 'newreturn' } SUCCESS_CODES = ['pending', 'success'] FAILURE_CODES = ['badcard', 'fraud'] @@ -177,13 +177,13 @@ response = parse(ssl_post(self.live_url, post_data(action, post))) success = SUCCESS_CODES.include?(response[:finalstatus]) message = success ? 'Success' : message_from(response) Response.new(success, message, response, - :test => test?, - :authorization => response[:orderid], - :avs_result => { :code => response[:avs_code] }, - :cvv_result => response[:cvvresp] + test: test?, + authorization: response[:orderid], + avs_result: { code: response[:avs_code] }, + cvv_result: response[:cvvresp] ) end def parse(body) body = CGI.unescape(body)