Support » Plugin: Verotel / CardBilling Payment Gateway for WooCommerce » Doesnt Work w/ Woocommerce 3.0.4

  • The plugin gives a fatal class error when upgrading to Woocommerce 3.0.4. It works fine with version 3.0.3.

    Anybody have any ideas how to fix it?? I hate to be stuck and cant upgrade!

Viewing 14 replies - 1 through 14 (of 14 total)
  • Anybody???????????????????????????

    Plugin Author bkonyn

    (@bkonyn)

    Thanks for emailing me Sobeco.

    I made this plugin for internal use and published it because it may be useful.
    We are still on WC 2 here have not taken the plunge with v3 yet!

    I will look into this in the next few days/weeks and see if we can publish a new version.

    IF anyone has already resolved this then please let me know and that can speed things up!

    Plugin Contributor John Croucher

    (@jcroucher)

    @sobceo, did you want to give this version a test
    https://github.com/speakdigital/Verotel-CardBilling-Payment-Gateway-for-WooCommerce

    I did a test install on WordPress (4.7.5) site with WooCommerce (3.0.7) which seemed fine.

    If you are still getting an error, can you post the exact error message you are getting?

    Plugin Author bkonyn

    (@bkonyn)

    Hey John

    On the latest version I am getting this error:
    PHP Fatal error: Call to undefined function wcs_is_subscription() in wp-content/plugins/woo-payment-gateway-verotel-cardbilling/functions.php on line 567

    I suggest we modify line 567 to read as follows:
    return ( function_exists( ‘wcs_order_contains_subscription’ ) && ( wcs_order_contains_subscription( $order_id ) || wcs_is_subscription( $order_id ) || wcs_order_contains_renewal( $order_id ) ) );

    Do you agree?

    Thanks

    Ben Konyn

    Plugin Contributor John Croucher

    (@jcroucher)

    Yep, that would be a good change.

    Do I need to uninstall the old version before uploading the new version? Or can I just upload and overwrite the old one? I did that and I got this when updating Woo
    Fatal error: Class ‘WC_Payment_Gateway’ not found in /home/getmhard/public_html/wp-content/plugins/woo-payment-gateway-verotel-cardbilling/functions.php on line 32

    Plugin Contributor John Croucher

    (@jcroucher)

    WC_Payment_Gateway comes from WooCommerce. Can you confirm WooCommerce has been installed and is active before installing the verotel extension?

    Also, can you let me know what version of WooCommerce and WordPress you are using?

    Yes it was active… I am back on 3.0.4 after the upgrade didnt work. But now I cant get the verotel plugin to work at all. So I had to remove it temporarily. I am guessing because I only have the newer version you just updated with.

    When I install I just get a white page with the following error

    Woo
    Fatal error: Class ‘WC_Payment_Gateway’ not found in /home/getmhard/public_html/wp-content/plugins/woo-payment-gateway-verotel-cardbilling/functions.php on line 32

    Plugin Contributor John Croucher

    (@jcroucher)

    Hmm. Very weird. I will do some more testing and get back to you.
    If you could provide any further details of the process you were going through, that would be helpful.

    Plugin Author bkonyn

    (@bkonyn)

    The current version of WC is 3.0.7 – perhaps it was a bug with 3.0.4?
    Also could it be a PHP issue? what does your /wp-admin/admin.php?page=wc-status page say?

    I am up and running on WP 4.7.5 with WC 3.0.7 on PHP 5.6.30

    Plugin Author bkonyn

    (@bkonyn)

    John perhaps we should add code to check that WC is active before allowing the plugin add itself?

    I have gotten it to work with the latest Woo… I just tried again and it worked. THanks for the support and help

    Question… Hopefully the last one.

    I believe these are new options because i dont recall them in the other version.

    What are these?

    Customer ID – ????
    Control Center Key – I am guessing this is the number that is used when logging into the verotel control center???

    Plugin Contributor John Croucher

    (@jcroucher)

    Those two new options are required for cancelling of subscription payments.
    FlexPay is the front end charging system for Verotel.
    Control Center is the back end “admin” system where you can do extra things to payments such as cancel subscriptions.
    You can get these details through the Verotel Control Center. It is not needed if you don’t use subscriptions.

    I will write up some more details on how it all works with some screenshots a bit later in case it helps.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Doesnt Work w/ Woocommerce 3.0.4’ is closed to new replies.