• Resolved danielmalmq

    (@danielmalmq)


    Hi,
    Yesterday we discovered an issue with the customer payment links. The order-pay page has been working perfectly up until updating the plugin yesterday. The checkout page still works without any issues at all. The error at the order-pay (custom payment link page) occurs when using the “place order”-button. The first time trying to place the order the console shows a 404 with failed to load resources and if we try a second time without reloading the pagea the we’ll get a GET 404 (Not found). I pasted both console errors below (replaced order_id, unique key and the response with dummy content).

    Failed to load resource: the server responded with a status of 404 ()
    /checkout/order-pay/***order_id***/?pay_for_order=true&key=wc_order_***unique_key***&wc-ajax=wc_stripe_frontend_request&path=/wc-stripe/v1/order-pay#response=eyJwbSI6bnVsbCwid....3D:1


    GET https://blugiallo.com/checkout/order-pay/***order_id***/?pay_for_order=true&key=wc_order_***unique_key***&wc-ajax=wc_stripe_frontend_request&path=/wc-stripe/v1/order-pay 404 (Not Found)

    send @ jquery.min.js:2

    ajax @ jquery.min.js:2

    (anonym) @ jquery-migrate.min.js:2

    e.<computed> @ jquery-migrate.min.js:2

    wc_stripe.CheckoutGateway.process_order_pay @ wc-stripe.min.js:1

    value @ checkout-gateway.js:626

    (anonym) @ checkout-gateway.js:269

    p @ checkout-gateway.js:2

    (anonym) @ checkout-gateway.js:2

    (anonym) @ checkout-gateway.js:2

    h @ checkout-gateway.js:2

    a @ checkout-gateway.js:2

    (anonym) @ checkout-gateway.js:2

    (anonym) @ checkout-gateway.js:2

    (anonym) @ checkout-gateway.js:272

    Promise.then

    value @ checkout-gateway.js:212

    dispatch @ jquery.min.js:2

    v.handle @ jquery.min.js:2

    The logs didn’t show anything so it seems that the call gets a 404 before logs get involved.

    Following the full link of either of the errors results in:
    {"code":?"rest_no_route","message":?"No route was found matching the URL and request method.","data":?{"status":?404}}

    Would really appreciate a solution so we can offer our clients the service again.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @danielmalmq

    It seems that the issue is related to the request url that’s being used on your order pay page. The url should be in the following format:

    https://example.com/?wc-ajax=wc_stripe_frontend_request&path=/wc-stripe/v1/order-pay

    For some reason your server is returning a url that contains the order-pay page path. The Stripe plugin uses the WooCommerce provided code to generate that url.

    WC_AJAX::get_endpoint

    That class method uses a filter called woocommerce_ajax_get_endpoint. You most likely have a 3rd party plugin that’s using that filter to manipulate the url. Nothing has been changed in the Stripe plugin related to the order-pay page functionality.

    Kind Regards

    Thread Starter danielmalmq

    (@danielmalmq)

    Sorry for assuming it was this plugin causing it – and thank you very much for pointing me in the right direction. I’ll go through the entire site and check out which plugin causes this.

    Thanks for a great plugin and service.

    Best regards, Daniel

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Customer payment links not working’ is closed to new replies.