lib/offsite_payments/integrations/world_pay.rb
# Read the custom params into a hash
Read the custom params into a hash
Read the custom params into a hash
def read_custom_params
          custom = {}
          params.each do |key, value|
            if /\A(M_|MC_|CM_)/ === key
              custom[key.gsub(/\A(M_|MC_|CM_)/, '').to_sym] = value
            end
          end
          custom
        end
def read_custom_params custom = { } params . each do | key , value | if / \A (M_|MC_|CM_) / === key custom [ key . gsub ( / \A (M_|MC_|CM_) / , '' ) . to_sym ] = value end end custom end
Read the custom params into a hash
Read the custom params into a hash