Results 1 to 10 of 821

Hybrid View

  1. #1
    Join Date
    Jan 2018
    Location
    Toronto, Canada
    Posts
    19
    Plugin Contributions
    0

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

    Trying to have this module working.
    After following all instructions still "Access token needed" doesn't go away.
    Looked at log and have the following message: "PHP Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set"
    No idea how to fix this. Anyone?
    Thks.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

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

    Quote Originally Posted by RobRiv View Post
    Looked at log and have the following message: "PHP Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set"
    Not sure why hundreds of others using Square aren't complaining of the same issue.

    Most hosts who set the open_basedir parameter are doing it for security reasons, so I doubt your host will change that for you.
    As an alternative you could alter the PHP code by adding // as shown here:

    /includes/modules/payment/square.php, lines 521 and 625:
    Code:
    //        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    .

    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.

  3. #3
    Join Date
    Jan 2018
    Location
    Toronto, Canada
    Posts
    19
    Plugin Contributions
    0

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

    Quote Originally Posted by DrByte View Post
    Not sure why hundreds of others using Square aren't complaining of the same issue.

    Most hosts who set the open_basedir parameter are doing it for security reasons, so I doubt your host will change that for you.
    As an alternative you could alter the PHP code by adding // as shown here:

    /includes/modules/payment/square.php, lines 521 and 625:
    Code:
    //        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    Thank you DrByte.
    Made changes to square.php as indicated and curl_ error no longer appears. Still however, "Access token needed" doesn't go away.
    I noticed that you commented lines 521 and 625; in my version of square.php lines are 540 and 602; may be there is something affecting there?
    Version is latest from plugins (V.9).
    Thanks again

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

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

    Quote Originally Posted by RobRiv View Post
    Thank you DrByte.
    Made changes to square.php as indicated and curl_ error no longer appears. Still however, "Access token needed" doesn't go away.
    Hmmm

    Quote Originally Posted by RobRiv View Post
    I noticed that you commented lines 521 and 625; in my version of square.php lines are 540 and 602; may be there is something affecting there?
    Version is latest from plugins (V.9).
    I think I was quoting from v0.91 which is built-in to v1.5.5f
    I don't have my tools with me to do a proper comparison at the moment, so I can't speak to whether any differences are significant in your case.
    .

    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.

  5. #5
    Join Date
    Aug 2016
    Posts
    20
    Plugin Contributions
    0

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

    Zen Cart version: 1.5.5f
    Plugin version: 0.91 and 0.90
    Template used: Fidelity
    Issue: unable to enter credit card information, there are no fields to type in

    I looked at the FAQ, which says
    Code:
    If you find the input fields for credit card numbers are flat with no text box to type into, this typically means you're missing the jscript_square.php file as described earlier in the Installation Instructions.
    
    Or you've got a firewall or browser plugin blocking access to Square's javascript code.
    
    Or you've got a plugin having jQuery conflicts.
    I am not missing the "jscript_square.php" file. It is in the correct location as per the PHP Files section of the Square Payments for Zen Cart page.

    I ran it in an incognito tab (no browser plugins) and on my mobile phone with wireless turned off (no firewall).

    I do not see any indication of jQuery conflicts.

    I switched to the Responsive Classic template and the Classic Contemporary Green template and experienced the same issue.

    Not realizing until the last post that 0.91 is included with 1.5.5f, I downloaded and uploaded the files for 0.90 and saw the same behavior.

    I know a lot of other people have this installed and working without issue. What am I doing wrong? If you want to see it, the site is https://www.yaybeads.biz.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

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

    Quote Originally Posted by Gamethrall View Post
    Zen Cart version: 1.5.5f
    Plugin version: 0.91 and 0.90
    Template used: Fidelity
    Issue: unable to enter credit card information, there are no fields to type in

    I looked at the FAQ, which says
    Code:
    If you find the input fields for credit card numbers are flat with no text box to type into, this typically means you're missing the jscript_square.php file as described earlier in the Installation Instructions.
    
    Or you've got a firewall or browser plugin blocking access to Square's javascript code.
    
    Or you've got a plugin having jQuery conflicts.
    I am not missing the "jscript_square.php" file. It is in the correct location as per the PHP Files section of the Square Payments for Zen Cart page.

    I ran it in an incognito tab (no browser plugins) and on my mobile phone with wireless turned off (no firewall).

    I do not see any indication of jQuery conflicts.

    I switched to the Responsive Classic template and the Classic Contemporary Green template and experienced the same issue.

    Not realizing until the last post that 0.91 is included with 1.5.5f, I downloaded and uploaded the files for 0.90 and saw the same behavior.

    I know a lot of other people have this installed and working without issue. What am I doing wrong? If you want to see it, the site is https://www.yaybeads.biz.
    If you look in your browser's Console errors, you'll see:

    HttpsRequiredError: SqPaymentForm can only be embedded on sites that use HTTPS. See: https://docs.connect.squareup.com/pa...nd-limitations
    You need to fix your HTTPS (SSL) on your site. It's currently redirecting away from https to just http URLs. Maybe just edit your configure.php and make both the HTTP_SERVER and HTTPS_SERVER urls begin with "https://...." instead of both being http://
    .

    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. #7
    Join Date
    Aug 2016
    Posts
    20
    Plugin Contributions
    0

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

    Quote Originally Posted by DrByte View Post
    If you look in your browser's Console errors, you'll see:


    You need to fix your HTTPS (SSL) on your site. It's currently redirecting away from https to just http URLs. Maybe just edit your configure.php and make both the HTTP_SERVER and HTTPS_SERVER urls begin with "https://...." instead of both being http://
    That was it! I changed both files and I can enter cc numbers!

    Thanks again, DrByte!

  8. #8
    Join Date
    Jan 2005
    Posts
    13
    Plugin Contributions
    0

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

    I'm a newbie and this is exactly what I'm coming up against. Where do I find the configure.php that you reference?

 

 

Similar Threads

  1. WordPress® for Zen Cart® (wp4zen) [Support Thread]
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 109
    Last Post: 1 Dec 2024, 01:36 PM
  2. Bambora/Beanstream Payment Module Support Thread
    By swguy in forum Addon Payment Modules
    Replies: 127
    Last Post: 26 Mar 2021, 04:13 PM
  3. 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
  4. Layaway Payment Module Support Thread
    By Danielle in forum Addon Payment Modules
    Replies: 0
    Last Post: 21 Nov 2006, 06:43 AM

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