Class: ActiveMerchant::Billing::Integrations::Webpay::Helper
- Inherits:
-
Helper
- Object
- Helper
- ActiveMerchant::Billing::Integrations::Webpay::Helper
- Defined in:
- lib/active_merchant/billing/integrations/webpay/helper.rb
Instance Method Summary collapse
-
#initialize(order, account, options = {}) ⇒ Helper
constructor
A new instance of Helper.
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, account, ={}) super # Webpay expects the amount in "cents" self.amount = ([:amount]*100).to_i add_field('TBK_TIPO_TRANSACCION', 'TR_NORMAL') end |