Module: ActiveMerchant::Billing::Integrations::Webmoney::Common
- Included in:
- Helper, Notification
- Defined in:
- lib/active_merchant/billing/integrations/webmoney/common.rb
Instance Method Summary collapse
Instance Method Details
#generate_signature ⇒ Object
10 11 12 |
# File 'lib/active_merchant/billing/integrations/webmoney/common.rb', line 10 def generate_signature Digest::MD5.hexdigest(generate_signature_string).upcase end |
#generate_signature_string ⇒ Object
6 7 8 |
# File 'lib/active_merchant/billing/integrations/webmoney/common.rb', line 6 def generate_signature_string "#{params['LMI_PAYEE_PURSE']}#{params['LMI_PAYMENT_AMOUNT']}#{params['LMI_PAYMENT_NO']}#{params['LMI_MODE']}#{params['LMI_SYS_INVS_NO']}#{params['LMI_SYS_TRANS_NO']}#{params['LMI_SYS_TRANS_DATE']}#{secret}#{params['LMI_PAYER_PURSE']}#{params['LMI_PAYER_WM']}" end |