activemerchant 1.39.1 → 1.39.2

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
data/CHANGELOG CHANGED
@@ -1,5 +1,9 @@
1
1
  = ActiveMerchant CHANGELOG
2
2
 
3
+ == Version 1.39.2 (October 10th, 2013)
4
+
5
+ * Eway Rapid: Fix a bug with access codes that have equal signs in them [odorcic]
6
+
3
7
  == Version 1.39.1 (October 9th, 2013)
4
8
 
5
9
  * Bitpay: Invoice Fix [orenmazor]
@@ -129,7 +129,7 @@ module ActiveMerchant #:nodoc:
129
129
  }
130
130
  add_credit_card(post, payment_method)
131
131
 
132
- commit_form(endpoint, build_form_request(post))
132
+ commit_form(endpoint, build_form_request(post), :identification => identification)
133
133
  end
134
134
 
135
135
  def add_metadata(doc, options)
@@ -228,14 +228,13 @@ module ActiveMerchant #:nodoc:
228
228
  return EwayRapidResponse.new(false, e.response.message, {:status_code => e.response.code}, :test => test?)
229
229
  end
230
230
 
231
- def commit_form(url, request)
231
+ def commit_form(url, request, parameters)
232
232
  http_response = raw_ssl_request(:post, url, request)
233
233
 
234
234
  success = (http_response.code.to_s == "302")
235
235
  message = (success ? "Succeeded" : http_response.body)
236
- if success
237
- authorization = CGI.unescape(http_response["Location"].split("=").last)
238
- end
236
+ authorization = parameters[:identification] if success
237
+
239
238
  Response.new(success, message, {:location => http_response["Location"]}, :authorization => authorization, :test => test?)
240
239
  end
241
240
 
@@ -1,3 +1,3 @@
1
1
  module ActiveMerchant
2
- VERSION = "1.39.1"
2
+ VERSION = "1.39.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activemerchant
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.39.1
4
+ version: 1.39.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -37,7 +37,7 @@ cert_chain:
37
37
  Z1BvU1BxN25rK3MyRlFVQko5VVpGSzFsZ016aG8vNGZaZ3pKd2J1K2NPOFNO
38
38
  dWFMUy9iagpoUGFTVHlWVTB5Q1Nudz09Ci0tLS0tRU5EIENFUlRJRklDQVRF
39
39
  LS0tLS0K
40
- date: 2013-10-09 00:00:00.000000000 Z
40
+ date: 2013-10-10 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: activesupport
metadata.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- 3�U��a3"]�yӔ/�! ��5���`V��� DҁCyMN���|��;���`K�Jw������ �����2��<�<E����mI� F����PG*����㗵�C��z���;�=��%�/Cߖ�Ffoj��.���+���528vO̡�����I�D�k���hy�!�I-~���5G�,�X��"Yo�`]ISP:G�N #�x��:3�5��'�
2
- �������O���rP�иI�c���79���w�`
1
+ W!���SUDM^ O
2
+ Tp�^����_����i~������ʐ�RjS���ǝ��<z�cN;���y�ţ��b.e�|�����9���&�