Class: ActiveMerchant::Billing::Integrations::Webpay::Helper

Inherits:
Helper
  • Object
show all
Defined in:
lib/active_merchant/billing/integrations/webpay/helper.rb

Instance Method Summary collapse

Constructor Details

#initialize(order, account, options = {}) ⇒ Helper

Returns a new instance of Helper.



8
9
10
11
12
13
# File 'lib/active_merchant/billing/integrations/webpay/helper.rb', line 8

def initialize(order, , options={})
  super
  # Webpay expects the amount in "cents"
  self.amount = (options[:amount]*100).to_i
  add_field('TBK_TIPO_TRANSACCION', 'TR_NORMAL')
end