lib/active_merchant/billing/gateways/paystation.rb in activemerchant-1.86.0 vs lib/active_merchant/billing/gateways/paystation.rb in activemerchant-1.87.0

- old
+ new

@@ -177,10 +177,10 @@ data = ssl_post(self.live_url, "#{pstn_prefix_params}&paystation=_empty") response = parse(data) message = message_from(response) PaystationResponse.new(success?(response), message, response, - :test => (response[:tm] && response[:tm].downcase == 't'), + :test => (response[:tm]&.casecmp('t')&.zero?), :authorization => response[:paystation_transaction_id] ) end def success?(response)