govuk-pay-api-client 0.1.1 → 0.1.2

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: cada91da0306f1f94cc1f828af006f6a1167c7df
4
- data.tar.gz: 03460adac2e545abeade816ab446ad158cfa033e
3
+ metadata.gz: d600eb9b82d846f3ab8c177e38e9f4a455300311
4
+ data.tar.gz: 83b303513d1d7073a69deb2c9ff4e48b318de37b
5
5
  SHA512:
6
- metadata.gz: 0019f43b51d895a7be1fe40c1a7e413042dd01fce826af6a14533605aada023f5dcfa91f405a0f98c3b61832357073038e28110d808bcd91ea47c4bb1662bf7e
7
- data.tar.gz: f7a60b8e1587fbb2a8258fae9833e351d74658ed855b01bbf32674404ab26ad9f895afc972104338f794ae779efa24d0fad91619269fae2bcb2567760e917cca
6
+ metadata.gz: 2bd1c3d5f452848ad7ef5c99458f9faff6c9dd681a74c29ebd76dae5840a578285c16cded530b979f8310a189b2655cbe462858715c7d26d1254b074e19e5dca
7
+ data.tar.gz: 68a178b1773105117d4deb61ddda03243dc4e265a235b29b8a07b8746d0e39a8c8609c873b60128be3aae806665872c313d23b904ee5941affe2509a62a6ab94
data/README.md CHANGED
@@ -14,8 +14,8 @@ GovukPayApiClient::CreatePayment.call(<fee object>, <url to return to>)
14
14
 
15
15
  The first argument is a fee object that must repond to `#description`
16
16
  (text), `#reference` (string), and `#amount` (integer, in pence). The
17
- second object is a url string that tell the Govuk Pay gateway where to
18
- return the user after a successful payment. Both are required.
17
+ second object is a url string that tells the Gov UK Pay gateway where to
18
+ redirect the user after a successful payment. Both are required.
19
19
 
20
20
  `GovukPayApiClient::RequiresFeeObject` will be raised if a fee object is
21
21
  not supplied.
@@ -30,7 +30,7 @@ GovukPayApiClient::GetStatus.call(<fee object>)
30
30
  ```
31
31
 
32
32
  Requires a fee object that must respond to `#govpay_payment_id`, which
33
- should return an id that is valid on the Govuk Pay gateway.
33
+ should return an id that is valid on the Gov UK Pay gateway.
34
34
 
35
35
  It returns an object with the method `#status` for a successful calls.
36
36
  Unsuccessful calls raise errors in the 400 to 599 status range and will
@@ -23,7 +23,8 @@ module GovukPayApiClient
23
23
 
24
24
  def parsed_response
25
25
  OpenStruct.new(
26
- next_url: response_body.fetch(:_links).fetch(:next_url).fetch(:href)
26
+ next_url: response_body.fetch(:_links).fetch(:next_url).fetch(:href),
27
+ payment_id: response_body.fetch(:payment_id)
27
28
  )
28
29
  end
29
30
 
@@ -1,3 +1,3 @@
1
1
  module GovukPayApiClient
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk-pay-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todd Tyree
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-07 00:00:00.000000000 Z
11
+ date: 2016-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler