Page 1 of 2 12 LastLast
Results 1 to 10 of 821

Hybrid View

  1. #1
    Join Date
    May 2011
    Location
    Tennessee
    Posts
    510
    Plugin Contributions
    0

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

    Several of the plugins that I would like to use are not Encapsulated yet. What is your opinion regarding installation of non-encapsulated plugins?

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

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

    Quote Originally Posted by jodean View Post
    Several of the plugins that I would like to use are not Encapsulated yet. What is your opinion regarding installation of non-encapsulated plugins?
    Please post as a general question; this has noting to do with the Square payment module.

  3. #3
    Join Date
    Jun 2023
    Location
    UK
    Posts
    21
    Plugin Contributions
    0

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

    Hi
    Using ZC 1.5.8a and OPC with PHP8.2 and Square module 2.0.2. Basic responsive_classic template.

    Not sure where the issue I have originates - maybe the group pricing code or maybe something being picked up in the Square module. I'm sure those with a far greater knowledge of how these things integrate can advise. Here's the issue:

    1/When the cart user qualifies for a group pricing discount (or when a discount code is used) the cart total is showing the correct net figure that will be charged to their card.
    2/When the cart sends off the amount to the bank for verification the bank pop-up asks for approval for the pre-discount amount - not the amount shown in the cart.
    3/When the cart verification is declined the resulting log shows the correct discounted amount in the audit trail!
    4/If the user accepts the larger amount at the verification stage the transaction goes through at the discounted amount.

    This screenshot shows better what I am trying to detail:
    Click image for larger version. 

Name:	bankcheckerror.jpg 
Views:	114 
Size:	19.9 KB 
ID:	20934

    The error log:
    Code:
      [amountMoney:Square\Models\CreatePaymentRequest:private] => Square\Models\Money Object
            (
                [amount:Square\Models\Money:private] => Array
                    (
                        [value] => 41324
                    )
    
                [currency:Square\Models\Money:private] => GBP
    I'd appreciate any guidance here on a resolution. Where did the bank get the wrong amount data from in the initial pop-up screen (that isn't used for the transaction)?

    Thanks for reading this.

  4. #4
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

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

    Quote Originally Posted by DaxtheMan View Post
    Hi
    Using ZC 1.5.8a and OPC with PHP8.2 and Square module 2.0.2. Basic responsive_classic template.

    Not sure where the issue I have originates - maybe the group pricing code or maybe something being picked up in the Square module. I'm sure those with a far greater knowledge of how these things integrate can advise. Here's the issue:

    1/When the cart user qualifies for a group pricing discount (or when a discount code is used) the cart total is showing the correct net figure that will be charged to their card.
    2/When the cart sends off the amount to the bank for verification the bank pop-up asks for approval for the pre-discount amount - not the amount shown in the cart.
    3/When the cart verification is declined the resulting log shows the correct discounted amount in the audit trail!
    4/If the user accepts the larger amount at the verification stage the transaction goes through at the discounted amount.

    This screenshot shows better what I am trying to detail:
    Click image for larger version. 

Name:	bankcheckerror.jpg 
Views:	114 
Size:	19.9 KB 
ID:	20934

    The error log:
    Code:
      [amountMoney:Square\Models\CreatePaymentRequest:private] => Square\Models\Money Object
            (
                [amount:Square\Models\Money:private] => Array
                    (
                        [value] => 41324
                    )
    
                [currency:Square\Models\Money:private] => GBP
    I'd appreciate any guidance here on a resolution. Where did the bank get the wrong amount data from in the initial pop-up screen (that isn't used for the transaction)?

    Thanks for reading this.
    i won’t be in front of my computer until wednesday. at that point i can boot up 1 of my 137 different zc installs and track down what the problem may be.

    that said, i think the paypal rest app may have encountered a similar problem. it seems that the order total is not reflective of these discounts at the time of payment.

    but i will look at it closer when i’m in front of my computer.

    best.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  5. #5
    Join Date
    Jun 2023
    Location
    UK
    Posts
    21
    Plugin Contributions
    0

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

    Thanks carlwhat - I do appreciate the help.

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,532
    Plugin Contributions
    127

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

    Would it make sense to do a check for Safari before enabling Apple Pay? If you're using Chrome, you get this console error:

    square.js:3 Initializing Apple Pay failed PaymentMethodUnsupportedError: Method unsupported: Apple Pay is only available on Safari.
    at new Wf (square.js:3:375247)
    at Yf (square.js:3:383212)
    at square.js:3:386948
    at Generator.next (<anonymous>)
    at Jf (square.js:3:383366)
    at a (square.js:3:383570)
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #7
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

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

    Quote Originally Posted by swguy View Post
    Would it make sense to do a check for Safari before enabling Apple Pay? If you're using Chrome, you get this console error:

    square.js:3 Initializing Apple Pay failed PaymentMethodUnsupportedError: Method unsupported: Apple Pay is only available on Safari.
    at new Wf (square.js:3:375247)
    at Yf (square.js:3:383212)
    at square.js:3:386948
    at Generator.next (<anonymous>)
    at Jf (square.js:3:383366)
    at a (square.js:3:383570)
    i'll add it to my list, but truly very low priority.

    wrong totals getting sent to the payment processor because the $order->info object is incorrect at the time the data should be handled is far greater priority and something that really makes little sense to me.

    why is there a checkout payment page if the base ZC can not provide the correct totals?
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  8. #8
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

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

    Quote Originally Posted by DaxtheMan View Post
    ...Using ZC 1.5.8a and OPC with PHP8.2 and Square module 2.0.2. Basic responsive_classic template....

    Thanks carlwhat - I do appreciate the help.
    dax,
    there are 5 files that i think you need to change.

    3 of the files involve commenting out 1 line. the other 2 files require adding 3 lines.

    you can review the file changes here:

    https://github.com/zencart/zencart/c...art:orderTotal

    you need to do everything in green.

    considering you are using v158a, the line numbers may be different. but the changes should be the same and in about the same place.

    please let me know if you have any questions.

    and MOST importantly, let us know if it works and does what you expect!

    best.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  9. #9
    Join Date
    Jun 2023
    Location
    UK
    Posts
    21
    Plugin Contributions
    0

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

    Quote Originally Posted by carlwhat View Post
    dax,
    there are 5 files that i think you need to change.

    3 of the files involve commenting out 1 line. the other 2 files require adding 3 lines.

    you can review the file changes here:

    https://github.com/zencart/zencart/c...art:orderTotal

    you need to do everything in green.

    considering you are using v158a, the line numbers may be different. but the changes should be the same and in about the same place.

    please let me know if you have any questions.

    and MOST importantly, let us know if it works and does what you expect!

    best.
    Thank you for looking at this issue. I have added the 5 amendments and double checked them but the pop-up bank response still includes the same result as before - namely the pre-discount amount is requested to be approved.

    dax

  10. #10
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

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

    Quote Originally Posted by DaxtheMan View Post
    Hi
    Using ZC 1.5.8a and OPC with PHP8.2 and Square module 2.0.2. Basic responsive_classic template.

    Not sure where the issue I have originates - maybe the group pricing code or maybe something being picked up in the Square module. I'm sure those with a far greater knowledge of how these things integrate can advise. Here's the issue:

    1/When the cart user qualifies for a group pricing discount (or when a discount code is used) the cart total is showing the correct net figure that will be charged to their card.
    2/When the cart sends off the amount to the bank for verification the bank pop-up asks for approval for the pre-discount amount - not the amount shown in the cart.
    3/When the cart verification is declined the resulting log shows the correct discounted amount in the audit trail!
    4/If the user accepts the larger amount at the verification stage the transaction goes through at the discounted amount.

    This screenshot shows better what I am trying to detail:
    Click image for larger version. 

Name:	bankcheckerror.jpg 
Views:	114 
Size:	19.9 KB 
ID:	20934

    The error log:
    Code:
      [amountMoney:Square\Models\CreatePaymentRequest:private] => Square\Models\Money Object
            (
                [amount:Square\Models\Money:private] => Array
                    (
                        [value] => 41324
                    )
    
                [currency:Square\Models\Money:private] => GBP
    I'd appreciate any guidance here on a resolution. Where did the bank get the wrong amount data from in the initial pop-up screen (that isn't used for the transaction)?

    Thanks for reading this.
    dax,
    i have looked at this issue. i will have a solution for you soon.

    i have started a discussion about this issue here.

    IMO, this is a design flaw inherent in ZC with which i will be forced to handle.

    thanks for your patience.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 
Page 1 of 2 12 LastLast

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