smulube-activemerchant 1.7.0.2 → 1.7.0.3

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- b1 I����ZY�72 +��C?0�AhC���` �o{~ޞ����Yd�(_5��f�����rʡT��q�D�~��l{����rjE!�}g��,��;�]�" W�$� =|����Uj(F�Mf�R���g��-�\��5!gQ[��|� H8X3B�����ߡ���Ί�kNXY�k�i��(9�u>38�ޖH�u�"t�DRu���v�@���eΓ@&��^�j kT_țr�,?
1
+ #�,޹�u��0�yr��O|�ɍ���^u��0/�. �` ���$*HnF #�`�2P��rT���"�F\4����-�V���5�m�u�P��C:tҦc3D��kFy����:�D78mɗC��6
@@ -71,10 +71,12 @@ module ActiveMerchant #:nodoc:
71
71
  # * <tt>options</tt>
72
72
  # * <tt>:login</tt> - Your Payflow login
73
73
  # * <tt>:password</tt> - Your Payflow password
74
+ # * <tt>:vendor</tt> - Your vendor ID. If not present then the login is used
74
75
  def initialize(options = {})
75
76
  requires!(options, :login, :password)
76
77
  @options = options
77
78
  @options[:partner] = partner if @options[:partner].blank?
79
+ @options[:vendor] = options[:login] if @options[:vendor].blank?
78
80
  super
79
81
  end
80
82
 
@@ -357,12 +359,13 @@ module ActiveMerchant #:nodoc:
357
359
  post[:user] = @options[:login]
358
360
  post[:pwd] = @options[:password]
359
361
  post[:partner] = @options[:partner]
360
- post[:vendor] = @options[:login]
362
+ post[:vendor] = @options[:vendor]
361
363
  post[:trxtype] = action if action
362
364
  post[:tender] = "C"
363
365
  post[:verbosity] = "MEDIUM"
364
366
 
365
- request = post.merge(parameters).map { |key, value| "#{key.to_s.upcase}=#{CGI.escape(value.to_s)}" }.join("&")
367
+ #request = post.merge(parameters).sort.map { |kv_pair| "#{kv_pair[0].to_s.upcase}=#{CGI.escape(kv_pair[1].to_s)}" }.join("&")
368
+ request = post.merge(parameters).sort { |a, b| a[0].to_s <=> b[0].to_s }.map { |pair| "#{pair[0].to_s.upcase}=#{CGI.escape(pair[1].to_s)}" }.join("&") #.map { |kv_pair| "#{kv_pair[0].to_s.upcase}=#{CGI.escape(kv_pair[1].to_s)}" }.join("&")
366
369
  request
367
370
  end
368
371
 
@@ -1,3 +1,3 @@
1
1
  module ActiveMerchant
2
- VERSION = "1.7.0"
2
+ VERSION = "1.7.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smulube-activemerchant
3
3
  version: !ruby/object:Gem::Version
4
- hash: 99
4
+ hash: 97
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 7
9
9
  - 0
10
- - 2
11
- version: 1.7.0.2
10
+ - 3
11
+ version: 1.7.0.3
12
12
  platform: ruby
13
13
  authors:
14
14
  - Tobias Luetke
@@ -37,7 +37,7 @@ cert_chain:
37
37
  RGv1VYD5jSaHiQ==
38
38
  -----END CERTIFICATE-----
39
39
 
40
- date: 2010-07-20 00:00:00 +01:00
40
+ date: 2010-07-29 00:00:00 +01:00
41
41
  default_executable:
42
42
  dependencies:
43
43
  - !ruby/object:Gem::Dependency
metadata.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- �؝q[3��VA��\�6)S���.b�jd ��9�=�+M3A&D���~��
2
- �r��Q+kDFa� �u�R�9ٙ�
1
+ D^�� ���FhD�3d9�m���ܷ')!~c�?��j����Jz�Մ��8��a���+�c�iͧ�%�݌W���⤸9f�N�q�5m%3�����$����&^j�}��R�DR|,��i} 6�R$?��������6�rrV���/~��W3`�|`m�3����0��Jg��d�w�F�p���w��k����� ?=X��*\`�V�RvO�Ԛ��l9@bo��4�_'��y����#s?��Ǜ
2
+ ����|