Class: ActiveMerchant::Billing::Integrations::Ogone::Helper

Inherits:
Helper
  • Object
show all
Defined in:
lib/active_merchant_ogone/helper.rb

Instance Method Summary collapse

Instance Method Details

#customer(mapping = {}) ⇒ Object



29
30
31
32
33
# File 'lib/active_merchant_ogone/helper.rb', line 29

def customer(mapping = {})
  add_field('ownertelno', mapping[:phone])
  add_field('EMAIL', mapping[:email])
  add_field('CN', "#{mapping[:first_name]} #{mapping[:last_name]}")
end

#form_fieldsObject

return the fields



36
37
38
39
# File 'lib/active_merchant_ogone/helper.rb', line 36

def form_fields
  add_field('SHASign', outbound_message_signature)
  super
end