paypal_adaptive 0.3.7 → 0.3.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8be795a9bda43b0b00f0930915b83bb46093b8e3
4
- data.tar.gz: e2abd17fe117914c901d42c88a23b166c696c2f4
3
+ metadata.gz: 7c7f044644164da5e4be430a5f4becef864a2ebd
4
+ data.tar.gz: cd0f3f5692f568ac1bae49d946fece21ba4cf9d5
5
5
  SHA512:
6
- metadata.gz: 389ad935ed21184ad7f4f4d103dbe071330cfcbde4f4a1b2b8ddde982ac767a26d0bf9f1a346d042d82acb92a0d7b39fc509fe479c78c6d150532098c3a9634f
7
- data.tar.gz: 11a2d869ecb05b441960575eba5e3eaa4e1054b74523b7141e43d6211708a898b2676cf9f82a4fba573c417a150c4da1e026360eb3c2e4b95e1247dbfe66598b
6
+ metadata.gz: 4513492292682ac2af72b225f91e4a620e8baccb500bc449d18dd942eedcb8e0a4ac3302a79bab27ae4e7b2c869e00196e8053476519d308d94a02ee737a511b
7
+ data.tar.gz: 7dcb9a89183d3db9fd8acb024e315cb9d8fb669d276f9b5a66fd56bc46234bf1cb94aff607e328d157bbdc4f80c74e2c9c659531f5b4123501db996481131070
data/README.markdown CHANGED
@@ -96,6 +96,9 @@ for each environment, e.g.:
96
96
  The api_cert_file should point to your cert_key_pem.txt that is downloaded through the paypal developer interface. It will contain a section that specifies the RSA private key and another section that specifies a certificate. If this is left empty, paypal_adaptive will attempt to use the signature method of validation with PayPal, so your signature config must not be nil.
97
97
 
98
98
  ## Changelog
99
+ 0.3.8
100
+ Fix IPN send back data. thanks @maxbeizer
101
+
99
102
  0.3.7
100
103
  Fix IPN under Ruby 2.0. thanks @rchekaluk
101
104
 
@@ -33,7 +33,12 @@ module PaypalAdaptive
33
33
  http.ca_file = @ssl_cert_file unless @ssl_cert_file.blank?
34
34
 
35
35
  req = Net::HTTP::Post.new(url.request_uri)
36
- req.set_form_data(Rack::Utils.parse_nested_query(data))
36
+ # we don't want #set_form_data to create a hash and get our
37
+ # response out of order; Paypal IPN docs explicitly state that
38
+ # the contents of #send_back must be in the same order as they
39
+ # were recieved
40
+ req.body = data
41
+ req.content_type = 'application/x-www-form-urlencoded'
37
42
  req['Accept-Encoding'] = 'identity'
38
43
  response_data = http.request(req).body
39
44
 
@@ -1,4 +1,4 @@
1
1
  module PaypalAdaptive
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paypal_adaptive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tommy Chheng
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-08 00:00:00.000000000 Z
11
+ date: 2014-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -151,4 +151,29 @@ rubygems_version: 2.0.3
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: Lightweight wrapper for Paypal's Adaptive Payments API
154
- test_files: []
154
+ test_files:
155
+ - test/data/invalid_chain_pay_request.json
156
+ - test/data/invalid_parallel_pay_request.json
157
+ - test/data/invalid_preapproval.json
158
+ - test/data/invalid_preapproval_error_execstatus.json
159
+ - test/data/invalid_preapproval_payment.json
160
+ - test/data/invalid_simple_pay_request_1.json
161
+ - test/data/valid_chain_pay_request.json
162
+ - test/data/valid_get_payment_options_request.json
163
+ - test/data/valid_get_shipping_addresses_request.json
164
+ - test/data/valid_parallel_pay_request.json
165
+ - test/data/valid_payment_details_request.json
166
+ - test/data/valid_preapproval.json
167
+ - test/data/valid_set_payment_options_request.json
168
+ - test/data/valid_simple_pay_request_1.json
169
+ - test/data/verified_get_verified_status_request.json
170
+ - test/test_helper.rb
171
+ - test/unit/config_test.rb
172
+ - test/unit/get_shipping_addresses_test.rb
173
+ - test/unit/get_verified_status_test.rb
174
+ - test/unit/pay_request_schema_test.rb
175
+ - test/unit/pay_request_test.rb
176
+ - test/unit/payment_details_test.rb
177
+ - test/unit/payment_options_test.rb
178
+ - test/unit/preapproval_test.rb
179
+ - test/unit/request_test.rb