lib/active_merchant/billing/gateways/pay_secure.rb in activemerchant-1.105.0 vs lib/active_merchant/billing/gateways/pay_secure.rb in activemerchant-1.106.0
- old
+ new
@@ -6,14 +6,14 @@
self.money_format = :cents
# Currently Authorization and Capture is not implemented because
# capturing requires the original credit card information
TRANSACTIONS = {
- :purchase => 'PURCHASE',
- :authorization => 'AUTHORISE',
- :capture => 'ADVICE',
- :credit => 'REFUND'
+ purchase: 'PURCHASE',
+ authorization: 'AUTHORISE',
+ capture: 'ADVICE',
+ credit: 'REFUND'
}
SUCCESS = 'Accepted'
SUCCESS_MESSAGE = 'The transaction was approved'
@@ -67,11 +67,11 @@
def commit(action, money, parameters)
response = parse(ssl_post(self.live_url, post_data(action, parameters)))
Response.new(successful?(response), message_from(response), response,
- :test => test_response?(response),
- :authorization => authorization_from(response)
+ test: test_response?(response),
+ authorization: authorization_from(response)
)
end
def successful?(response)
response[:status] == SUCCESS