1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-02 13:24:20 +01:00
fab-manager/app/exceptions/payzen_error.rb

10 lines
223 B
Ruby
Raw Normal View History

2021-04-13 17:16:05 +02:00
# frozen_string_literal: true
# Raised when an an error occurred with the PayZen payment gateway
class PayzenError < PaymentGatewayError
def details
JSON.parse(message.gsub('=>', ':').gsub('nil', 'null'))
end
2021-04-13 17:16:05 +02:00
end