class GpWebpay::Http::Services::CreateOrder

Public Class Methods

new(attributes, locale, merchant_number: nil, url_attributes: {}) click to toggle source
Calls superclass method GpWebpay::Http::BaseSignedRequest::new
# File lib/gp_webpay/http/services/create_order.rb, line 14
def initialize(attributes, locale, merchant_number: nil, url_attributes: {})
  super(attributes, locale, 'CREATE_ORDER', merchant_number: merchant_number, url_attributes: url_attributes)
end

Protected Instance Methods

callback_url() click to toggle source
# File lib/gp_webpay/http/services/create_order.rb, line 20
def callback_url
  GpWebpay::Engine.routes.url_helpers.gp_webpay_orders_url({ merchant_number: config.merchant_number, locale: locale }.merge(url_attributes))
end