paypoint-blue 0.7.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +10 -0
- data/lib/paypoint/blue/api.rb +2 -2
- data/lib/paypoint/blue/base.rb +2 -2
- data/lib/paypoint/blue/hosted.rb +2 -2
- data/lib/paypoint/blue/version.rb +2 -2
- 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: 7e662703195b0e1509bcf9b73e7d32c185e6cae5
|
|
4
|
+
data.tar.gz: 05e6c11ff4136c7122615a566fad6b2a25898a98
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 129d593ae98e772f5f03dd2decc0a9d4c45e7c671b88a1d71c8c9ad584ee015a96a3a298fd6e6c83ca91b1ca398c78c4cb397eae6998f4d672c4ac3e9b298900
|
|
7
|
+
data.tar.gz: 2af1fa0af18c43c231fd009040e1319443f0c8399a6bd931329c4cdd43ee8e21cfcd0dcb1addadc23bff34207034d01aa69cf33d8599c3651efe9d9e3e267986
|
data/.rubocop.yml
CHANGED
|
@@ -5,6 +5,7 @@ AllCops:
|
|
|
5
5
|
- "bin/*"
|
|
6
6
|
- "support/**/*"
|
|
7
7
|
- "vendor/**/*"
|
|
8
|
+
TargetRubyVersion: 2.2
|
|
8
9
|
|
|
9
10
|
### Style ######################################################################
|
|
10
11
|
|
|
@@ -24,9 +25,15 @@ Style/BlockDelimiters:
|
|
|
24
25
|
Style/IndentHash:
|
|
25
26
|
EnforcedStyle: consistent
|
|
26
27
|
|
|
28
|
+
Style/MultilineMethodCallIndentation:
|
|
29
|
+
EnforcedStyle: indented
|
|
30
|
+
|
|
27
31
|
Style/MultilineOperationIndentation:
|
|
28
32
|
EnforcedStyle: indented
|
|
29
33
|
|
|
34
|
+
Style/SignalException:
|
|
35
|
+
EnforcedStyle: semantic
|
|
36
|
+
|
|
30
37
|
Style/StringLiterals:
|
|
31
38
|
EnforcedStyle: double_quotes
|
|
32
39
|
|
|
@@ -38,6 +45,9 @@ Style/StringLiteralsInInterpolation:
|
|
|
38
45
|
Style/SymbolArray:
|
|
39
46
|
Enabled: false
|
|
40
47
|
|
|
48
|
+
Style/TrailingCommaInArguments:
|
|
49
|
+
EnforcedStyleForMultiline: comma
|
|
50
|
+
|
|
41
51
|
Style/TrailingCommaInLiteral:
|
|
42
52
|
EnforcedStyleForMultiline: comma
|
|
43
53
|
|
data/lib/paypoint/blue/api.rb
CHANGED
|
@@ -3,8 +3,8 @@ require "paypoint/blue/base"
|
|
|
3
3
|
# Client class for the API product.
|
|
4
4
|
class PayPoint::Blue::API < PayPoint::Blue::Base
|
|
5
5
|
ENDPOINTS = {
|
|
6
|
-
test: "https://api.mite.
|
|
7
|
-
live: "https://api.
|
|
6
|
+
test: "https://api.mite.pay360.com:2443/acceptor/rest",
|
|
7
|
+
live: "https://api.pay360.com/acceptor/rest",
|
|
8
8
|
}.freeze
|
|
9
9
|
|
|
10
10
|
shortcut :merchant_ref, "transaction.merchant_ref"
|
data/lib/paypoint/blue/base.rb
CHANGED
|
@@ -53,8 +53,8 @@ module PayPoint
|
|
|
53
53
|
# pass through the provided {https://www.runscope.com/ Runscope}
|
|
54
54
|
# bucket, including notification callbacks
|
|
55
55
|
def initialize(endpoint:, inst_id: ENV["BLUE_API_INSTALLATION"],
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
api_id: ENV["BLUE_API_ID"], api_password: ENV["BLUE_API_PASSWORD"],
|
|
57
|
+
**options)
|
|
58
58
|
|
|
59
59
|
@endpoint = get_endpoint_or_override_with(endpoint)
|
|
60
60
|
@inst_id = inst_id or fail ArgumentError, "missing inst_id"
|
data/lib/paypoint/blue/hosted.rb
CHANGED
|
@@ -5,8 +5,8 @@ require "paypoint/blue/base"
|
|
|
5
5
|
# Client class for the Hosted product.
|
|
6
6
|
class PayPoint::Blue::Hosted < PayPoint::Blue::Base
|
|
7
7
|
ENDPOINTS = {
|
|
8
|
-
test: "https://
|
|
9
|
-
live: "https://
|
|
8
|
+
test: "https://api.mite.pay360.com/hosted/rest",
|
|
9
|
+
live: "https://api.pay360.com/hosted/rest",
|
|
10
10
|
}.freeze
|
|
11
11
|
|
|
12
12
|
shortcut :merchant_ref, "transaction.merchant_reference"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: paypoint-blue
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Laszlo Bacsi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-10-
|
|
11
|
+
date: 2016-10-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|