Page 22 of 75 FirstFirst ... 1220212223243272 ... LastLast
Results 211 to 220 of 750
  1. #211
    Join Date
    Jan 2015
    Location
    USA
    Posts
    12
    Plugin Contributions
    0

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    Thanks!
    Got rid of those and the error message is gone. But the accesse token error is still there

    I really do appreciate your help

  2. #212
    Join Date
    Jul 2013
    Location
    Brisbane, Australia
    Posts
    39
    Plugin Contributions
    0

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    Quote Originally Posted by DrByte View Post
    To get descriptive output for debugging, you can TEMPORARILY edit square_handler.php and change line 11, which says:
    Code:
    $verbose = false;
    and change false to true.
    NOTE that this may prevent normal transactions from operating properly until you put it back to false.

    With $verbose=true, it will give output with one of:
    not configured = module doesn't have an Application ID set
    failure = token expired more than 15 days ago, or no token available to refresh
    refreshed = the job refreshed the token
    not refreshed = a refresh was attempted, but did not complete properly
    not expired = a token exists but it is younger than 3 weeks old, so no need to refresh
    Thanks for that info and your other replies, Dr Byte. Apologies for my delayed reply: I've been away.

    Changing line 11 unfortunately resulted no output produced (i.e. no error log or email received).

    So I experimented further. By adding simple echo requests at different points in the square_handler.php file I found that it did produce output - but only when added BEFORE the 2 'require....' statements at lines 12 & 13 (i.e. I gather output was produced in the header). After that point, no output was produced.

    To be clear, my amended code from line 11:
    $verbose = true; //GM Changed from false for testing
    echo $verbose . ' ' . $mode . ' ' . '- results when echo placed BEFORE require statements'; //GM Line added for testing
    require 'includes/application_top.php';
    require DIR_WS_CLASSES . 'payment.php';
    echo $verbose . ' ' . $mode . ' ' . '- results when echo placed after require statements'; //GM Line added for testing
    produced this output in the email and no error log:

    1 cli - results when echo placed BEFORE require statements
    Despite more experimenting, I couldn't work out why output didn't include the messages you cited nor the later echo statements - and more importantly, whether this meant the cron job did not successfully complete its task to refresh the token. Any ideas? Thanks.

  3. #213
    Join Date
    Jan 2018
    Posts
    146
    Plugin Contributions
    0

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    Anyone know this is for UK banks, cant find the RBS Routing number?

    Name:  Screenshot_129.jpg
Views: 392
Size:  14.6 KB

  4. #214
    Join Date
    Jan 2018
    Posts
    146
    Plugin Contributions
    0

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    Getting this error when testing the module

    "YOUR TRANSACTION COULD NOT BE COMPLETED DUE TO A MISCONFIGURATION IN OUR STORE. PLEASE REPORT THIS ERROR TO THE STORE OWNER: SQ-MISCONF"

    Any idea why?

  5. #215
    Join Date
    Jan 2015
    Location
    USA
    Posts
    12
    Plugin Contributions
    0

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    I got rid of the error messages in admin. But when I test it by trying to buy something I get this:

    Error We could not initiate your transaction because of a problem with the card data you entered. Please correct the card data, or report this error to the Store Owner: SQ-NONCE-FAILURE

  6. #216
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    Quote Originally Posted by JoeH View Post
    I got rid of the error messages in admin. But when I test it by trying to buy something I get this:

    Error We could not initiate your transaction because of a problem with the card data you entered. Please correct the card data, or report this error to the Store Owner: SQ-NONCE-FAILURE
    SQ-NONCE-FAILURE appears when the javascript code in your template has errors and is preventing the javascript for the module from executing properly.
    This is often caused by other plugins that are using outdated javascript or old versions of jQuery. It can also happen if you're using a template designed for an older version of Zen Cart and therefore have an old jscript_framework.php file in your template's jscript folder.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #217
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    Quote Originally Posted by JakeLawless View Post
    Anyone know this is for UK banks, cant find the RBS Routing number?

    Name:  Screenshot_129.jpg
Views: 392
Size:  14.6 KB
    Best to ask your Bank, or contact Square Support for help in filling in banking details inside your Square account.

    Quote Originally Posted by JakeLawless View Post
    Getting this error when testing the module

    "YOUR TRANSACTION COULD NOT BE COMPLETED DUE TO A MISCONFIGURATION IN OUR STORE. PLEASE REPORT THIS ERROR TO THE STORE OWNER: SQ-MISCONF"

    Any idea why?
    SQ-MISCONF appears when your attempted transaction triggers the "INVALID_REQUEST_ERROR" response from Square's servers.
    There are two steps to take for sorting this out:
    1. Look at the debug log that was generated in your server's /logs folder, as it will contain more details about the complete communication between your server and Square.
    2. Contact Square Support and tell them the information in the log file from #1 above. Their servers will contain all your transaction attempt history and their techs will be able to explain what's gone wrong with your specific transaction attempts.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #218
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    Quote Originally Posted by GerriM View Post
    Quote Originally Posted by DrByte View Post
    To get descriptive output for debugging, you can TEMPORARILY edit square_handler.php and change line 11, which says:
    Code:
    $verbose = false;
    and change false to true.
    NOTE that this may prevent normal transactions from operating properly until you put it back to false.

    With $verbose=true, it will give output with one of:
    not configured = module doesn't have an Application ID set
    failure = token expired more than 15 days ago, or no token available to refresh
    refreshed = the job refreshed the token
    not refreshed = a refresh was attempted, but did not complete properly
    not expired = a token exists but it is younger than 3 weeks old, so no need to refresh
    Thanks for that info and your other replies, Dr Byte. Apologies for my delayed reply: I've been away.

    Changing line 11 unfortunately resulted no output produced (i.e. no error log or email received).

    So I experimented further. By adding simple echo requests at different points in the square_handler.php file I found that it did produce output - but only when added BEFORE the 2 'require....' statements at lines 12 & 13 (i.e. I gather output was produced in the header). After that point, no output was produced.

    To be clear, my amended code from line 11:
    $verbose = true; //GM Changed from false for testing
    echo $verbose . ' ' . $mode . ' ' . '- results when echo placed BEFORE require statements'; //GM Line added for testing
    require 'includes/application_top.php';
    require DIR_WS_CLASSES . 'payment.php';
    echo $verbose . ' ' . $mode . ' ' . '- results when echo placed after require statements'; //GM Line added for testing
    produced this output in the email and no error log:

    1 cli - results when echo placed BEFORE require statements
    Despite more experimenting, I couldn't work out why output didn't include the messages you cited nor the later echo statements - and more importantly, whether this meant the cron job did not successfully complete its task to refresh the token. Any ideas? Thanks.
    The fact that your 2nd echo does not appear means the code before it is failing with fatal errors. Your server's PHP error-logs will contain more information. Clearly something's unusual about your server config which is preventing this from operating normally.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #219
    Join Date
    Jan 2015
    Location
    USA
    Posts
    12
    Plugin Contributions
    0

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    Quote Originally Posted by DrByte View Post
    SQ-NONCE-FAILURE appears when the javascript code in your template has errors and is preventing the javascript for the module from executing properly.
    This is often caused by other plugins that are using outdated javascript or old versions of jQuery. It can also happen if you're using a template designed for an older version of Zen Cart and therefore have an old jscript_framework.php file in your template's jscript folder.
    Thanks!
    But how do I find out how to fix it?

  10. #220
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    Quote Originally Posted by JoeH View Post
    Quote Originally Posted by DrByte View Post
    SQ-NONCE-FAILURE appears when the javascript code in your template has errors and is preventing the javascript for the module from executing properly.
    This is often caused by other plugins that are using outdated javascript or old versions of jQuery. It can also happen if you're using a template designed for an older version of Zen Cart and therefore have an old jscript_framework.php file in your template's jscript folder.
    Thanks!
    But how do I find out how to fix it?
    Ya, that's the challenging part. Teaching someone javascript-debugging is hard to do in a single post! Can't really do that here. There are a dozen discussions of the same issue earlier in this thread, all with varying examples of the same situation as yours. So I'd start there.
    Additionally, you can use your browser's "console log" to inspect the actual javascript errors that are occurring when the checkout_payment page is being loaded, and when the submit button is clicked. Using the information reported there can help you understand what javascript conflicts might exist and need fixing.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 22 of 75 FirstFirst ... 1220212223243272 ... LastLast

Similar Threads

  1. Bambora/Beanstream Payment Module Support Thread
    By swguy in forum Addon Payment Modules
    Replies: 127
    Last Post: 26 Mar 2021, 04:13 PM
  2. v154 Support Thread: AddToAny for Zen Cart (The Universal Sharing Platform)
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 8 Apr 2019, 02:39 PM
  3. WordPress® for Zen Cart® (wp4zen) [Support Thread]
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 107
    Last Post: 13 Jan 2019, 12:32 PM
  4. Layaway Payment Module Support Thread
    By Danielle in forum Addon Payment Modules
    Replies: 0
    Last Post: 21 Nov 2006, 06:43 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR