Method: Inpay::Config.keys_for

Defined in:
lib/inpay/config.rb

.keys_for(action) ⇒ Object

fields



38
39
40
41
42
43
44
45
# File 'lib/inpay/config.rb', line 38

def self.keys_for action
  case action.to_sym
  when :create_invoice
    %w(merchant_id order_id amount currency order_text flow_layout secret_key)
  when :postback
    %w(order_id invoice_reference invoice_amount invoice_currency invoice_created_at invoice_status secret_key)
  end
end