tb_checkout 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5d9b2cc2e634754b468bb4fd031d82d7f903332
4
- data.tar.gz: 8e88348699acf8e4d8aa2ad27afb6f8f123969df
3
+ metadata.gz: b9013e46f0f79357aeec6b7c806d1aeda3969456
4
+ data.tar.gz: e575eb4f6e65bdeb869b352ccff878afc76fd1c7
5
5
  SHA512:
6
- metadata.gz: 9c776ebaa8d81fa3d82a1f13a58a1d2f1246442712ac55a59b527686bc3e6b1addf66dd519b78b312dfc515dea13b4cc4966886581bbf569169e5bfc9fc80966
7
- data.tar.gz: cf4bb9f72a253f3430ac6ab3de8e7896dbee3591cab4743f44409882a836e4bb580708c5a6987cd78c7f5ab5bf6a1bdb06592abcb52f4a818cad4872ffbb95a5
6
+ metadata.gz: 1510b1b3202c03b8c7d4b4f07852b777ba4c6aa4d00bf4ba0e380a602405d5d3655cdd4d22b7cb2e2ae1b2d977239a6d92ee08f66eb705421b165818b8ef22e9
7
+ data.tar.gz: 9e727b2d9ffa2195f69a3f4a5dccc7904b3ed0977c6f0e58dd85706e6ff4f6e27a7e6ddefb40dda7428922e9af90cd8b1b3bebb82811c3795679aa430cc16416
@@ -8,7 +8,7 @@ module TbCheckout
8
8
  attr_reader :card_expiration
9
9
  attr_reader :response
10
10
 
11
- validates_presence_of :cart, :billing_first_name, :billing_last_name, :billing_address_1,
11
+ validates_presence_of :cart, :billing_first_name, :billing_last_name, :billing_address_1,
12
12
  :billing_city, :billing_state, :billing_postal, :card_type
13
13
  validates_numericality_of :amount_charged, :greater_than => 0
14
14
  validate :card_expiration_is_valid, :on => :create
@@ -62,7 +62,7 @@ module TbCheckout
62
62
  end
63
63
  @response = TbCheckout.gateway.purchase(amount_in_cents, build_credit_card(), build_purchase_options())
64
64
  if @response.success?
65
- self.update_columns(:status => Status::CAPTURED, :response_text => @response.to_json)
65
+ self.update_columns(:status => Status::CAPTURED, :response_text => @response.to_json, :gateway_transaction_id => @response.params['transaction_id'])
66
66
  else
67
67
  self.update_columns(:status => Status::FAIL, :response_text => @response.to_json)
68
68
  logger.fatal @response.inspect
@@ -197,7 +197,7 @@ private
197
197
  self.card_display = credit_card.display_number()
198
198
  else
199
199
  credit_card.errors.full_messages.each do |msg|
200
- errors.add(:base, msg)
200
+ errors.add(:base, msg)
201
201
  end
202
202
  end
203
203
  end
@@ -1,3 +1,3 @@
1
1
  module TbCheckout
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tb_checkout
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Westlake Design
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-24 00:00:00.000000000 Z
11
+ date: 2016-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tb_core