Class: ActiveMerchant::Billing::Integrations::Alipay::Helper
- Inherits:
-
Helper
- Object
- Helper
- ActiveMerchant::Billing::Integrations::Alipay::Helper
- 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
-
#initialize(order, account, options = {}) ⇒ Helper
constructor
A new instance of Helper.
- #sign ⇒ Object
Methods included from Common
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, account, = {}) super end |
Instance Method Details
#sign ⇒ Object
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 |