Skip to content

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

@nflorentin

Description

@nflorentin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions