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 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #26138
    Elliot
    Participant

    Hello – We have a conflict between your stripe Payment Gateway and our custom development. We’ve had a look at the code and think the best solution is to modify the strip plugin code:

    If you can modify your plugin to to hook into the wc-api this will remove any conflicts with other plugins and oauth flows.

    We use the wc-api, which means that our oauth only loads for our calls.

    I think it will not be good to change that. This should be a fairly easy process, but will ensure that other plugins and oauths do not conflict with theirs.

    Let me know if you need some more details and I can go into more detail.

    We’re dead keen to use this but currently we are unable to – thanks!

    Elliot

    #26141
    Elliot
    Participant

    Just to elaborate:

    It is a matter of the oAuth implementation. You use ‘init’ hook to check for authorization token.

    Instead if you use the wc-api, you can just use the woocommerce_api_class_name to do the same. This way the code will be triggered only for their implementation and there will be no conflict. For this you will need to change the redirect_uri of the auth process

    Hope that helps

    #26156
    WC Vendors Support
    Participant

    Would you like access to the private repo to submit a pull request?

    #26158
    Elliot
    Participant

    Any chance you can look into it? I’m just passing on the advice from our developer.. If not, let me know and I’ll discuss with him about changing this.

    Cheers

    #26159
    WC Vendors Support
    Participant

    Probably not, no, unless someone can give us a bug that we can reproduce and then fix. Working on something specific to your custom development would be up to you to submit a pull req. for inclusion in the core plugin.

    #26162
    Elliot
    Participant

    It’s an issue that will occur with anyone using the wc-api. For instance any other plugin from WooCommerce Extension directory using wc-api (not just our custom development).

    You use ‘init’ hook to check for authorization token. Instead if you use the wc-api, you can just use the woocommerce_api_class_name to do the same.

    This way the code will be triggered only for their implementation and there will be no conflict. For this you will need to change the redirect_uri of the auth process.

    Does that make sense? Thanks

    #26166
    WC Vendors Support
    Participant

    It makes a little sense. But remember, I’m not the lead developer, I’m partial dev and more support. 🙂 I’ve created a ticket #11 for Stripe for Jamie to check out.

    #26178
    Elliot
    Participant

    update: this was our fix:

    // stripe - wc-vendors - fix
    
    if ( function_exists( 'stripe_check_connect' ) ) {
       remove_action( 'init', 'stripe_check_connect' );
       add_action( 'parse_request', 'stripe_check_connect', 15 );
      }
    #26180
    WC Vendors Support
    Participant

    Thanks. I’ll send that along to Jamie too!

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