Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter siggyve

    (@siggyve)

    Hi,

    Thanks for your reply.

    I have updated everything and also checked out the permalinks but nothing has improved the situation.
    After further investigation I noticed that the function get_checkout_payment_url is getting the wrong url from somewhere

    /**
    * Generates a URL so that a customer can pay for their (unpaid - pending) order. Pass 'true' for the checkout version which doesn't offer gateway choices.
    *
    * @param bool $on_checkout If on checkout.
    * @return string
    */
    public function get_checkout_payment_url( $on_checkout = false ) {
    $pay_url = wc_get_endpoint_url( 'order-pay', $this->get_id(), wc_get_checkout_url() );

    if ( $on_checkout ) {
    $pay_url = add_query_arg( 'key', $this->get_order_key(), $pay_url );
    } else {
    $pay_url = add_query_arg(
    array(
    'pay_for_order' => 'true',
    'key' => $this->get_order_key(),
    ),
    $pay_url
    );
    }

    return apply_filters( 'woocommerce_get_checkout_payment_url', $pay_url, $this );
    }

    This is the relevant code that should create the url.
    Furthermore the structure of the payment link also seems to be a bit off, have tried to manually manipulate it to get to the payment page but haven’t been successful as of yet (tried both as admin and non logged in user).

    Example of what is currently as link:

    ?pay_for_order=true&key=wc_order_bCsm1p4tDAITU#/order-pay/6213160117122/

    From information I can find online I get the impression that the order seems wrong, shouldn’t the /order-pay/<order id>/ be before the pay_for_order?

    Have also tried to disable several plugins that could have an effect into this but nothing gave any difference.

    I know that this worked in the past, but it’s already weeks, perhaps months ago since it was last used.

    Any further ideas?

    Thanks

    error on frontend: We are not able to complete your request right now. Please try after sometime. Get in touch with us at [email protected] if you are seeing this error again and again

    Same issue, entire site could barely be reached. needed to disable the Simprosys plugin

Viewing 3 replies - 1 through 3 (of 3 total)