diff --git a/assets/js/frontend/checkout.js b/assets/js/frontend/checkout.js index b4691f8bd5d..e408c093634 100644 --- a/assets/js/frontend/checkout.js +++ b/assets/js/frontend/checkout.js @@ -72,7 +72,7 @@ jQuery(function($) { data: data, success: function( response ) { if ( response ) { - var order_output = $($.parseHTML(response.trim())); + var order_output = $($.parseHTML($.trim(response))); $('#order_review').html(order_output.html()); $('#order_review').find('input[name=payment_method]:checked').click(); $('body').trigger('updated_checkout');