Module: BMLConnect::Crypt::Signature
- Included in:
- Models::Transaction
- Defined in:
- lib/bml_connect/crypt/signature.rb
Instance Attribute Summary collapse
-
#signature ⇒ Object
Returns the value of attribute signature.
Instance Method Summary collapse
Instance Attribute Details
#signature ⇒ Object
Returns the value of attribute signature.
7 8 9 |
# File 'lib/bml_connect/crypt/signature.rb', line 7 def signature @signature end |
Instance Method Details
#sign(api_key) ⇒ Object
9 10 11 12 |
# File 'lib/bml_connect/crypt/signature.rb', line 9 def sign(api_key) plain_signature = 'amount=' + amount.to_s + '¤cy=' + currency + '&apiKey=' + api_key @signature = Digest::SHA1.base64digest plain_signature end |