paypoint-blue 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/console +1 -0
- data/lib/paypoint/blue/hosted.rb +5 -3
- data/lib/paypoint/blue/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: 153e9ecd01ade6890bf456a002c4bbfa5caef74f
|
4
|
+
data.tar.gz: 693db491d2aa3db825f10a2c81e2551e0da57137
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 753f1ea2f28efcda32dbe6e6508640669774790794226850863f5d916aeae7b7c9ac4ce6f74883d6b70566be9f674e0f0957d0f8f142ae96623a2d84bf07fc2b
|
7
|
+
data.tar.gz: aa1d5c4f2babeed4c25c05d9842db37dc3183401882563c88d07532a5fecda5a24c4acaeb7226c9b46ae8d0c8992d90fb452c28386a44485fbdd893bd719366b
|
data/bin/console
CHANGED
@@ -67,6 +67,7 @@ def blue_default_options
|
|
67
67
|
currency: 'GBP',
|
68
68
|
commerce_type: 'ECOM',
|
69
69
|
skin: ENV['BLUE_SKIN'],
|
70
|
+
payment_method_registration: "optional",
|
70
71
|
return_url: "#{return_base}/callback/return/%merchant_ref%",
|
71
72
|
pre_auth_callback: cb(:preauth_proceed),
|
72
73
|
post_auth_callback: cb(:postauth_proceed),
|
data/lib/paypoint/blue/hosted.rb
CHANGED
@@ -20,6 +20,7 @@ class PayPoint::Blue::Hosted < PayPoint::Blue::Base
|
|
20
20
|
shortcut :cancel_url, "session.cancel_url.url"
|
21
21
|
shortcut :restore_url, "session.restore_url.url"
|
22
22
|
shortcut :skin, "session.skin"
|
23
|
+
shortcut :payment_method_registration, "features.payment_method_registration"
|
23
24
|
|
24
25
|
shortcut :pre_auth_callback, "session.pre_auth_callback.url"
|
25
26
|
shortcut :post_auth_callback, "session.post_auth_callback.url"
|
@@ -63,8 +64,8 @@ class PayPoint::Blue::Hosted < PayPoint::Blue::Base
|
|
63
64
|
#
|
64
65
|
# @applies_defaults
|
65
66
|
# +:currency+, +:commerce_type+, +:return_url+, +:cancel_url+,
|
66
|
-
# +:restore_url+, +:skin+, +:
|
67
|
-
# +:transaction_notification+
|
67
|
+
# +:restore_url+, +:skin+, +:payment_method_registration+,
|
68
|
+
# +:pre_auth_callback+, +:post_auth_callback+, +:transaction_notification+
|
68
69
|
#
|
69
70
|
# @param [Hash] payload the payload is made up of the keyword
|
70
71
|
# arguments passed to the method
|
@@ -73,7 +74,8 @@ class PayPoint::Blue::Hosted < PayPoint::Blue::Base
|
|
73
74
|
def make_payment(**payload)
|
74
75
|
payload = build_payload payload, defaults: %i(
|
75
76
|
currency commerce_type return_url cancel_url restore_url skin
|
76
|
-
pre_auth_callback post_auth_callback
|
77
|
+
payment_method_registration pre_auth_callback post_auth_callback
|
78
|
+
transaction_notification
|
77
79
|
)
|
78
80
|
client.post "sessions/#{inst_id}/payments", build_payload(payload)
|
79
81
|
end
|
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: 0.6.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: 2015-09-
|
11
|
+
date: 2015-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|