lib/active_merchant/billing/gateways/paystation.rb in activemerchant-1.133.0 vs lib/active_merchant/billing/gateways/paystation.rb in activemerchant-1.137.0
- old
+ new
@@ -175,12 +175,16 @@
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]&.casecmp('t')&.zero?),
- authorization: response[:paystation_transaction_id])
+ PaystationResponse.new(
+ success?(response),
+ message,
+ response,
+ test: response[:tm]&.casecmp('t')&.zero?,
+ authorization: response[:paystation_transaction_id]
+ )
end
def success?(response)
(response[:ec] == SUCCESSFUL_RESPONSE_CODE) || (response[:ec] == SUCCESSFUL_FUTURE_PAYMENT)
end