Skip to content

Commit

Permalink
Allow coupon code w/ special char to be applied in checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielqs committed Oct 25, 2017
1 parent 4d26093 commit fb84267
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ define([
quoteId: quoteId
} : {},
urls = {
'guest': '/guest-carts/' + quoteId + '/coupons/' + couponCode,
'customer': '/carts/mine/coupons/' + couponCode
'guest': '/guest-carts/' + quoteId + '/coupons/' + encodeURIComponent(couponCode),
'customer': '/carts/mine/coupons/' + encodeURIComponent(couponCode)
};

return this.getUrl(urls, params);
Expand Down

0 comments on commit fb84267

Please sign in to comment.