Class: DefraRubyMocks::WorldpayResponseService::WorldpayResponse

Inherits:
Struct
  • Object
show all
Defined in:
app/services/defra_ruby_mocks/worldpay_response_service.rb

Instance Method Summary collapse

Instance Method Details

#paramsObject



28
29
30
31
32
33
34
35
36
37
# File 'app/services/defra_ruby_mocks/worldpay_response_service.rb', line 28

def params
  [
    "orderKey=#{order_key}",
    "paymentStatus=#{status}",
    "paymentAmount=#{value}",
    "paymentCurrency=GBP",
    "mac=#{mac}",
    "source=WP"
  ].join("&")
end

#urlObject



24
25
26
# File 'app/services/defra_ruby_mocks/worldpay_response_service.rb', line 24

def url
  [supplied_url, separator, params].join
end