Results 1 to 10 of 821

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

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

    Hmm, I haven't seen any problem when using a Canadian Square account.

    - created the App in Square
    - obtained the oAuth stuff, and told Square the URL to the store
    - put the app credentials into Zen Cart, saved those settings
    - click the green Token button
    - login to Square
    - return to store admin, refresh the page, green button goes away
    - click Edit and choose the Location from the dropdown, click Save
    - ready to take payments
    .

    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.

  2. #2
    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
    Hmm, I haven't seen any problem when using a Canadian Square account.

    - created the App in Square
    - obtained the oAuth stuff, and told Square the URL to the store
    - put the app credentials into Zen Cart, saved those settings
    - click the green Token button
    - login to Square
    - return to store admin, refresh the page, green button goes away
    - click Edit and choose the Location from the dropdown, click Save
    - ready to take payments
    Thank you DrByte.
    Found the problem looking at the reference link of the error message. The Application ID inserted in Zen Cart module repeated the few characters "sq0idp-" that were left from initial blank module.
    Now working.
    Thank you again.

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

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

    I'm unable to run the Square cron job. I receive the following message when running from Plesk "Task ..../…./square_handler.php completed with error in 1 seconds."

    No change in Personal AccessToken achieved. No error report in php (I changed square_handler.php to $verbose=true).

    Using Zen Cart v1.5.5f; Square Module 0.94; php 7.1.19.

    Any help appreciated.

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,700
    Plugin Contributions
    11

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

    Some instructions on setting up a plesk cron at http://tinyurl.com/y8eykjnu See if yours matches the info.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  5. #5
    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 dbltoe View Post
    Some instructions on setting up a plesk cron at http://tinyurl.com/y8eykjnu See if yours matches the info.
    Thank you dbltoe.
    I read your link and it's not applicable to me. I'm with A2 Hosting and other schedule tasks work fine. In particular I have the currency update cron job for Zen Cart working without problems.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

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

    Quote Originally Posted by RobRiv View Post
    I'm unable to run the Square cron job. I receive the following message when running from Plesk "Task ..../…./square_handler.php completed with error in 1 seconds."

    No change in Personal AccessToken achieved. No error report in php (I changed square_handler.php to $verbose=true).

    Using Zen Cart v1.5.5f; Square Module 0.94; php 7.1.19.

    Any help appreciated.
    Since you've changed $verbose to true, what happens when you visit your_store.com/square_handler.php via your browser? It should tell you the status of the token.

    I wonder if you have the wrong path. How is this "task" command different from the one you have for the currency cron?
    .

    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
    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
    Since you've changed $verbose to true, what happens when you visit your_store.com/square_handler.php via your browser? It should tell you the status of the token.

    I wonder if you have the wrong path. How is this "task" command different from the one you have for the currency cron?
    Thank you DrByte.
    Status of the token shows not expired and it's logic since there have been transactions during the day. However the actual token in Square Dashboard (APPS) has not changed after the cron job.

    I include screen of scheduled tasks. Currency Update has the same parameters except for the location of executable php.
    Thank you again.
    Attached Images Attached Images  

  8. #8
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

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

    Yes, the actual token won't change unless Square issues an exchange for it, either because they've decided it's time to rotate it, or because it's expired. Since it hasn't expired (which doesn't happen unless unused for 30 days), it's unsurprising that there's no observable change.

    It shouldn't be giving any error though. When there's nothing to renew, it exits with status code of 0, meaning no error.
    .

    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. #9
    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
    Yes, the actual token won't change unless Square issues an exchange for it, either because they've decided it's time to rotate it, or because it's expired. Since it hasn't expired (which doesn't happen unless unused for 30 days), it's unsurprising that there's no observable change.

    It shouldn't be giving any error though. When there's nothing to renew, it exits with status code of 0, meaning no error.
    I changed the Schedule Task in Plesk from Run a Command to Fetch a URL and now no error.
    Thank you DrByte

 

 

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