spree_gateway
spree_gateway copied to clipboard
checkout/_payment_confirm.html.erb does not honor the mounting path of Spree Engine
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.