Class: GpWebpayController

Inherits:
Object
  • Object
show all
Defined in:
app/controllers/gp_webpay_controller.rb

Instance Method Summary collapse

Instance Method Details

#set_external_order_numberObject



15
16
17
# File 'app/controllers/gp_webpay_controller.rb', line 15

def set_external_order_number
  @external_order_number = @gpwebpay_response.params[:order_number]
end

#set_gpwebpay_responseObject



7
8
9
# File 'app/controllers/gp_webpay_controller.rb', line 7

def set_gpwebpay_response
  @gpwebpay_response = GpWebpay::Http::HttpResponse.from_hash(params, params[:merchant_number])
end

#validate_gpwebpay_responseObject



11
12
13
# File 'app/controllers/gp_webpay_controller.rb', line 11

def validate_gpwebpay_response
  head :forbidden unless @gpwebpay_response.valid?
end