Viewing 13 replies - 16 through 28 (of 28 total)
  • Thread Starter Jeff Daigle

    (@jeff-daigle)

    The home page for the testing site is:
    https://www.christophertaylortimberlake.com/staging/

    The store page for the testing site is:
    https://www.christophertaylortimberlake.com/staging/catalog/

    The cart page for the testing site is:
    https://www.christophertaylortimberlake.com/staging/cart/

    The checkout page for the testing site is:
    https://www.christophertaylortimberlake.com/staging/checkout/

    Let me know if you need a temporary admin login.

    Plugin Author nazrulhassanmca

    (@nazrulhassanmca)

    No actually Your JS files within woocommerce do ot load fine as i do not see the spaces being added while i am typing credit card number

    when i type 4242424242424242 it remains as 4242424242424242 but should become 4242 4242 4242 4242 that i suppose your file permission or something else iw wrong the javascripts are not working and this plugin is based to work on js so its causing issues not just stripe js but other validation token passing etc is based on javascript so i pretty sure javscript isnt working as it should have been

    Thread Starter Jeff Daigle

    (@jeff-daigle)

    Can you look at the code to see which scripts are missing?

    Can you tell me which scripts should be loading so I can check them?

    I don’t see any javascript errors in the console in either Safari, Chrome, or Firefox.

    Plugin Author nazrulhassanmca

    (@nazrulhassanmca)

    It seems permission issues with files most probably

    cab you make sure all files are 644 and all folder are 755

    Thread Starter Jeff Daigle

    (@jeff-daigle)

    All file permissions are correct.

    Plugin Author nazrulhassanmca

    (@nazrulhassanmca)

    Would you mind switching to default tentyfourteen or twentyfifteen theme ?and try again

    Thread Starter Jeff Daigle

    (@jeff-daigle)

    It works under 2016 but switching themes isn’t an option for this client.

    Again, could you look at the source code of the checkout page to make sure that all of your plugin’s javascript is being loaded correctly? Or at least give me a list of the scripts that the plugin should be loading so I can do it?

    Plugin Author nazrulhassanmca

    (@nazrulhassanmca)

    So if it really works on twentysixteen then i suppose you need to communicate to theme author to fix it as this isnt a bug of plugin its a bug with theme.

    My plugin do not load any js FYI i suppose your theme has woocommerce copies and they are old so your theme developers need to update woo-commerce copies of files residing withing themes.

    wc_credit_card something like this is handle of script that handles the form and later needs jquery to pass token appended to credit card form

    when you switch to twentysixteen there sre no woocommerce copies in theme and copies from woocommerce plugin from plugin directory works when you switch to your client theme the woocommerce copies from your theme override the ones from plugin directory

    I can further offer you paid support to fix current theme if you like.

    Thread Starter Jeff Daigle

    (@jeff-daigle)

    My theme doesn’t override any of Woocommerce’s checkout pages or scripts.

    I tried a few older versions of your plugin.

    1.0.8 = Doesn’t work
    1.0.6 = Doesn’t work
    1.0.4 = Works

    So something changed b/w 1.0.4 and 1.0.6 that is causing this error.

    The test site is running 1.0.4 right now if you’d like to take a look and test it yourself:

    https://www.christophertaylortimberlake.com/staging/

    Plugin Author nazrulhassanmca

    (@nazrulhassanmca)

    1.0.4 is not PCI compliant so it will work as it do not needs any js scripts to be loaded but might not go through in live mode as it has old library 1.18

    It might fail sometime for TLS requirement.

    No idea whats going on.

    Thread Starter Jeff Daigle

    (@jeff-daigle)

    OK, I’m confused: first you say your plugin doesn’t load any javascript, but now you’re saying that 1.0.8 does?

    Can you tell me which javascript files your plugin relies on, whether they are part of Woocommerce, being loaded from stripe.com, or included with your plugin?

    That might help us get some idea of what is going on.

    Plugin Author nazrulhassanmca

    (@nazrulhassanmca)

    1- My plugin does not load any JS files
    2- Plugin relies on a script with handles something like wc-credit-card-form ,jquery and https://js.stripe.com/v2/
    3- If script in step 2 is not loaded or fails to throw any error being caused internally Its not going to work

    Earlier it used to work like https://mikejolley.com/2013/12/14/using-new-credit-card-form-woocommerce-2-1/

    But later it was changed so now my code includes that script as wp_enqueue_script( ‘wc-credit-card-form’ );

    I searched in woocommerce as and found following script/files responsible

    1. wp-content\plugins\woocommerce\assets\js\frontend\credit-card-form.js
    2. wp-content\plugins\woocommerce\assets\js\frontend\credit-card-form.min.js
    3. wp-content\plugins\woocommerce\includes\gateways\class-wc-payment-gateway-cc.php
    Thread Starter Jeff Daigle

    (@jeff-daigle)

    Thanks, I ended up switching to the Woocommerce Square Gateway from Woothemes. That was having trouble as well but I was able to get it working. Thanks for the help anyway.

Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘Error on Checkout: You have passed a blank string for 'card'.’ is closed to new replies.