Class: GpWebpayController
- Inherits:
-
Object
- Object
- GpWebpayController
show all
- Defined in:
- app/controllers/gp_webpay_controller.rb
Instance Method Summary
collapse
Instance Method Details
#set_external_order_number ⇒ Object
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_response ⇒ Object
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_response ⇒ Object
11
12
13
|
# File 'app/controllers/gp_webpay_controller.rb', line 11
def validate_gpwebpay_response
head :forbidden unless @gpwebpay_response.valid?
end
|