activemerchant 1.32.0 → 1.32.1

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,12 @@
1
1
  = ActiveMerchant CHANGELOG
2
2
 
3
+ == Version 1.32.1 (April 4, 2013)
4
+
5
+ * CC5 and Garanti: Remove $KCODE modifications [melari]
6
+ * Paymill: Add support for store [ntalbott]
7
+ * USA ePay: Fix misspelling of "Aduth" [joelvh, ntalbott]
8
+ * Orbital: Fix nil address values throwing exceptions during truncation [melari]
9
+
3
10
  == Version 1.32.0 (April 1, 2013)
4
11
 
5
12
  * Optimal: Submit shipping address with requests [jduff]
@@ -24,6 +31,8 @@
24
31
  * Paymill: Handle error storing card [duff]
25
32
  * SagePay integration: Add referrer field [melari]
26
33
  * Pin: Add extra headers [duff]
34
+ * Paymill: Add support for store [ntalbott]
35
+ * USA ePay Advanced: Fix typo in message credit card data options [joelvh]
27
36
 
28
37
  == Version 1.31.1 (February 25, 2013)
29
38
 
@@ -1,7 +1,3 @@
1
- if RUBY_VERSION < '1.9' && $KCODE == "NONE"
2
- $KCODE = 'u'
3
- end
4
-
5
1
  module ActiveMerchant #:nodoc:
6
2
  module Billing #:nodoc:
7
3
  # CC5 API is used by many banks in Turkey. Extend this base class to provide
@@ -1,7 +1,3 @@
1
- if RUBY_VERSION < '1.9' && $KCODE == "NONE"
2
- $KCODE = 'u'
3
- end
4
-
5
1
  module ActiveMerchant #:nodoc:
6
2
  module Billing #:nodoc:
7
3
  class GarantiGateway < Gateway
@@ -219,14 +219,14 @@ module ActiveMerchant #:nodoc:
219
219
  avs_supported = AVS_SUPPORTED_COUNTRIES.include?(address[:country].to_s)
220
220
 
221
221
  if avs_supported
222
- xml.tag! :AVSzip, address[:zip].to_s[0..9]
223
- xml.tag! :AVSaddress1, address[:address1][0..29]
224
- xml.tag! :AVSaddress2, address[:address2][0..29]
225
- xml.tag! :AVScity, address[:city][0..19]
222
+ xml.tag! :AVSzip, address[:zip] ? address[:zip].to_s[0..9] : nil
223
+ xml.tag! :AVSaddress1, address[:address1] ? address[:address1][0..29] : nil
224
+ xml.tag! :AVSaddress2, address[:address2] ? address[:address2][0..29] : nil
225
+ xml.tag! :AVScity, address[:city] ? address[:city][0..19] : nil
226
226
  xml.tag! :AVSstate, address[:state]
227
227
  xml.tag! :AVSphoneNum, address[:phone] ? address[:phone].scan(/\d/).join.to_s[0..13] : nil
228
228
  end
229
- xml.tag! :AVSname, creditcard.name[0..29]
229
+ xml.tag! :AVSname, creditcard.name ? creditcard.name[0..29] : nil
230
230
  xml.tag! :AVScountryCode, avs_supported ? address[:country] : ''
231
231
  end
232
232
  end
@@ -16,17 +16,27 @@ module ActiveMerchant #:nodoc:
16
16
  super
17
17
  end
18
18
 
19
- def purchase(money, credit_card, options = {})
20
- MultiResponse.run do |r|
21
- r.process { save_card(credit_card) }
22
- r.process { purchase_with_token(money, r.authorization, options) }
19
+ def purchase(money, payment_method, options = {})
20
+ case payment_method
21
+ when String
22
+ purchase_with_token(money, payment_method, options)
23
+ else
24
+ MultiResponse.run do |r|
25
+ r.process { save_card(payment_method) }
26
+ r.process { purchase_with_token(money, r.authorization, options) }
27
+ end
23
28
  end
24
29
  end
25
30
 
26
- def authorize(money, credit_card, options = {})
27
- MultiResponse.run do |r|
28
- r.process { save_card(credit_card) }
29
- r.process { authorize_with_token(money, r.authorization, options) }
31
+ def authorize(money, payment_method, options = {})
32
+ case payment_method
33
+ when String
34
+ authorize_with_token(money, payment_method, options)
35
+ else
36
+ MultiResponse.run do |r|
37
+ r.process { save_card(payment_method) }
38
+ r.process { authorize_with_token(money, r.authorization, options) }
39
+ end
30
40
  end
31
41
  end
32
42
 
@@ -47,6 +57,10 @@ module ActiveMerchant #:nodoc:
47
57
  commit(:post, "refunds/#{transaction_id(authorization)}", post)
48
58
  end
49
59
 
60
+ def store(credit_card, options={})
61
+ save_card(credit_card)
62
+ end
63
+
50
64
  private
51
65
 
52
66
  def add_credit_card(post, credit_card)
@@ -174,7 +174,7 @@ module ActiveMerchant #:nodoc:
174
174
  :xid => [:string, 'XID'],
175
175
  :cavv => [:string, 'CAVV'],
176
176
  :eci => [:integer, 'ECI'],
177
- :internal_card_authorization => [:boolean, 'InternalCardAduth'],
177
+ :internal_card_authorization => [:boolean, 'InternalCardAuth'],
178
178
  :pares => [:string, 'Pares']
179
179
  } #:nodoc:
180
180
 
@@ -1,3 +1,3 @@
1
1
  module ActiveMerchant
2
- VERSION = "1.32.0"
2
+ VERSION = "1.32.1"
3
3
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activemerchant
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.32.0
5
4
  prerelease:
5
+ version: 1.32.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Tobias Luetke
@@ -37,184 +37,184 @@ cert_chain:
37
37
  Z1BvU1BxN25rK3MyRlFVQko5VVpGSzFsZ016aG8vNGZaZ3pKd2J1K2NPOFNO
38
38
  dWFMUy9iagpoUGFTVHlWVTB5Q1Nudz09Ci0tLS0tRU5EIENFUlRJRklDQVRF
39
39
  LS0tLS0K
40
- date: 2013-04-01 00:00:00.000000000 Z
40
+ date: 2013-04-04 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
- name: activesupport
44
- requirement: !ruby/object:Gem::Requirement
45
- none: false
43
+ version_requirements: !ruby/object:Gem::Requirement
46
44
  requirements:
47
45
  - - ! '>='
48
46
  - !ruby/object:Gem::Version
49
47
  version: 2.3.14
48
+ none: false
49
+ name: activesupport
50
50
  type: :runtime
51
51
  prerelease: false
52
- version_requirements: !ruby/object:Gem::Requirement
53
- none: false
52
+ requirement: !ruby/object:Gem::Requirement
54
53
  requirements:
55
54
  - - ! '>='
56
55
  - !ruby/object:Gem::Version
57
56
  version: 2.3.14
58
- - !ruby/object:Gem::Dependency
59
- name: i18n
60
- requirement: !ruby/object:Gem::Requirement
61
57
  none: false
58
+ - !ruby/object:Gem::Dependency
59
+ version_requirements: !ruby/object:Gem::Requirement
62
60
  requirements:
63
61
  - - ! '>='
64
62
  - !ruby/object:Gem::Version
65
63
  version: '0'
64
+ none: false
65
+ name: i18n
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: !ruby/object:Gem::Requirement
69
- none: false
68
+ requirement: !ruby/object:Gem::Requirement
70
69
  requirements:
71
70
  - - ! '>='
72
71
  - !ruby/object:Gem::Version
73
72
  version: '0'
74
- - !ruby/object:Gem::Dependency
75
- name: money
76
- requirement: !ruby/object:Gem::Requirement
77
73
  none: false
74
+ - !ruby/object:Gem::Dependency
75
+ version_requirements: !ruby/object:Gem::Requirement
78
76
  requirements:
79
77
  - - ! '>='
80
78
  - !ruby/object:Gem::Version
81
79
  version: '0'
80
+ none: false
81
+ name: money
82
82
  type: :runtime
83
83
  prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- none: false
84
+ requirement: !ruby/object:Gem::Requirement
86
85
  requirements:
87
86
  - - ! '>='
88
87
  - !ruby/object:Gem::Version
89
88
  version: '0'
90
- - !ruby/object:Gem::Dependency
91
- name: builder
92
- requirement: !ruby/object:Gem::Requirement
93
89
  none: false
90
+ - !ruby/object:Gem::Dependency
91
+ version_requirements: !ruby/object:Gem::Requirement
94
92
  requirements:
95
93
  - - ! '>='
96
94
  - !ruby/object:Gem::Version
97
95
  version: 2.0.0
96
+ none: false
97
+ name: builder
98
98
  type: :runtime
99
99
  prerelease: false
100
- version_requirements: !ruby/object:Gem::Requirement
101
- none: false
100
+ requirement: !ruby/object:Gem::Requirement
102
101
  requirements:
103
102
  - - ! '>='
104
103
  - !ruby/object:Gem::Version
105
104
  version: 2.0.0
106
- - !ruby/object:Gem::Dependency
107
- name: json
108
- requirement: !ruby/object:Gem::Requirement
109
105
  none: false
106
+ - !ruby/object:Gem::Dependency
107
+ version_requirements: !ruby/object:Gem::Requirement
110
108
  requirements:
111
109
  - - ! '>='
112
110
  - !ruby/object:Gem::Version
113
111
  version: 1.5.1
112
+ none: false
113
+ name: json
114
114
  type: :runtime
115
115
  prerelease: false
116
- version_requirements: !ruby/object:Gem::Requirement
117
- none: false
116
+ requirement: !ruby/object:Gem::Requirement
118
117
  requirements:
119
118
  - - ! '>='
120
119
  - !ruby/object:Gem::Version
121
120
  version: 1.5.1
122
- - !ruby/object:Gem::Dependency
123
- name: active_utils
124
- requirement: !ruby/object:Gem::Requirement
125
121
  none: false
122
+ - !ruby/object:Gem::Dependency
123
+ version_requirements: !ruby/object:Gem::Requirement
126
124
  requirements:
127
125
  - - ! '>='
128
126
  - !ruby/object:Gem::Version
129
127
  version: 1.0.2
128
+ none: false
129
+ name: active_utils
130
130
  type: :runtime
131
131
  prerelease: false
132
- version_requirements: !ruby/object:Gem::Requirement
133
- none: false
132
+ requirement: !ruby/object:Gem::Requirement
134
133
  requirements:
135
134
  - - ! '>='
136
135
  - !ruby/object:Gem::Version
137
136
  version: 1.0.2
138
- - !ruby/object:Gem::Dependency
139
- name: nokogiri
140
- requirement: !ruby/object:Gem::Requirement
141
137
  none: false
138
+ - !ruby/object:Gem::Dependency
139
+ version_requirements: !ruby/object:Gem::Requirement
142
140
  requirements:
143
141
  - - ! '>='
144
142
  - !ruby/object:Gem::Version
145
143
  version: '0'
144
+ none: false
145
+ name: nokogiri
146
146
  type: :runtime
147
147
  prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- none: false
148
+ requirement: !ruby/object:Gem::Requirement
150
149
  requirements:
151
150
  - - ! '>='
152
151
  - !ruby/object:Gem::Version
153
152
  version: '0'
154
- - !ruby/object:Gem::Dependency
155
- name: rake
156
- requirement: !ruby/object:Gem::Requirement
157
153
  none: false
154
+ - !ruby/object:Gem::Dependency
155
+ version_requirements: !ruby/object:Gem::Requirement
158
156
  requirements:
159
157
  - - ! '>='
160
158
  - !ruby/object:Gem::Version
161
159
  version: '0'
160
+ none: false
161
+ name: rake
162
162
  type: :development
163
163
  prerelease: false
164
- version_requirements: !ruby/object:Gem::Requirement
165
- none: false
164
+ requirement: !ruby/object:Gem::Requirement
166
165
  requirements:
167
166
  - - ! '>='
168
167
  - !ruby/object:Gem::Version
169
168
  version: '0'
170
- - !ruby/object:Gem::Dependency
171
- name: mocha
172
- requirement: !ruby/object:Gem::Requirement
173
169
  none: false
170
+ - !ruby/object:Gem::Dependency
171
+ version_requirements: !ruby/object:Gem::Requirement
174
172
  requirements:
175
173
  - - ~>
176
174
  - !ruby/object:Gem::Version
177
175
  version: 0.11.3
176
+ none: false
177
+ name: mocha
178
178
  type: :development
179
179
  prerelease: false
180
- version_requirements: !ruby/object:Gem::Requirement
181
- none: false
180
+ requirement: !ruby/object:Gem::Requirement
182
181
  requirements:
183
182
  - - ~>
184
183
  - !ruby/object:Gem::Version
185
184
  version: 0.11.3
186
- - !ruby/object:Gem::Dependency
187
- name: rails
188
- requirement: !ruby/object:Gem::Requirement
189
185
  none: false
186
+ - !ruby/object:Gem::Dependency
187
+ version_requirements: !ruby/object:Gem::Requirement
190
188
  requirements:
191
189
  - - ! '>='
192
190
  - !ruby/object:Gem::Version
193
191
  version: 2.3.14
192
+ none: false
193
+ name: rails
194
194
  type: :development
195
195
  prerelease: false
196
- version_requirements: !ruby/object:Gem::Requirement
197
- none: false
196
+ requirement: !ruby/object:Gem::Requirement
198
197
  requirements:
199
198
  - - ! '>='
200
199
  - !ruby/object:Gem::Version
201
200
  version: 2.3.14
202
- - !ruby/object:Gem::Dependency
203
- name: thor
204
- requirement: !ruby/object:Gem::Requirement
205
201
  none: false
202
+ - !ruby/object:Gem::Dependency
203
+ version_requirements: !ruby/object:Gem::Requirement
206
204
  requirements:
207
205
  - - ! '>='
208
206
  - !ruby/object:Gem::Version
209
207
  version: '0'
208
+ none: false
209
+ name: thor
210
210
  type: :development
211
211
  prerelease: false
212
- version_requirements: !ruby/object:Gem::Requirement
213
- none: false
212
+ requirement: !ruby/object:Gem::Requirement
214
213
  requirements:
215
214
  - - ! '>='
216
215
  - !ruby/object:Gem::Version
217
216
  version: '0'
217
+ none: false
218
218
  description: Active Merchant is a simple payment abstraction library used in and sponsored
219
219
  by Shopify. It is written by Tobias Luetke, Cody Fauser, and contributors. The aim
220
220
  of the project is to feel natural to Ruby users and to abstract as many parts as
@@ -516,20 +516,20 @@ rdoc_options: []
516
516
  require_paths:
517
517
  - lib
518
518
  required_ruby_version: !ruby/object:Gem::Requirement
519
- none: false
520
519
  requirements:
521
520
  - - ! '>='
522
521
  - !ruby/object:Gem::Version
523
522
  version: '0'
524
- required_rubygems_version: !ruby/object:Gem::Requirement
525
523
  none: false
524
+ required_rubygems_version: !ruby/object:Gem::Requirement
526
525
  requirements:
527
526
  - - ! '>='
528
527
  - !ruby/object:Gem::Version
529
528
  version: '0'
529
+ none: false
530
530
  requirements: []
531
531
  rubyforge_project: activemerchant
532
- rubygems_version: 1.8.24
532
+ rubygems_version: 1.8.23
533
533
  signing_key:
534
534
  specification_version: 3
535
535
  summary: Framework and tools for dealing with credit card transactions.
metadata.gz.sig CHANGED
Binary file