spree_gateway icon indicating copy to clipboard operation
spree_gateway copied to clipboard

checkout/_payment_confirm.html.erb does not honor the mounting path of Spree Engine

Open nflorentin opened this issue 4 years ago • 0 comments

Hi,

The following line in checkout/_payment_confirm.html.erb has an hardcoded url which does not honor the mounting path of Spree Engine. Therefore, the payment is failing if mounting path is different than '/'.

$.post("/api/v2/storefront/intents/handle_response", { response: response, order_token: "<%= @order.token %>" }).done(function (result) {

I guess this is a bug because the other spree gems take into account the mouting path.

To temporarily fix it, I copied the entire file and update the url by hand.

Thanks for your work.

nflorentin avatar Jul 09 '21 06:07 nflorentin