Skip to content
This repository was archived by the owner on Nov 29, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion app/controllers/spree/checkout_controller_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,12 @@ def paypal_finish
private

def asset_url(_path)
URI::HTTP.build(:path => ActionController::Base.helpers.asset_path(_path), :host => Spree::Config[:site_url].strip).to_s
host = Spree::Config[:site_url].strip
unless host.match /https?:\/\//
host = "http://#{host}"
end
uri = URI.parse(host)
URI::HTTP.build(:path => ActionController::Base.helpers.asset_path(_path), :host => uri.host, :port => (uri.port || 80)).to_s
end

def record_log(payment, response)
Expand Down