paypoint-blue 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/paypoint/blue/api.rb +2 -1
- data/lib/paypoint/blue/base.rb +1 -1
- data/lib/paypoint/blue/hosted.rb +4 -3
- data/lib/paypoint/blue/version.rb +1 -1
- data/paypoint-blue.gemspec +2 -2
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 202bbdd455262fba3598c8f415f3fbaece682ddce23867b15b3048e6516386fe
|
4
|
+
data.tar.gz: c3615ca75516a1dd1264a37a8adcf99bd85e97c4a2a04d7b0e88f0d29784e785
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 736659c3996c73b5ebbc315494fc16cd25c83b27982b24296654825ee92357fb92b59bcf7565089348f0e27eb9fdc21f6a7e7c1440afec2f1306c960b7145c5a
|
7
|
+
data.tar.gz: e242de7b2c68db731d006724a7a100ee08bdca4a50f8466344e7c9799d854a56ea54ca84a6fbb74bec334ff5bcc20089962b7e1f0fd122e605ed068b48df2a1d
|
data/lib/paypoint/blue/api.rb
CHANGED
@@ -14,6 +14,7 @@ class PayPoint::Blue::API < PayPoint::Blue::Base
|
|
14
14
|
shortcut :description, "transaction.description"
|
15
15
|
shortcut :customer_ref, "customer.merchant_ref"
|
16
16
|
shortcut :customer_name, "customer.display_name"
|
17
|
+
shortcut :customer_registration, "customer.registered"
|
17
18
|
|
18
19
|
shortcut :pre_auth_callback, "callbacks.pre_auth_callback.url"
|
19
20
|
shortcut :post_auth_callback, "callbacks.post_auth_callback.url"
|
@@ -46,7 +47,7 @@ class PayPoint::Blue::API < PayPoint::Blue::Base
|
|
46
47
|
def make_payment(**payload)
|
47
48
|
payload = build_payload payload, defaults: %i(
|
48
49
|
currency commerce_type pre_auth_callback post_auth_callback
|
49
|
-
transaction_notification expiry_notification
|
50
|
+
transaction_notification expiry_notification customer_registration
|
50
51
|
)
|
51
52
|
client.post "transactions/#{inst_id}/payment", payload
|
52
53
|
end
|
data/lib/paypoint/blue/base.rb
CHANGED
@@ -107,7 +107,7 @@ module PayPoint
|
|
107
107
|
end
|
108
108
|
f.response :json, content_type: /\bjson$/
|
109
109
|
if options[:logger] || options[:log]
|
110
|
-
f.response :logger, options[:logger]
|
110
|
+
f.response :logger, options[:logger], { headers: true, bodies: true }
|
111
111
|
end
|
112
112
|
|
113
113
|
# This sends all API traffic through Runscope, including
|
data/lib/paypoint/blue/hosted.rb
CHANGED
@@ -21,6 +21,7 @@ class PayPoint::Blue::Hosted < PayPoint::Blue::Base
|
|
21
21
|
shortcut :restore_url, "session.restore_url.url"
|
22
22
|
shortcut :skin, "session.skin"
|
23
23
|
shortcut :payment_method_registration, "features.payment_method_registration"
|
24
|
+
shortcut :customer_registration, "customer.registered"
|
24
25
|
|
25
26
|
shortcut :pre_auth_callback, "session.pre_auth_callback.url"
|
26
27
|
shortcut :post_auth_callback, "session.post_auth_callback.url"
|
@@ -64,7 +65,7 @@ class PayPoint::Blue::Hosted < PayPoint::Blue::Base
|
|
64
65
|
#
|
65
66
|
# @applies_defaults
|
66
67
|
# +:currency+, +:commerce_type+, +:return_url+, +:cancel_url+,
|
67
|
-
# +:restore_url+, +:skin+,
|
68
|
+
# +:restore_url+, +:skin+,
|
68
69
|
# +:pre_auth_callback+, +:post_auth_callback+, +:transaction_notification+
|
69
70
|
#
|
70
71
|
# @param [Hash] payload the payload is made up of the keyword
|
@@ -74,8 +75,8 @@ class PayPoint::Blue::Hosted < PayPoint::Blue::Base
|
|
74
75
|
def make_payment(**payload)
|
75
76
|
payload = build_payload payload, defaults: %i(
|
76
77
|
currency commerce_type return_url cancel_url restore_url skin
|
77
|
-
|
78
|
-
transaction_notification
|
78
|
+
pre_auth_callback post_auth_callback
|
79
|
+
transaction_notification customer_registration
|
79
80
|
)
|
80
81
|
client.post "sessions/#{inst_id}/payments", build_payload(payload)
|
81
82
|
end
|
data/paypoint-blue.gemspec
CHANGED
@@ -23,8 +23,8 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_dependency "faraday_middleware"
|
24
24
|
spec.add_dependency "hashie"
|
25
25
|
|
26
|
-
spec.add_development_dependency "bundler", "~> 1
|
27
|
-
spec.add_development_dependency "rake", "~>
|
26
|
+
spec.add_development_dependency "bundler", "~> 2.1"
|
27
|
+
spec.add_development_dependency "rake", "~> 13.0.3"
|
28
28
|
spec.add_development_dependency "webmock"
|
29
29
|
spec.add_development_dependency "guard"
|
30
30
|
spec.add_development_dependency "guard-minitest"
|
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: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Laszlo Bacsi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -58,28 +58,28 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '1
|
61
|
+
version: '2.1'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '1
|
68
|
+
version: '2.1'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 13.0.3
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 13.0.3
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: webmock
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -202,8 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
202
|
- !ruby/object:Gem::Version
|
203
203
|
version: '0'
|
204
204
|
requirements: []
|
205
|
-
|
206
|
-
rubygems_version: 2.5.2.3
|
205
|
+
rubygems_version: 3.1.3
|
207
206
|
signing_key:
|
208
207
|
specification_version: 4
|
209
208
|
summary: API client for PayPoint Blue
|