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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d06c0daa9d1781a4cc739c7ab452b03ab3cfef4d
4
- data.tar.gz: 85da4986ad62293a6d9086492c240cf5da35980a
2
+ SHA256:
3
+ metadata.gz: 202bbdd455262fba3598c8f415f3fbaece682ddce23867b15b3048e6516386fe
4
+ data.tar.gz: c3615ca75516a1dd1264a37a8adcf99bd85e97c4a2a04d7b0e88f0d29784e785
5
5
  SHA512:
6
- metadata.gz: ce83528921c44c16dfe8919b2de5387bed04e4a73c5e3131365e10f6c9ce78ba391a21b603c18d69eca67e2c36d2bf09607bbe7c91f2266bb8f0260084b246e5
7
- data.tar.gz: a74c42f433e60f04138bc74404bac810b8e62c29a8447c89a6ad8233d77f4bc143ef9be237c0e8dd8c67e9ce6cffcbf5ed83f174cb89739b21cfc4fbd762dc9d
6
+ metadata.gz: 736659c3996c73b5ebbc315494fc16cd25c83b27982b24296654825ee92357fb92b59bcf7565089348f0e27eb9fdc21f6a7e7c1440afec2f1306c960b7145c5a
7
+ data.tar.gz: e242de7b2c68db731d006724a7a100ee08bdca4a50f8466344e7c9799d854a56ea54ca84a6fbb74bec334ff5bcc20089962b7e1f0fd122e605ed068b48df2a1d
@@ -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
@@ -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
@@ -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+, +:payment_method_registration+,
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
- payment_method_registration pre_auth_callback post_auth_callback
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
@@ -1,5 +1,5 @@
1
1
  module PayPoint
2
2
  module Blue
3
- VERSION = "1.0.2".freeze
3
+ VERSION = "1.0.3".freeze
4
4
  end
5
5
  end
@@ -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.8"
27
- spec.add_development_dependency "rake", "~> 10.0"
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.2
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: 2019-10-29 00:00:00.000000000 Z
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.8'
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.8'
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: '10.0'
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: '10.0'
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
- rubyforge_project:
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