# File lib/active_merchant/billing/integrations/gestpay/common.rb, line 20 def parse_response(response) case response when /#cryptstring#(.*)#\/cryptstring#/, /#decryptstring#(.*)#\/decryptstring#/ $1 when /#error#(.*)#\/error#/ raise StandardError, "An error occurred retrieving the encrypted string from GestPay: #{$1}" else raise StandardError, "No response was received by GestPay" end end