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 +4 -4
- data/app/models/tb_checkout/transaction.rb +3 -3
- data/lib/tb_checkout/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9013e46f0f79357aeec6b7c806d1aeda3969456
|
4
|
+
data.tar.gz: e575eb4f6e65bdeb869b352ccff878afc76fd1c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/tb_checkout/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tb_core
|