fat_zebra 2.0.12 → 2.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/fat_zebra/models/purchase.rb +2 -2
- data/lib/fat_zebra/version.rb +1 -1
- data/spec/gateway_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MWFkOTI1MGY3NWY2YmUxN2E5ZGEzMGFjN2YxM2I0ZjI5MmRhNTA0MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGExZDFlYzVkODNlYWFhZDkwY2ZkZGQ3MzE1NDRmODFjYzNjODE1NQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODk5MmI4ODFkZjY2NzIwYzkzMGNiOGJiM2Y2Y2I2MzcxNGJmZTA0N2YxMjJm
|
10
|
+
YTAxMGRkOGE2N2FjNjU0M2FjNjMxZjA4MzE5MzI4ZmYyNzlhODNlNDY1ODVj
|
11
|
+
ODJkOTUzOGE2NTVmMmZhY2Y3YjMwNTk1MzIzMjVjNjU2NGJmNGM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjE3NDVhNmIyNWVjNjNkOTNmOTBmZWY0OTVlNDAxOTkzOGYxNTRlOWQwMTkz
|
14
|
+
MjM3ZDk5OWU5ZjllYTcxMWM2Y2I1ZWQ1MzkxNjhiYWYyM2RhNTM3NmM4MmI3
|
15
|
+
NzQ5NmU4MmMyMzJmNmIzNTE5YzNhNDBhYWZiMWZjY2Q3ZGU5NDM=
|
@@ -172,7 +172,7 @@ module FatZebra
|
|
172
172
|
def validate_params!(params)
|
173
173
|
@errors = []
|
174
174
|
@errors << 'number or token must be provided' unless params[:card_number].present? || params[:card_token].present? || params[:wallet].present?
|
175
|
-
@errors << 'amount must be provided
|
175
|
+
@errors << 'amount must be provided' unless params[:amount].present? && params[:amount].to_f >= 0
|
176
176
|
@errors << 'expiry must be provided' unless params[:card_token].present? || params[:card_expiry].present? || params[:wallet].present?
|
177
177
|
@errors << 'reference must be provided' unless params[:reference].present?
|
178
178
|
@errors << 'customer_ip must be provided' unless params[:customer_ip].present?
|
@@ -182,4 +182,4 @@ module FatZebra
|
|
182
182
|
end
|
183
183
|
end
|
184
184
|
end
|
185
|
-
end
|
185
|
+
end
|
data/lib/fat_zebra/version.rb
CHANGED
data/spec/gateway_spec.rb
CHANGED
@@ -10,7 +10,7 @@ describe FatZebra::Gateway do
|
|
10
10
|
|
11
11
|
before :each do
|
12
12
|
# Setup the gateway for testing
|
13
|
-
server = TEST_LOCAL == true ? "fatapi.dev" : "gateway
|
13
|
+
server = TEST_LOCAL == true ? "fatapi.dev" : "gateway-sandbox.ipsi.com.au"
|
14
14
|
FatZebra.configure do
|
15
15
|
username TEST_USER
|
16
16
|
token TEST_TOKEN
|
@@ -117,4 +117,4 @@ describe FatZebra::Gateway do
|
|
117
117
|
result.errors.should be_empty
|
118
118
|
result.result.currency.should == 'USD'
|
119
119
|
end
|
120
|
-
end
|
120
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fat_zebra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Savage
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|