Sha256: 33ece4bcd270a5fd889d86dfea6e0afd8742595be78dfe73fa851a0241606c81

Contents?: true

Size: 286 Bytes

Versions: 2

Compression:

Stored size: 286 Bytes

Contents

require 'json'
require 'net/http'

module Wayforpay
  class Request
    def self.call(encrypted_fields, request_attrs)
      request_attrs[:merchantSignature] = EncryptField.(encrypted_fields, request_attrs)
      Net::HTTP.post(Constants::URL, request_attrs.to_json)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wayforpay-0.1.1 lib/wayforpay/request.rb
wayforpay-0.1.0 lib/wayforpay/request.rb