Class: ActiveMerchant::Billing::Integrations::Alipay::Helper

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

Constant Summary collapse

CREATE_DIRECT_PAY_BY_USER =
'create_direct_pay_by_user'
CREATE_PARTNER_TRADE_BY_BUYER =
'create_partner_trade_by_buyer'
TRADE_CREATE_BY_BUYER =
'trade_create_by_buyer'
CREATE_FOREIGN_TRADE =
'create_forex_trade'

Instance Method Summary collapse

Methods included from Common

#signature, #signed?

Constructor Details

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

Returns a new instance of Helper.



16
17
18
# File 'lib/active_merchant/billing/integrations/alipay/helper.rb', line 16

def initialize(order, , options = {})
  super
end

Instance Method Details

#signObject



20
21
22
23
24
# File 'lib/active_merchant/billing/integrations/alipay/helper.rb', line 20

def sign
  add_field('sign', signature(@fields))
  add_field('sign_type', 'MD5')
  nil
end