• Resolved kingneb

    (@kingneb)


    Hello,

    I just updated to the latest version today and it seems to be stuck in test mode. I have not made any changes, other than turn on the new partial payments by default option.

    I checked my paypal settings. Correct email and the test mode option is turned off. It is sending everyone to PayPal’s Sandbox test site.

    thanks

    https://www.ads-software.com/plugins/wp-invoice/

Viewing 15 replies - 1 through 15 (of 24 total)
  • Plugin Contributor Anton Korotkoff

    (@anton-korotkoff)

    Hey,

    Are you talking about general settings or invoice specific?

    Thread Starter kingneb

    (@kingneb)

    Both.

    In general, i have paypal as default and only option. Test mode is off. Email is correct.

    When i create a new invoice, i simply select “Paypal” and those settings carry over.

    I’ve been using it this way for months and it has worked fine. When i updated to 3.09.4 this morning, it wants to take all invoices to sandbox, including any new ones i create.

    A developer ran into the same problem with one of his clients and gave me a temp. fix: https://usabilitydynamics.com/products/wp-invoice/forum/topic/update-version-3-09-4-is-stuck-in-sandbox-mode/

    Plugin Contributor Anton Korotkoff

    (@anton-korotkoff)

    Reinstalling the plugin will fix the problem. Remove all you can find in wp_options table using LIKE %wpi%. Setup settings again. Invoices will not disappear.

    Having the same problem here. Uninstalled and reinstalled but the problem continues. Can someone guide me on how to go in the database to remove anything with %wpi% to reset the settings?

    I can go in with PHPMyadmin but I don’t want to mess up anything.

    Plugin Contributor Anton Korotkoff

    (@anton-korotkoff)

    https://screencast.com/t/RgmCoh8mxg

    that way you’ll need to setup WP-Invoice settings again

    Plugin Contributor Anton Korotkoff

    (@anton-korotkoff)

    Got it working. Now it’s all perfect. Thank you!

    Having the same issue.
    try to pay invoice directs to sandbox.paypal

    — Removed Plug-in
    — Re-installed wp-invoice 3.09.4
    — Ran – DELETE FROM ‘wp_options` WHERE option_name like ‘wpi_options’

    — WP-Invoice settings again

    same issue, try to pay invoice directs to sandbox.paypal
    and premium features are gone, PDF and Quote options

    Thanks

    Re-installing the plugin and Removing all wp_options table using LIKE %wpi% did not fix the issue.

    core/gateways/class_wpi_paypal.php

    Change line 166 from:

    return $invoice[‘billing’][‘wpi_paypal’][‘settings’][‘test_mode’][‘value’] == ‘N’ ? apply_filters( ‘wpi_paypal_live_url’, ‘https://www.paypal.com/cgi-bin/webscr’ ) : apply_filters( ‘wpi_paypal_demo_url’, ‘https://www.sandbox.paypal.com/cgi-bin/webscr’ );

    To

    return $invoice[‘billing’][‘wpi_paypal’][‘settings’][‘test_mode’][‘value’] == ‘N’ ? apply_filters( ‘wpi_paypal_live_url’, ‘https://www.paypal.com/cgi-bin/webscr’ ) : apply_filters( ‘wpi_paypal_demo_url’, ‘https://www.paypal.com/cgi-bin/webscr’ );

    Worked perfect.. thx

    https://usabilitydynamics.com/products/wp-invoice/forum/topic/update-version-3-09-4-is-stuck-in-sandbox-mode/?#post-27057

    **deleted**

    Having the same issue.
    try to pay invoice directs to sandbox.paypal

    — Removed Plug-in
    — Re-installed wp-invoice 3.09.4
    — Ran – DELETE FROM ‘wp_options` WHERE option_name like ‘wpi_options’

    — WP-Invoice settings again

    same issue, try to pay invoice directs to sandbox.paypal
    and premium features are gone, PDF and Quote options

    Thanks

    Apologies for the split post.. forum software is acting particularly stupid today..

    Followed these SAME steps I quoted above.. with one small exception.. I ran
    SELECT * FROM wp_options WHERE option_name LIKE '%wpi%'

    I got no joy, and I’m reluctant to implement this “fix” because it’s CLEARLY a workaround.. I am also reluctant to have to redo all my setup again since I have custom e-mail templates which are stored as part of the plugin options so they are wiped out..

    What other options to FIX this are there.. I’m starting to get worried that the RIGHT fix is going to cause me to have to lose data..

    **sigh** I know I just posted my question, but I have a customer who needs to pay me RIGHT NOW, and so I applied the bandaid fix posted earlier.. However there has to be ANOTHER solution for longer term because the recommendation to delete the plugin, clear the database, and re-install/re-configure the plugin is NOT working..

    I also think that from now on I am going to wait to see what bugs get reported on the support thread first before I update this plugin going forward.. Sorry Anton, but I’ve gotten burned on at LEAST two other occasions with updates of this plugin wiping out or crippling functionality that literally “bricks” this plugin for me..

    Plugin Contributor Anton Korotkoff

    (@anton-korotkoff)

    Hey,

    roll back fix you did directly to the plugin and add the following to your functions.php or somewhere else:

    add_filter('wpi_paypal_demo_url', 'fix_wpi_pp_url');
    function fix_wpi_pp_url( $url ) {
      return 'https://www.paypal.com/cgi-bin/webscr';
    }

    If you need to enable sandbox then comment this out.

    BTW, new invoices should work well after you re-installed the plugin. Issue may appear for old active invoices.

    Thanks.

    Don’t take this wrong Anton, but this also feels like another “bandaid” fix. Though admittedly it is a BETTER bandaid fix than what’s been posted as it has the added benefit of not being wiped out if this module is updated.. I reversed my changes to core/gateways/class_wpi_paypal.php posted earlier. Then using Otto’s Pluginception plugin, I created a down and dirty plugin for this code and activated it.. Now if I need to use the PayPal sandbox, I simply deactivate my plugin..

    Please tell me a more permanent fix is in the works??????

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘3.09.4 Stuck in Test Mode’ is closed to new replies.