przelewy24 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/przelewy24/client.rb +5 -1
- data/lib/przelewy24/invalid_gateway_url.rb +4 -0
- data/lib/przelewy24/version.rb +1 -1
- data/lib/przelewy24.rb +1 -0
- metadata +2 -1
data/lib/przelewy24/client.rb
CHANGED
@@ -12,8 +12,12 @@ module Przelewy24
|
|
12
12
|
|
13
13
|
if mode == :production
|
14
14
|
@gateway_url = 'secure.przelewy24.pl'
|
15
|
-
|
15
|
+
elsif mode == :sandbox
|
16
16
|
@gateway_url = 'sandbox.przelewy24.pl'
|
17
|
+
elsif mode == :sandbox2
|
18
|
+
@gateway_url = 'sandbox2.przelewy24.pl'
|
19
|
+
else
|
20
|
+
raise InvalidGatewayUrl
|
17
21
|
end
|
18
22
|
end
|
19
23
|
|
data/lib/przelewy24/version.rb
CHANGED
data/lib/przelewy24.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: przelewy24
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -62,6 +62,7 @@ files:
|
|
62
62
|
- bin/setup
|
63
63
|
- lib/przelewy24.rb
|
64
64
|
- lib/przelewy24/client.rb
|
65
|
+
- lib/przelewy24/invalid_gateway_url.rb
|
65
66
|
- lib/przelewy24/response.rb
|
66
67
|
- lib/przelewy24/transaction.rb
|
67
68
|
- lib/przelewy24/version.rb
|