Support » Plugin: RCP VAT » RCP VAT is not working (Stripe)

  • Resolved magoz

    (@magoz)


    I’m using Stripe, and I’ve installed the RCP VAT Plugin, but it’s not working.
    I can configure the plugin, and it shows on the purchase page, but it gets stuck at the end of the purchasing process (no errors, but it gets stuck after filling the fields and clicking the purchase button.)

    I’m using the sandbox mode.

    You can try yourself here:
    https://illustration.tools/courses/strategy-business/buy/

    Any ideas about why is not working? What can I do to solve the problem?
    Thanks,

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author termel

    (@munger41)

    Hi @magoz,

    Can you please send us your debug.log file (under wp-content/) right after testing and having the problem please ?

    This way we could analyse the problem

    Cheers

    Thread Starter magoz

    (@magoz)

    Thanks for your quick reply!

    Here are the logs:

    [08-Apr-2018 11:30:58 UTC] PHP Fatal error:  Uncaught Error: Class 'SoapClient' not found in /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/libs/vendor/dannyvankooten/vat.php/src/Vies/Client.php:26
    Stack trace:
    #0 /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/libs/vendor/dannyvankooten/vat.php/src/Validator.php(57): DvK\Vat\Vies\Client->__construct()
    #1 /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/admin/class-rcp-vat-admin.php(223): DvK\Vat\Validator->__construct()
    #2 /var/www/html/illustration.tools/public_html/wp-includes/class-wp-hook.php(286): Rcp_Vat_Admin->rcp_vat_get_vat_rate('')
    #3 /var/www/html/illustration.tools/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #4 /var/www/html/illustration.tools/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #5 /var/www/html/illustration.tools/public_html/wp-admin/admin-ajax.php(112): do_action('wp_ajax_nopriv_...')
    #6 {main}
      thrown in /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/libs/vendor/dannyvankooten/vat.php/src/Vies/Client.php on line 26
    [08-Apr-2018 11:30:59 UTC] add_templates_location:: /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/rcp
    [08-Apr-2018 11:30:59 UTC] add_templates_location:: /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/rcp
    [08-Apr-2018 11:30:59 UTC] PHP Notice:  get_bloginfo was called with an argument that is <strong>deprecated</strong> since version 2.2.0! The <code>home</code> option is deprecated for the family of <code>bloginfo()</code> functions. Use the <code>url</code> option instead. in /var/www/html/illustration.tools/public_html/wp-includes/functions.php on line 4031
    [08-Apr-2018 11:30:59 UTC] add_templates_location:: /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/rcp
    [08-Apr-2018 11:30:59 UTC] add_templates_location:: /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/rcp
    [08-Apr-2018 11:30:59 UTC] add_templates_location:: /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/rcp
    [08-Apr-2018 11:31:00 UTC] PHP Fatal error:  Uncaught Error: Class 'SoapClient' not found in /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/libs/vendor/dannyvankooten/vat.php/src/Vies/Client.php:26
    Stack trace:
    #0 /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/libs/vendor/dannyvankooten/vat.php/src/Validator.php(57): DvK\Vat\Vies\Client->__construct()
    #1 /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/admin/class-rcp-vat-admin.php(223): DvK\Vat\Validator->__construct()
    #2 /var/www/html/illustration.tools/public_html/wp-includes/class-wp-hook.php(286): Rcp_Vat_Admin->rcp_vat_get_vat_rate('')
    #3 /var/www/html/illustration.tools/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #4 /var/www/html/illustration.tools/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #5 /var/www/html/illustration.tools/public_html/wp-admin/admin-ajax.php(112): do_action('wp_ajax_nopriv_...')
    #6 {main}
      thrown in /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/libs/vendor/dannyvankooten/vat.php/src/Vies/Client.php on line 26
    [08-Apr-2018 11:31:35 UTC] ### VALIDATE ### rcp_vat_rcp_validate_user_fields_on_register
    [08-Apr-2018 11:31:35 UTC] PHP Fatal error:  Uncaught Error: Class 'SoapClient' not found in /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/libs/vendor/dannyvankooten/vat.php/src/Vies/Client.php:26
    Stack trace:
    #0 /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/libs/vendor/dannyvankooten/vat.php/src/Validator.php(57): DvK\Vat\Vies\Client->__construct()
    #1 /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/admin/class-rcp-vat-admin.php(664): DvK\Vat\Validator->__construct()
    #2 /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/admin/class-rcp-vat-admin.php(724): Rcp_Vat_Admin->validateUserFields(Array, 'register')
    #3 /var/www/html/illustration.tools/public_html/wp-includes/class-wp-hook.php(286): Rcp_Vat_Admin->rcp_vat_rcp_validate_user_fields_on_register(Array)
    #4 /var/www/html/illustration.tools/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #5 /var/www/html/illustration.tools/public_html/wp-includes/plugin.php(453): WP_Hook->do in /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/libs/vendor/dannyvankooten/vat.php/src/Vies/Client.php on line 26
    

    Please, let me know if I can provide some additional information/help somehow.
    Thanks!

    Plugin Author termel

    (@munger41)

    Hi @magoz,

    Please upgrade to 1.2.4 : this may not fix your issue, but includes upgrade of the VAT calculation module that need to be up to date before we debug anything.

    Can you please upgrade, retest and post your debug.log please ?

    Thanks

    Thread Starter magoz

    (@magoz)

    Thanks @termel,

    I’ve updated but the issue is still there.

    Here are the new logs.
    Thanks for your help!

    [08-Apr-2018 13:04:22 UTC] rcp_vat_get_vat_rate 
    [08-Apr-2018 13:04:22 UTC] Array
    (
        [action] => rcp_vat_get_vat_rate
    )
    
    [08-Apr-2018 13:04:22 UTC] PHP Notice:  Undefined index: level in /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/admin/class-rcp-vat-admin.php on line 229
    [08-Apr-2018 13:04:22 UTC]  0
    [08-Apr-2018 13:04:22 UTC] PHP Notice:  Trying to get property of non-object in /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/admin/class-rcp-vat-admin.php on line 239
    [08-Apr-2018 13:04:22 UTC] 
    [08-Apr-2018 13:04:22 UTC] Array
    (
        [vat_label] => VAT ( - 0 %)
        [country_name] => 
        [country_vat_rate] => 0
        [level_price] => € Without VAT
        [vat_amount] => 0€
        [total_price] => 0€ With VAT
        [with_tax_label] => With VAT
        [without_tax_label] => Without VAT
    )
    
    [08-Apr-2018 13:04:24 UTC] add_templates_location:: /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/rcp
    [08-Apr-2018 13:04:24 UTC] add_templates_location:: /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/rcp
    [08-Apr-2018 13:04:24 UTC] PHP Notice:  get_bloginfo was called with an argument that is <strong>deprecated</strong> since version 2.2.0! The <code>home</code> option is deprecated for the family of <code>bloginfo()</code> functions. Use the <code>url</code> option instead. in /var/www/html/illustration.tools/public_html/wp-includes/functions.php on line 4031
    [08-Apr-2018 13:04:25 UTC] add_templates_location:: /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/rcp
    [08-Apr-2018 13:04:25 UTC] add_templates_location:: /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/rcp
    [08-Apr-2018 13:04:25 UTC] add_templates_location:: /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/rcp
    [08-Apr-2018 13:04:25 UTC] rcp_vat_get_vat_rate 
    [08-Apr-2018 13:04:25 UTC] Array
    (
        [action] => rcp_vat_get_vat_rate
        [country_code] => ES
        [rcp_company_vat_number] => 
    )
    
    [08-Apr-2018 13:04:25 UTC] PHP Notice:  Undefined index: level in /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/admin/class-rcp-vat-admin.php on line 229
    [08-Apr-2018 13:04:26 UTC] Spain 21
    [08-Apr-2018 13:04:26 UTC] PHP Notice:  Trying to get property of non-object in /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/admin/class-rcp-vat-admin.php on line 239
    [08-Apr-2018 13:04:26 UTC] 
    [08-Apr-2018 13:04:26 UTC] Array
    (
        [vat_label] => VAT (Spain - 21 %)
        [country_name] => Spain
        [country_vat_rate] => 21
        [level_price] => € Without VAT
        [vat_amount] => 0€
        [total_price] => 0€ With VAT
        [with_tax_label] => With VAT
        [without_tax_label] => Without VAT
    )
    
    [08-Apr-2018 13:05:09 UTC] ### VALIDATE ### rcp_vat_rcp_validate_user_fields_on_register
    [08-Apr-2018 13:05:09 UTC] PHP Fatal error:  Uncaught Error: Class 'SoapClient' not found in /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/libs/vendor/dannyvankooten/vat.php/src/Vies/Client.php:63
    Stack trace:
    #0 /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/libs/vendor/dannyvankooten/vat.php/src/Vies/Client.php(44): DvK\Vat\Vies\Client->getClient()
    #1 /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/libs/vendor/dannyvankooten/vat.php/src/Validator.php(93): DvK\Vat\Vies\Client->checkVat('39', '281928M')
    #2 /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/admin/class-rcp-vat-admin.php(666): DvK\Vat\Validator->validateExistence('39281928M')
    #3 /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/admin/class-rcp-vat-admin.php(724): Rcp_Vat_Admin->validateUserFields(Array, 'register')
    #4 /var/www/html/illustration.tools/public_html/wp-includes/class-wp-hook.php(286): Rcp_Vat_Admin->rcp_vat_rcp_validate_user_fields_on_register(Array)
    #5 /var/w in /var/www/html/illustration.tools/public_html/wp-content/plugins/rcp-vat/libs/vendor/dannyvankooten/vat.php/src/Vies/Client.php on line 63
    Plugin Author termel

    (@munger41)

    Can you make sure your php server enables php soap ?
    Is it installed ?

    sudo apt-get install php7.0-soap
    sudo services apache2 restart

    Thanks

    Thread Starter magoz

    (@magoz)

    That was it, @termel!
    It’s working now 🙂

    I’m going to start testing it more deeply. I’ll let you know if I encounter other issues.

    Thanks a lot for your help!

    Plugin Author termel

    (@munger41)

    With pleasure @magoz !

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘RCP VAT is not working (Stripe)’ is closed to new replies.