Module: ActiveMerchant::Billing::Integrations::Pizza

Defined in:
lib/active_merchant/billing/integrations/pizza/helper.rb,
lib/active_merchant/billing/integrations/pizza.rb,
lib/active_merchant/billing/integrations/pizza/notification.rb

Overview

:nodoc:

Defined Under Namespace

Modules: Common, Helper, Notification

Class Method Summary collapse

Class Method Details

.get_class(vk_snd_id) ⇒ Object

Define sender id (VK_SND_ID) to bank module mappings.



9
10
11
12
13
14
15
16
# File 'lib/active_merchant/billing/integrations/pizza.rb', line 9

def self.get_class(vk_snd_id)
  case vk_snd_id
    when 'EYP' then SebEst
    when 'SAMPOPANK' then SampoEst
    when 'HP' then SwedbankEst
    else raise(ArgumentError, "unknown sender id: #{vk_snd_id}")
  end
end