smulube-activemerchant 1.7.0.1 → 1.7.0.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
@@ -296,11 +296,13 @@ module ActiveMerchant #:nodoc:
296
296
  end
297
297
 
298
298
  def add_creditcard(post, creditcard)
299
- post[:acct] = creditcard.number
300
- post[:cvv2] = creditcard.verification_value
301
- post[:expdate] = expdate(creditcard)
302
- post[:firstname] = creditcard.first_name
303
- post[:lastname] = creditcard.last_name
299
+ unless creditcard.nil?
300
+ post[:acct] = creditcard.number
301
+ post[:cvv2] = creditcard.verification_value
302
+ post[:expdate] = expdate(creditcard)
303
+ post[:firstname] = creditcard.first_name
304
+ post[:lastname] = creditcard.last_name
305
+ end
304
306
  end
305
307
 
306
308
  def add_currency(post, money, options)
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: 101
4
+ hash: 99
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 7
9
9
  - 0
10
- - 1
11
- version: 1.7.0.1
10
+ - 2
11
+ version: 1.7.0.2
12
12
  platform: ruby
13
13
  authors:
14
14
  - Tobias Luetke
metadata.gz.sig CHANGED
@@ -1 +1,2 @@
1
- Q�%�S'��e�Zёz�W�'?:6��-�X2̔�jy52��q���i-8GS�v��wUR�'iM��']fmޱ�ݬ��P�j�G�����~���_��ٟ(�gU��Ƀw�|צ$ ���,�hO�� ��7��j�
1
+ �؝q[3��VA��\�6)S���.b�jd ��9�=�+M3A&D���~��
2
+ �r��Q+kDFa� �u�R�9ٙ�