activemerchant 1.39.2 → 1.40.0

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,11 @@
1
1
  = ActiveMerchant CHANGELOG
2
2
 
3
+ == Version 1.40.0 (October 18th, 2013)
4
+
5
+ * Paymill: Revert Add support for specifying the :customer [melari]
6
+ * Quickpay: Make v7 of the API default [kvs]
7
+ * Bitpay: Add return [tahnok]
8
+
3
9
  == Version 1.39.2 (October 10th, 2013)
4
10
 
5
11
  * Eway Rapid: Fix a bug with access codes that have equal signs in them [odorcic]
@@ -116,7 +116,6 @@ module ActiveMerchant #:nodoc:
116
116
  add_amount(post, money, options)
117
117
  post[:token] = card_token
118
118
  post[:description] = options[:description]
119
- post[:client] = options[:customer]
120
119
  commit(:post, 'transactions', post)
121
120
  end
122
121
 
@@ -159,7 +159,7 @@ module ActiveMerchant #:nodoc:
159
159
  # Using the API-key, requires that you use version 4+. Specify :version => 4/5/6/7 in options.
160
160
  def initialize(options = {})
161
161
  requires!(options, :login, :password)
162
- @protocol = options.delete(:version) || 3 # default to protocol version 3
162
+ @protocol = options.delete(:version) || 7 # default to protocol version 7
163
163
  super
164
164
  end
165
165
 
@@ -183,14 +183,14 @@ module ActiveMerchant #:nodoc:
183
183
  if options[:track_data]
184
184
  card[:swipe_data] = options[:track_data]
185
185
  else
186
- card[:number] = creditcard
186
+ card = creditcard
187
187
  end
188
188
  post[:card] = card
189
189
  end
190
190
  end
191
191
 
192
192
  def add_customer(post, options)
193
- post[:customer] = options[:customer] if options[:customer] && post[:card].blank?
193
+ post[:customer] = options[:customer] if options[:customer]
194
194
  end
195
195
 
196
196
  def add_flags(post, options)
@@ -48,6 +48,10 @@ module ActiveMerchant #:nodoc:
48
48
  post[:amount] = localized_amount(money, post[:currency].upcase)
49
49
  end
50
50
 
51
+ def add_customer(post, options)
52
+ post[:customer] = options[:customer] if options[:customer] && post[:card].blank?
53
+ end
54
+
51
55
  def json_error(raw_response)
52
56
  msg = 'Invalid response received from the WebPay API. Please contact support@webpay.jp if you continue to receive this message.'
53
57
  msg += " (The raw response returned by the API was #{raw_response.inspect})"
@@ -1,5 +1,6 @@
1
1
  require File.dirname(__FILE__) + '/bit_pay/helper.rb'
2
2
  require File.dirname(__FILE__) + '/bit_pay/notification.rb'
3
+ require File.dirname(__FILE__) + '/bit_pay/return.rb'
3
4
 
4
5
  module ActiveMerchant #:nodoc:
5
6
  module Billing #:nodoc:
@@ -19,6 +20,10 @@ module ActiveMerchant #:nodoc:
19
20
  def self.helper(order, account, options = {})
20
21
  Helper.new(order, account, options)
21
22
  end
23
+
24
+ def self.return(query_string, options = {})
25
+ Return.new(query_string)
26
+ end
22
27
  end
23
28
  end
24
29
  end
@@ -34,7 +34,7 @@ module ActiveMerchant #:nodoc:
34
34
  :country => 'buyerCountry'
35
35
 
36
36
  mapping :notify_url, 'notificationURL'
37
- mapping :return_url, 'returnURL'
37
+ mapping :return_url, 'redirectURL'
38
38
  mapping :id, 'id'
39
39
 
40
40
  def generate_invoice_id
@@ -0,0 +1,10 @@
1
+ module ActiveMerchant #:nodoc:
2
+ module Billing #:nodoc:
3
+ module Integrations #:nodoc:
4
+ module BitPay
5
+ class Return < ActiveMerchant::Billing::Integrations::Return
6
+ end
7
+ end
8
+ end
9
+ end
10
+ end
@@ -1,3 +1,3 @@
1
1
  module ActiveMerchant
2
- VERSION = "1.39.2"
2
+ VERSION = "1.40.0"
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.2
4
+ version: 1.40.0
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-10 00:00:00.000000000 Z
40
+ date: 2013-10-18 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: activesupport
@@ -403,6 +403,7 @@ files:
403
403
  - lib/active_merchant/billing/integrations/authorize_net_sim.rb
404
404
  - lib/active_merchant/billing/integrations/bit_pay/helper.rb
405
405
  - lib/active_merchant/billing/integrations/bit_pay/notification.rb
406
+ - lib/active_merchant/billing/integrations/bit_pay/return.rb
406
407
  - lib/active_merchant/billing/integrations/bit_pay.rb
407
408
  - lib/active_merchant/billing/integrations/bogus/helper.rb
408
409
  - lib/active_merchant/billing/integrations/bogus/notification.rb
metadata.gz.sig CHANGED
@@ -1,2 +1 @@
1
- W!���S UDM^ O
2
- Tp�^����_����i~������ʐ�RjS���ǝ��<z�cN;���y�ţ��b.e�|�����9���&�
1
+ ����D�|xr`����}�^�]?D�؆������������sݸ�9���bY=jԜۄK1I��n'{�����u��&�i~�ܧ�BL��\�]7�CqZT�ö�!W4QO: �<>u9��a�