• Resolved resurcer

    (@resurcer)


    Currently it seems like “pending payment” order status when generating invoices is not supported. I need advance invoice to be generated at the moment new order is being created, but it seems it does seem like this plugin does not work that way. I’m testing this with Paysera and Montonio payment processors, neither works well. I’m using 8.3 WooCommerce.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter resurcer

    (@resurcer)

    I solved this by adding additional action into \S123\Includes\Woocommerce\S123_Product::s123_register

    add_action('woocommerce_checkout_order_processed', array( $this, 's123_createInvoice_for_new_order' ), 1 );

    and method:

        public function s123_createInvoice_for_new_order($order_id)
    {
    $order = wc_get_order($order_id);

    $this->s123_createInvoice($order_id, null, $order->get_status());
    }
    • This reply was modified 4 months, 2 weeks ago by resurcer.
    Plugin Author Invoice123

    (@saskaita123)

    We will look into adding this as a option.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.