Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • So I’m battling with the same problem.
    I tried replacing:
    This: get_permalink(get_option(‘woocommerce_thanks_page_id’))
    with this: $this->get_return_url($this->order)
    However this created fatal plugin error.

    public function set_main_form_data($order_id, $order) {
    $this->payment_form_data[“PSPID”] = $this->pspid;
    $this->payment_form_data[“ORDERID”] = $order_id;
    $this->payment_form_data[“AMOUNT”] = $order->order_total * 100;
    $this->payment_form_data[“CURRENCY”] = get_option(“woocommerce_currency”);
    $this->payment_form_data[“LANGUAGE”] = “en_US”;
    $this->payment_form_data[“ACCEPTURL”] = add_query_arg(“key”, $order->order_key, add_query_arg(“order”, $order_id, get_permalink(get_option(“woocommerce_thanks_page_id”))));
    $this->payment_form_data[“DECLINEURL”] = $order->get_cancel_order_url();
    }

    I’m not hyper technical, but hoping you guys can help me, since I have the same issue with a Barclays plugin.
    I think the below is the piece of code as far as I can see from your guidance above:

    function process_payment($order_id) {
    global $woocommerce;

    $order = new WC_Order($order_id);

    return array(
    “result” => “success”,
    “redirect” => add_query_arg(“order”, $order->id, add_query_arg(“key”, $order->order_key, get_permalink(get_option(“woocommerce_pay_page_id”))))
    );

    }

    function receipt_page($order) {
    print(“<p>” . __(“Thank you for your order, please click the button below to pay with Barclays.”, “woothemes”) . “</p>”);
    print($this->generate_barclays_form($order));
    }

    I’m struggling here as well, just created this test page, but it doesnt seem to work.
    https://boardmemberssearch.com/board-meeting-agenda-template/

    Philbow, what setting did you change, I think I tried changing almost everything… ??

    Kind Regards
    Mads

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