lib/active_merchant/billing/gateways/net_registry.rb in activemerchant-1.105.0 vs lib/active_merchant/billing/gateways/net_registry.rb in activemerchant-1.106.0
- old
+ new
@@ -35,15 +35,15 @@
self.supported_cardtypes = [:visa, :master, :diners_club, :american_express, :jcb]
self.display_name = 'NetRegistry'
self.homepage_url = 'http://www.netregistry.com.au'
TRANSACTIONS = {
- :authorization => 'preauth',
- :purchase => 'purchase',
- :capture => 'completion',
- :status => 'status',
- :refund => 'refund'
+ authorization: 'preauth',
+ purchase: 'purchase',
+ capture: 'completion',
+ status: 'status',
+ refund: 'refund'
}
# Create a new NetRegistry gateway.
#
# Options :login and :password must be given.
@@ -143,10 +143,10 @@
def commit(action, params)
# get gateway response
response = parse(ssl_post(self.live_url, post_data(action, params)))
Response.new(response['status'] == 'approved', message_from(response), response,
- :authorization => authorization_from(response, action)
+ authorization: authorization_from(response, action)
)
end
def post_data(action, params)
params['COMMAND'] = TRANSACTIONS[action]