Class: PayuAPI::BuildSignature

Inherits:
Object
  • Object
show all
Extended by:
Dry::Initializer::Mixin
Defined in:
lib/payu_api/build_signature.rb

Instance Method Summary collapse

Instance Method Details

#callObject



8
9
10
11
# File 'lib/payu_api/build_signature.rb', line 8

def call
  signature = Digest::MD5.hexdigest("#{body}#{second_key}")
  "sender=checkout;signature=#{signature};algorithm=MD5;content=DOCUMENT"
end