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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26434c8238928ff5264149ab326cb8abc533b583
4
- data.tar.gz: 9b31f00f2e93d4a4b2b16e937741d630b5c4d1e3
3
+ metadata.gz: 153e9ecd01ade6890bf456a002c4bbfa5caef74f
4
+ data.tar.gz: 693db491d2aa3db825f10a2c81e2551e0da57137
5
5
  SHA512:
6
- metadata.gz: 79b82933e3223172365031a9ab577bf150cf87fb5de0f4df34dd980e98b447e2c9c3f8d78c79e39a61e1b4bcf08f0221d03aa673a7d2db0dac21c0435e7d8ec4
7
- data.tar.gz: ed506267c32222a54022814f341e9b2c0ea103ac8e5d2b6e415064c528df25345eef838a54645101f9213a86bf2213a012121eb3b6db8a88ac04b32080c62bae
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),
@@ -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+, +:pre_auth_callback+, +:post_auth_callback+,
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 transaction_notification
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
@@ -1,5 +1,5 @@
1
1
  module PayPoint
2
2
  module Blue # rubocop:disable Documentation
3
- VERSION = "0.5.0"
3
+ VERSION = "0.6.0"
4
4
  end
5
5
  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.5.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-09 00:00:00.000000000 Z
11
+ date: 2015-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday