remit 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,9 +3,12 @@ require 'openssl/digest'
3
3
 
4
4
  module Remit
5
5
  # Encapsulates the logic for IPN request validation and attribute retrieval.
6
+ #
7
+ # Note: if your responses from Amazon are not validating, please pass the
8
+ # :version parameter to your original CBUI request.
6
9
  class IpnRequest
7
10
  # Signature key name used by AmazonFPS IPNs
8
- SIGNATURE_KEY = 'awsSignature'
11
+ SIGNATURE_KEY = 'signature'
9
12
 
10
13
  # +params+ should be your controllers request parameters.
11
14
  def initialize(params, secret_key)
@@ -4,7 +4,6 @@ describe 'an IPN request' do
4
4
  before(:each) do
5
5
  @request_params = {
6
6
  "action" => "notice",
7
- "awsSignature" => "DA7ZbuQaBDt2/+Mty9XweJyqI1E=",
8
7
  "buyerName" => "Fps Buyer",
9
8
  "callerReference" => "4-8-1-3.5",
10
9
  "controller" => "amazon_fps/ipn",
@@ -12,6 +11,7 @@ describe 'an IPN request' do
12
11
  "paymentMethod" => "CC",
13
12
  "recipientEmail" => "recipient@email.url",
14
13
  "recipientName" => "Fps Business",
14
+ "signature" => "DA7ZbuQaBDt2/+Mty9XweJyqI1E=",
15
15
  "status" => "SUCCESS",
16
16
  "transactionAmount" => "USD 3.50",
17
17
  "transactionDate" => "1224687134",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Hunt
@@ -18,7 +18,7 @@ dependencies:
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
20
20
  requirements:
21
- - - ">="
21
+ - - ~>
22
22
  - !ruby/object:Gem::Version
23
23
  version: 0.0.7
24
24
  version: