Module: WebpayInterswitch::Core

Included in:
FormBuilder, TransactionQuery
Defined in:
lib/webpay_interswitch/core.rb

Instance Method Summary collapse

Instance Method Details

#sha_hash(message = '') ⇒ Object

Returns the sha hash to be sent to webpay with params for querying or making payment.



5
6
7
# File 'lib/webpay_interswitch/core.rb', line 5

def sha_hash(message='')
  Digest::SHA512.hexdigest(message)
end