diff --git a/app/controllers/spree/checkout_controller_decorator.rb b/app/controllers/spree/checkout_controller_decorator.rb index 532c5b7..b6ca643 100644 --- a/app/controllers/spree/checkout_controller_decorator.rb +++ b/app/controllers/spree/checkout_controller_decorator.rb @@ -173,8 +173,8 @@ module Spree @order.finalize! flash[:notice] = I18n.t(:order_processed_successfully) + flash[:commerce_tracking] = "true" redirect_to completion_route - else payment.failure! order_params = {} @@ -269,8 +269,8 @@ module Spree def order_opts(order, payment_method_id, stage) items = order.line_items.map do |item| price = (item.price * 100).to_i # convert for gateway - { :name => item.variant.product.name, - :description => (item.variant.product.description[0..120] if item.variant.product.description), + { :name => item.variant.product.name.gsub(/<\/?[^>]*>/, ""), + :description => (item.variant.product.description[0..120].gsub(/<\/?[^>]*>/, "") if item.variant.product.description), :number => item.variant.sku, :quantity => item.quantity, :amount => price,