defra_ruby_mocks 1.0.0 → 1.1.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: a51d8ad9a6aacfc79ec4354df4b6ac22a95e4d3e
4
- data.tar.gz: f97be7da287ba2987204dea1cc6ae72b188aa454
3
+ metadata.gz: 8fcd5775c21149e97c7c65f92b1f469adf065565
4
+ data.tar.gz: b056b6419ada5eb1bf86dcabaee805cf6eae155a
5
5
  SHA512:
6
- metadata.gz: 4251aedd24958f9cb6bac0f0fc6378f741f8fbf798e87f07e4cce3379c2c276bbd5ce28ec6a89b8d8cef378eb8a9182679c4f53d823763df38c0d7b49ed45b87
7
- data.tar.gz: d9ea74e870ab67ad6cca27b328a41ac7ddb0e132f435c718a596b91f1f0f9161067364497fc43b546b2fbff94c8a59a25a597976d65385d9fb3e166d4b7a1e07
6
+ metadata.gz: b6239c9c0d4ea46e2cb47b89dc44c67df263fcddf2704f85b46536529f6db67427f3f830d4842c0943f2eb9eb61558e92d08ac0d2bfd0bd81ec3b010f66f5de7
7
+ data.tar.gz: 494e1b4a8ef9bf6645be512e915faf5c41dfbc0927da4eb2dcda28f52bef8389adc7bd944437c01aca8ba8e40f10565fd6a0f02ad5a5377e773a22b7011cc141
data/README.md CHANGED
@@ -104,6 +104,68 @@ The list of possible statuses was taken from
104
104
  - [Companies House API](https://developer.companieshouse.gov.uk/api/docs/company/company_number/companyProfile-resource.html)
105
105
  - [Companies House API enumerations](https://github.com/companieshouse/api-enumerations/blob/master/constants.yml)
106
106
 
107
+ ### Worldpay
108
+
109
+ When mounted into an app you can simulate interacting with the Worldpay hosted pages service.
110
+
111
+ Making a payment with Worldpay essentially comes in 2 stages
112
+
113
+ 1. The app sends an XML request to Worldpay asking it to prepare for a new payment. Worldpay responds with a reference and a URL to redirect the user to
114
+ 2. The app redirects the user to the URL and adds to it query params that tell Worldpay where to redirect the user to when the payment is complete
115
+
116
+ For more details check out [Making a payment with WorldPay](https://github.com/DEFRA/ruby-services-team/blob/master/services/wcr/payment_with_worldpay.md)
117
+
118
+ This Worldpay mock replicates those 2 interactions with the following urls
119
+
120
+ - `../worldpay/payments-service`
121
+ - `../worldpay/dispatcher`
122
+
123
+ #### Configuration
124
+
125
+ In order to use the Worldpay mock you'll need to provide additional configuration details
126
+
127
+ ```ruby
128
+ # config/initializers/defra_ruby_mocks.rb
129
+ require "defra_ruby_mocks"
130
+
131
+ DefraRubyMocks.configure do |config|
132
+ config.enable = true
133
+ config.delay = 1000
134
+
135
+ config.worldpay_admin_code = "admincode1"
136
+ config.worldpay_mac_secret = "macsecret1"
137
+ config.worldpay_merchant_code = "merchantcode1"
138
+ config.worldpay_domain = "http://localhost:3000/mocks"
139
+ end
140
+ ```
141
+
142
+ It's important that the admin code, mac secret and merchant code are the same as used by the apps calling the Worldpay mock. These values are used when generating the responses and are validated by the apps so it's important they match.
143
+
144
+ The domain is used when generating the URL we tell the app to redirect users to. As this is just an engine and not a standalone service, we need to tell it what domain it is running from. For example, if the engine is mounted into the app like this
145
+
146
+ ```ruby
147
+ mount DefraRubyMocks::Engine => "/mocks"
148
+ ```
149
+
150
+ And the app is running at `http://localhost:3000`, this engine can then use that information to tell the app to redirect users to `http://localhost:3000/mocks/worldpay/dispatcher` as part of the `payments-service` response.
151
+
152
+ #### Only for Waste Carriers
153
+
154
+ At this time there is only one digital service built using Ruby on Rails that uses Worldpay; the [Waste Carriers Registration service](https://github.com/DEFRA/ruby-services-team/tree/master/services/wcr). So the Worldpay mock has been written with the assumption it will only be mounted into one of the Waste Carriers apps.
155
+
156
+ A critical aspect of this is the expectation that the following classes will be loaded and available when the engine is mounted and the app is running
157
+
158
+ - `WasteCarriersEngine::TransientRegistration`
159
+ - `WasteCarriersEngine::Registration`
160
+
161
+ We need these classes so we can use them to query the database for the registration the payment is being made against. We only get the registration reference in the request made to `/worldpay/dispatcher`, not the order code. As the response needs to include the order code we need access to these ActiveRecord models to locate the last order added.
162
+
163
+ In the live Worldpay service this information (along with the amount to be paid) is saved after the initial request to `/payments-service`. The mock however isn't persisting anything to reduce complexity. So instead it needs to be able to query the database for the information it needs via ActiveRecord.
164
+
165
+ #### Payment pages are not mocked
166
+
167
+ The actual Worldpay service presents payment pages that display a form where users are able to enter their credit card details and confirm the payment is correct. This mock does **not** replicate the UI of Worldpay, only the API. Bear this in mind when building any automated acceptance tests.
168
+
107
169
  ## Installation
108
170
 
109
171
  You don't need to do this if you're just mounting the engine without making any changes.
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DefraRubyMocks
4
+ class WorldpayController < ApplicationController
5
+
6
+ before_action :set_default_response_format
7
+
8
+ def payments_service
9
+ response_values = WorldpayRequestService.run(request.body.read)
10
+
11
+ @merchant_code = response_values[:merchant_code]
12
+ @order_code = response_values[:order_code]
13
+ @worldpay_id = response_values[:id]
14
+ @worldpay_url = response_values[:url]
15
+
16
+ respond_to :xml
17
+ rescue StandardError
18
+ head 500
19
+ end
20
+
21
+ def dispatcher
22
+ success_url = params[:successURL]
23
+ redirect_to WorldpayResponseService.run(success_url)
24
+ rescue StandardError
25
+ head 500
26
+ end
27
+
28
+ private
29
+
30
+ def set_default_response_format
31
+ request.format = :xml
32
+ end
33
+
34
+ end
35
+ end
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DefraRubyMocks
4
+ class WorldpayRequestService < BaseService
5
+ def run(data)
6
+ check_config
7
+
8
+ xml = Nokogiri::XML(data)
9
+ @merchant_code = extract_merchant_code(xml)
10
+ @order_code = extract_order_code(xml)
11
+
12
+ {
13
+ merchant_code: @merchant_code,
14
+ order_code: @order_code,
15
+ id: generate_id,
16
+ url: generate_url
17
+ }
18
+ end
19
+
20
+ private
21
+
22
+ def check_config
23
+ domain = DefraRubyMocks.configuration.worldpay_domain
24
+
25
+ raise InvalidConfigError, :worldpay_domain if domain.blank?
26
+ end
27
+
28
+ def extract_merchant_code(xml)
29
+ payment_service = xml.at_xpath("//paymentService")
30
+ payment_service.attribute("merchantCode").text
31
+ end
32
+
33
+ def extract_order_code(xml)
34
+ order = xml.at_xpath("//order")
35
+ order.attribute("orderCode").text
36
+ end
37
+
38
+ def generate_id
39
+ # Worldpay seems to generate 10 digit numbers for all its ID's. So we
40
+ # replicate that here with this.
41
+ # https://stackoverflow.com/a/31043825
42
+ rand(1e9...1e10).to_i.to_s
43
+ end
44
+
45
+ def generate_url
46
+ "#{base_url}?OrderKey=#{@merchant_code}%5E#{@order_code}"
47
+ end
48
+
49
+ def base_url
50
+ File.join(DefraRubyMocks.configuration.worldpay_domain, "/worldpay/dispatcher")
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,98 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DefraRubyMocks
4
+ class WorldpayResponseService < BaseService
5
+
6
+ def run(success_url)
7
+ parse_reference(success_url)
8
+ locate_registration
9
+ @order = last_order
10
+
11
+ response_url(success_url)
12
+ end
13
+
14
+ private
15
+
16
+ def parse_reference(url)
17
+ path = URI.parse(url).path
18
+ parts = path.split("/")
19
+
20
+ if parts[1].downcase == "your-registration"
21
+ # ["", "your-registration", "xP2zj9nqWYI0SAsMtGZn6w", "worldpay", "success", "1577812071", "NEWREG"]
22
+ @reference = parts[-5]
23
+ @url_format = :old
24
+ else
25
+ # ["", "fo", "jq6sTt2RQguAu4ZyKFfRg9zm", "worldpay", "success"]
26
+ @reference = parts[-3]
27
+ @url_format = :new
28
+ end
29
+ end
30
+
31
+ def locate_registration
32
+ @registration = locate_transient_registration || locate_completed_registration
33
+
34
+ raise(MissingRegistrationError, @reference) if @registration.nil?
35
+ end
36
+
37
+ def locate_transient_registration
38
+ "WasteCarriersEngine::TransientRegistration"
39
+ .constantize
40
+ .where(token: @reference)
41
+ .first
42
+ end
43
+
44
+ def locate_completed_registration
45
+ "WasteCarriersEngine::Registration"
46
+ .constantize
47
+ .where(reg_uuid: @reference)
48
+ .first
49
+ end
50
+
51
+ def last_order
52
+ @registration.finance_details&.orders&.order_by(dateCreated: :desc)&.first
53
+ end
54
+
55
+ def order_key
56
+ [
57
+ DefraRubyMocks.configuration.worldpay_admin_code,
58
+ DefraRubyMocks.configuration.worldpay_merchant_code,
59
+ @order.order_code
60
+ ].join("^")
61
+ end
62
+
63
+ def order_value
64
+ @order.total_amount.to_s
65
+ end
66
+
67
+ def generate_mac
68
+ data = [
69
+ order_key,
70
+ order_value,
71
+ "GBP",
72
+ "AUTHORISED",
73
+ DefraRubyMocks.configuration.worldpay_mac_secret
74
+ ]
75
+
76
+ Digest::MD5.hexdigest(data.join).to_s
77
+ end
78
+
79
+ def query_string
80
+ [
81
+ "orderKey=#{order_key}",
82
+ "paymentStatus=AUTHORISED",
83
+ "paymentAmount=#{order_value}",
84
+ "paymentCurrency=GBP",
85
+ "mac=#{generate_mac}",
86
+ "source=WP"
87
+ ].join("&")
88
+ end
89
+
90
+ def response_url(success_url)
91
+ if @url_format == :new
92
+ "#{success_url}?#{query_string}"
93
+ else
94
+ "#{success_url}&#{query_string}"
95
+ end
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE paymentService PUBLIC "-//WorldPay//DTD WorldPay PaymentService v1//EN"
3
+ "http://dtd.worldpay.com/paymentService_v1.dtd">
4
+ <paymentService version="1.4" merchantCode="<%= @merchant_code %>"><reply><orderStatus orderCode="<%= @order_code %>"><reference id="<%= @worldpay_id %>"><%= @worldpay_url %></reference></orderStatus></reply></paymentService>
data/config/routes.rb CHANGED
@@ -5,4 +5,15 @@ DefraRubyMocks::Engine.routes.draw do
5
5
  to: "company#show",
6
6
  as: "company",
7
7
  constraints: ->(_request) { DefraRubyMocks.configuration.enabled? }
8
+
9
+ get "/worldpay/payments-service",
10
+ to: "worldpay#payments_service",
11
+ as: "worldpay_payments_service",
12
+ constraints: ->(_request) { DefraRubyMocks.configuration.enabled? }
13
+
14
+ get "/worldpay/dispatcher",
15
+ to: "worldpay#dispatcher",
16
+ as: "worldpay_dispatcher",
17
+ constraints: ->(_request) { DefraRubyMocks.configuration.enabled? }
18
+
8
19
  end
@@ -5,6 +5,8 @@ module DefraRubyMocks
5
5
 
6
6
  DEFAULT_DELAY = 1000
7
7
 
8
+ attr_accessor :worldpay_admin_code, :worldpay_mac_secret
9
+ attr_accessor :worldpay_merchant_code, :worldpay_domain
8
10
  attr_reader :delay
9
11
 
10
12
  def initialize
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "configuration"
4
+ require_relative "invalid_config_error"
5
+ require_relative "missing_registration_error"
4
6
 
5
7
  module DefraRubyMocks
6
8
  class Engine < ::Rails::Engine
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DefraRubyMocks
4
+ class InvalidConfigError < StandardError
5
+ def initialize(attribute)
6
+ super("Mocks configuration contains a problem attribute: #{attribute}")
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DefraRubyMocks
4
+ class MissingRegistrationError < StandardError
5
+ def initialize(reference)
6
+ super("Could not find registration: #{reference}")
7
+ end
8
+ end
9
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DefraRubyMocks
4
- VERSION = "1.0.0"
4
+ VERSION = "1.1.0"
5
5
  end
@@ -145,3 +145,335 @@ Processing by DefraRubyMocks::CompanyController#show as HTML
145
145
  Parameters: {"id"=>"SC247974"}
146
146
  Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
147
147
  Completed 200 OK in 1ms (Views: 0.4ms)
148
+ Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2020-01-20 15:42:28 +0000
149
+ Processing by DefraRubyMocks::CompanyController#show as HTML
150
+ Parameters: {"id"=>"05868270"}
151
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (2.8ms)
152
+ Completed 200 OK in 29ms (Views: 28.5ms)
153
+ Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2020-01-20 15:42:28 +0000
154
+ Processing by DefraRubyMocks::CompanyController#show as HTML
155
+ Parameters: {"id"=>"foo"}
156
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.4ms)
157
+ Completed 404 Not Found in 5ms (Views: 4.5ms)
158
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:42:28 +0000
159
+ Processing by DefraRubyMocks::CompanyController#show as HTML
160
+ Parameters: {"id"=>"SC247974"}
161
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
162
+ Completed 200 OK in 1ms (Views: 0.4ms)
163
+ Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2020-01-20 15:42:28 +0000
164
+ Processing by DefraRubyMocks::CompanyController#show as HTML
165
+ Parameters: {"id"=>"99999999"}
166
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
167
+ Completed 404 Not Found in 1ms (Views: 0.4ms)
168
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:42:28 +0000
169
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2020-01-20 15:42:28 +0000
170
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:42:28 +0000
171
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:42:28 +0000
172
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
173
+ Completed 500 Internal Server Error in 0ms
174
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:42:28 +0000
175
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
176
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payments_service.xml.erb (0.5ms)
177
+ Completed 200 OK in 16ms (Views: 14.8ms)
178
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fyour-registration%2F12345%2Fworldpay%2Fsuccess%2F54321%2FNEWREG%3Flocale%3Den" for 127.0.0.1 at 2020-01-20 15:42:29 +0000
179
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
180
+ Parameters: {"successURL"=>"http://example.com/your-registration/12345/worldpay/success/54321/NEWREG?locale=en"}
181
+ Redirected to http://example.com/your-registration/12345/worldpay/success/54321/NEWREG?locale=en&orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
182
+ Completed 302 Found in 1ms
183
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:42:29 +0000
184
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
185
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
186
+ Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
187
+ Completed 302 Found in 1ms
188
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin" for 127.0.0.1 at 2020-01-20 15:42:29 +0000
189
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
190
+ Parameters: {"successURL"=>"http://example.com/forthewin"}
191
+ Completed 500 Internal Server Error in 0ms
192
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:42:29 +0000
193
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
194
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
195
+ Completed 500 Internal Server Error in 0ms
196
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
197
+ Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
198
+ Processing by DefraRubyMocks::CompanyController#show as HTML
199
+ Parameters: {"id"=>"foo"}
200
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (2.7ms)
201
+ Completed 404 Not Found in 28ms (Views: 27.5ms)
202
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
203
+ Processing by DefraRubyMocks::CompanyController#show as HTML
204
+ Parameters: {"id"=>"SC247974"}
205
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (4.0ms)
206
+ Completed 200 OK in 9ms (Views: 8.4ms)
207
+ Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
208
+ Processing by DefraRubyMocks::CompanyController#show as HTML
209
+ Parameters: {"id"=>"05868270"}
210
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
211
+ Completed 200 OK in 1ms (Views: 0.6ms)
212
+ Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
213
+ Processing by DefraRubyMocks::CompanyController#show as HTML
214
+ Parameters: {"id"=>"99999999"}
215
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
216
+ Completed 404 Not Found in 1ms (Views: 0.5ms)
217
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
218
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
219
+ Completed 500 Internal Server Error in 1ms
220
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
221
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
222
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payments_service.xml.erb (0.5ms)
223
+ Completed 200 OK in 15ms (Views: 14.8ms)
224
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
225
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
226
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
227
+ Completed 500 Internal Server Error in 0ms
228
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
229
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
230
+ Parameters: {"successURL"=>"http://example.com/forthewin"}
231
+ Completed 500 Internal Server Error in 0ms
232
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fyour-registration%2F12345%2Fworldpay%2Fsuccess%2F54321%2FNEWREG%3Flocale%3Den" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
233
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
234
+ Parameters: {"successURL"=>"http://example.com/your-registration/12345/worldpay/success/54321/NEWREG?locale=en"}
235
+ Redirected to http://example.com/your-registration/12345/worldpay/success/54321/NEWREG?locale=en&orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
236
+ Completed 302 Found in 1ms
237
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
238
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
239
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
240
+ Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
241
+ Completed 302 Found in 1ms
242
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
243
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
244
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
245
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
246
+ Processing by DefraRubyMocks::CompanyController#show as HTML
247
+ Parameters: {"id"=>"SC247974"}
248
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (3.4ms)
249
+ Completed 200 OK in 27ms (Views: 26.6ms)
250
+ Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
251
+ Processing by DefraRubyMocks::CompanyController#show as HTML
252
+ Parameters: {"id"=>"foo"}
253
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.5ms)
254
+ Completed 404 Not Found in 5ms (Views: 5.3ms)
255
+ Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
256
+ Processing by DefraRubyMocks::CompanyController#show as HTML
257
+ Parameters: {"id"=>"05868270"}
258
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
259
+ Completed 200 OK in 1ms (Views: 0.5ms)
260
+ Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
261
+ Processing by DefraRubyMocks::CompanyController#show as HTML
262
+ Parameters: {"id"=>"99999999"}
263
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
264
+ Completed 404 Not Found in 1ms (Views: 0.4ms)
265
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
266
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
267
+ Parameters: {"successURL"=>"http://example.com/forthewin"}
268
+ Completed 500 Internal Server Error in 0ms
269
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
270
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
271
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
272
+ Completed 500 Internal Server Error in 0ms
273
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fyour-registration%2F12345%2Fworldpay%2Fsuccess%2F54321%2FNEWREG%3Flocale%3Den" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
274
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
275
+ Parameters: {"successURL"=>"http://example.com/your-registration/12345/worldpay/success/54321/NEWREG?locale=en"}
276
+ Redirected to http://example.com/your-registration/12345/worldpay/success/54321/NEWREG?locale=en&orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
277
+ Completed 302 Found in 1ms
278
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
279
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
280
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
281
+ Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
282
+ Completed 302 Found in 1ms
283
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
284
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
285
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payments_service.xml.erb (0.4ms)
286
+ Completed 200 OK in 13ms (Views: 12.7ms)
287
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
288
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
289
+ Completed 500 Internal Server Error in 0ms
290
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
291
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
292
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
293
+ Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
294
+ Processing by DefraRubyMocks::CompanyController#show as HTML
295
+ Parameters: {"id"=>"99999999"}
296
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (2.6ms)
297
+ Completed 404 Not Found in 26ms (Views: 26.0ms)
298
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
299
+ Processing by DefraRubyMocks::CompanyController#show as HTML
300
+ Parameters: {"id"=>"SC247974"}
301
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.4ms)
302
+ Completed 200 OK in 5ms (Views: 4.4ms)
303
+ Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
304
+ Processing by DefraRubyMocks::CompanyController#show as HTML
305
+ Parameters: {"id"=>"foo"}
306
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
307
+ Completed 404 Not Found in 1ms (Views: 0.5ms)
308
+ Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
309
+ Processing by DefraRubyMocks::CompanyController#show as HTML
310
+ Parameters: {"id"=>"05868270"}
311
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
312
+ Completed 200 OK in 1ms (Views: 0.5ms)
313
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
314
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
315
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
316
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
317
+ Parameters: {"successURL"=>"http://example.com/forthewin"}
318
+ Completed 500 Internal Server Error in 0ms
319
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
320
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
321
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
322
+ Completed 500 Internal Server Error in 1ms
323
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fyour-registration%2F12345%2Fworldpay%2Fsuccess%2F54321%2FNEWREG%3Flocale%3Den" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
324
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
325
+ Parameters: {"successURL"=>"http://example.com/your-registration/12345/worldpay/success/54321/NEWREG?locale=en"}
326
+ Redirected to http://example.com/your-registration/12345/worldpay/success/54321/NEWREG?locale=en&orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
327
+ Completed 302 Found in 1ms
328
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
329
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
330
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
331
+ Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
332
+ Completed 302 Found in 1ms
333
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
334
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
335
+ Completed 500 Internal Server Error in 1ms
336
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
337
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
338
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payments_service.xml.erb (0.5ms)
339
+ Completed 200 OK in 14ms (Views: 13.3ms)
340
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
341
+ Processing by DefraRubyMocks::CompanyController#show as HTML
342
+ Parameters: {"id"=>"SC247974"}
343
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (2.8ms)
344
+ Completed 200 OK in 31ms (Views: 30.5ms)
345
+ Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
346
+ Processing by DefraRubyMocks::CompanyController#show as HTML
347
+ Parameters: {"id"=>"foo"}
348
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.3ms)
349
+ Completed 404 Not Found in 5ms (Views: 4.4ms)
350
+ Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
351
+ Processing by DefraRubyMocks::CompanyController#show as HTML
352
+ Parameters: {"id"=>"05868270"}
353
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
354
+ Completed 200 OK in 1ms (Views: 0.5ms)
355
+ Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
356
+ Processing by DefraRubyMocks::CompanyController#show as HTML
357
+ Parameters: {"id"=>"99999999"}
358
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
359
+ Completed 404 Not Found in 1ms (Views: 0.5ms)
360
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
361
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
362
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
363
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
364
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
365
+ Completed 500 Internal Server Error in 0ms
366
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
367
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
368
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payments_service.xml.erb (0.5ms)
369
+ Completed 200 OK in 15ms (Views: 14.6ms)
370
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
371
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
372
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
373
+ Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
374
+ Completed 302 Found in 1ms
375
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fyour-registration%2F12345%2Fworldpay%2Fsuccess%2F54321%2FNEWREG%3Flocale%3Den" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
376
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
377
+ Parameters: {"successURL"=>"http://example.com/your-registration/12345/worldpay/success/54321/NEWREG?locale=en"}
378
+ Redirected to http://example.com/your-registration/12345/worldpay/success/54321/NEWREG?locale=en&orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
379
+ Completed 302 Found in 1ms
380
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
381
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
382
+ Parameters: {"successURL"=>"http://example.com/forthewin"}
383
+ Completed 500 Internal Server Error in 0ms
384
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:50:53 +0000
385
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2020-01-20 15:50:53 +0000
386
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:50:53 +0000
387
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
388
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payments_service.xml.erb (2.7ms)
389
+ Completed 200 OK in 28ms (Views: 27.2ms)
390
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:50:53 +0000
391
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
392
+ Completed 500 Internal Server Error in 0ms
393
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin" for 127.0.0.1 at 2020-01-20 15:50:53 +0000
394
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
395
+ Parameters: {"successURL"=>"http://example.com/forthewin"}
396
+ Completed 500 Internal Server Error in 0ms
397
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:50:53 +0000
398
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
399
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
400
+ Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
401
+ Completed 302 Found in 1ms
402
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:50:53 +0000
403
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:50:53 +0000
404
+ Processing by DefraRubyMocks::CompanyController#show as HTML
405
+ Parameters: {"id"=>"SC247974"}
406
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.4ms)
407
+ Completed 200 OK in 19ms (Views: 18.8ms)
408
+ Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2020-01-20 15:50:53 +0000
409
+ Processing by DefraRubyMocks::CompanyController#show as HTML
410
+ Parameters: {"id"=>"foo"}
411
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.4ms)
412
+ Completed 404 Not Found in 5ms (Views: 4.5ms)
413
+ Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2020-01-20 15:50:53 +0000
414
+ Processing by DefraRubyMocks::CompanyController#show as HTML
415
+ Parameters: {"id"=>"05868270"}
416
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
417
+ Completed 200 OK in 1ms (Views: 0.4ms)
418
+ Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2020-01-20 15:50:53 +0000
419
+ Processing by DefraRubyMocks::CompanyController#show as HTML
420
+ Parameters: {"id"=>"99999999"}
421
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
422
+ Completed 404 Not Found in 1ms (Views: 0.6ms)
423
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:54:20 +0000
424
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2020-01-20 15:54:20 +0000
425
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:54:20 +0000
426
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
427
+ Completed 500 Internal Server Error in 4ms
428
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:54:20 +0000
429
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
430
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payments_service.xml.erb (4.7ms)
431
+ Completed 200 OK in 38ms (Views: 37.8ms)
432
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin" for 127.0.0.1 at 2020-01-20 15:54:20 +0000
433
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
434
+ Parameters: {"successURL"=>"http://example.com/forthewin"}
435
+ Completed 500 Internal Server Error in 1ms
436
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:54:20 +0000
437
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
438
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
439
+ Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
440
+ Completed 302 Found in 0ms
441
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:55:47 +0000
442
+ Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2020-01-20 15:55:47 +0000
443
+ Processing by DefraRubyMocks::CompanyController#show as HTML
444
+ Parameters: {"id"=>"05868270"}
445
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (2.6ms)
446
+ Completed 200 OK in 30ms (Views: 30.0ms)
447
+ Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2020-01-20 15:55:48 +0000
448
+ Processing by DefraRubyMocks::CompanyController#show as HTML
449
+ Parameters: {"id"=>"foo"}
450
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.4ms)
451
+ Completed 404 Not Found in 6ms (Views: 5.4ms)
452
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:55:48 +0000
453
+ Processing by DefraRubyMocks::CompanyController#show as HTML
454
+ Parameters: {"id"=>"SC247974"}
455
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
456
+ Completed 200 OK in 1ms (Views: 0.4ms)
457
+ Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2020-01-20 15:55:48 +0000
458
+ Processing by DefraRubyMocks::CompanyController#show as HTML
459
+ Parameters: {"id"=>"99999999"}
460
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
461
+ Completed 404 Not Found in 1ms (Views: 0.4ms)
462
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:55:48 +0000
463
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
464
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payments_service.xml.erb (0.6ms)
465
+ Completed 200 OK in 13ms (Views: 12.4ms)
466
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:55:48 +0000
467
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
468
+ Completed 500 Internal Server Error in 0ms
469
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin" for 127.0.0.1 at 2020-01-20 15:55:48 +0000
470
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
471
+ Parameters: {"successURL"=>"http://example.com/forthewin"}
472
+ Completed 500 Internal Server Error in 0ms
473
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:55:48 +0000
474
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
475
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
476
+ Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
477
+ Completed 302 Found in 1ms
478
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:55:48 +0000
479
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2020-01-20 15:55:48 +0000