Home Forums Stripe Commissions & Gateway Support Order get marked as paid instead of due

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #23899
    A
    Participant

    Hello, i have a problem with the stripe plugin. I do not know if this is a problem with me or the plugin.
    When a customer purchase a product via PayPal, the order gets the “due” status on the woocommerce>comission page, which is right.
    When a customer purchase a product via Stripe, the order gets the “paid” status, which is not right. It must be on due instead of paid, so i must mark every order with stripe as “due” manually. Any ideas?

    Edit: Currently i pay out my vendors manually once per month.

    WooCommerce Version 2.4.13
    WC Vendors Version 1.8.6
    WC Vendors – Stripe Commissions & Gateway Version 1.0.2

    #23900
    WC Vendors Support
    Participant

    You’re using Stripe Commissions & Gateway, but your vendors dont connect to Stripe on the Vendor Dashboard for their instant commissions?

    #23907
    A
    Participant

    Hello Ben, no i dont think so. I think actually nobody connected his account with stripe yet.

    #23910
    WC Vendors Support
    Participant

    Ok, that’s easy to work with then. We’ll want to do two things in order to fix this up for you:

    1.) Add this code to your themes functions.php file:

    /* WC Vendors - Disable Stripe Connect on Vendor Dashboard Pages */
    remove_action( 'wcvendors_settings_after_paypal', 'woocommerce_stripe_connect_user' );

    2.) Next, edit the core stripe gateway, and make these changes:

    In /wp-content/plugins/wc-vendors-gateway-stripe-connect/classes/class-wc-gateway-stripe.php

    Change:

    if ( class_exists( 'WCV_Commission' ) ) {
    			WCV_Commission::set_order_commission_paid( $order_id );
    }

    to:

    //if ( class_exists( 'WCV_Commission' ) ) {
    			//WCV_Commission::set_order_commission_paid( $order_id );
    //}

    This will comment out the commission trigger, which is marking commissions as paid, instead of due.

    ….Now you’ll immediately say “But, But, I dont want to edit the core plugin!” — It’s OK, the next release of Stripe will have checks so that what you’re commenting out wont matter next time you update Stripe, because it will simply just work properly instead for your situation. So, make that core change once, and when you update Stripe next release, you wont have to make any core changes at all.

    And that’s it!

    Cheers

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Stripe Commissions & Gateway Support’ is closed to new topics and replies.