If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Addon Payment Modules / Square WebPay support thread.

Square WebPay support thread.

Started by carlwhat on 6 Apr 2022, 6:02 PM · Views: 129,956

Results 581 to 600 of 808
11 Mar 2024, 9:52 PM
#581
peter_pechesud avatar

peter_pechesud

New Zenner

Join Date:
Nov 2022
Location:
St-Lambert, Canada
Posts:
29
Plugin Contributions:
0

Square WebPay support thread.

Hello,

Does someone already had this issue? I paid with my CC for a total amount of $13,79, the Square payment process pass without any issue, Square charged only once, but I find two payments records inside my order.

I'm using ZC 1.57d + square-webpay with the right API version on php 7.33
Still have the old Square plugin, but not installed.

Does someone have any clue ?

Thanks

12 Mar 2024, 12:17 AM
#582
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Re: Square WebPay support thread.

peter_pechesud:

Hello,

Does someone already had this issue? I paid with my CC for a total amount of $13,79, the Square payment process pass without any issue, Square charged only once, but I find two payments records inside my order.

I'm using ZC 1.57d + square-webpay with the right API version on php 7.33
Still have the old Square plugin, but not installed.

Does someone have any clue ?

Thanks

the square webpay module creates 1 record in the square_payments table in the method after_process.

unfortunately this web forum's image handler is not good. it is rather difficult to see your attached image.

i have a distinct feeling that this web forum software could be better configured to allow larger images with better resolution. in addition, people have complained about the search function on this forum software for quite some time. i'm hopeful that perhaps an admin can look at and make these elements of this forum software better... but alas i digress...

from the looks of the fuzzy image, my best guess is that you are using super orders or a modified version of said plugin. i do not believe that specific plugin has been modified in quite some time. i see a table heading called last modified; which is a field that is not contained in the square payments table; nor is the field payor name.

as those fields are not created by the square webpay module, i would venture to guess that the problem does not reside with square webpay.

if, however, you can somehow demonstrate that there are 2 records in the square_payments table for a single charge, perhaps i can take a look at it. but even then, i would think that there would be more people complaining about said issue.

i would look at your super orders payment table (if you have one), and see where it is creating those records.

that is my best guess as to what might be going on.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

12 Mar 2024, 1:27 AM
#583
peter_pechesud avatar

peter_pechesud

New Zenner

Join Date:
Nov 2022
Location:
St-Lambert, Canada
Posts:
29
Plugin Contributions:
0

Re: Square WebPay support thread.

carlwhat:

the square webpay module creates 1 record in the square_payments table in the method after_process.

unfortunately this web forum's image handler is not good. it is rather difficult to see your attached image.

i have a distinct feeling that this web forum software could be better configured to allow larger images with better resolution. in addition, people have complained about the search function on this forum software for quite some time. i'm hopeful that perhaps an admin can look at and make these elements of this forum software better... but alas i digress...

from the looks of the fuzzy image, my best guess is that you are using super orders or a modified version of said plugin. i do not believe that specific plugin has been modified in quite some time. i see a table heading called last modified; which is a field that is not contained in the square payments table; nor is the field payor name.

as those fields are not created by the square webpay module, i would venture to guess that the problem does not reside with square webpay.

if, however, you can somehow demonstrate that there are 2 records in the square_payments table for a single charge, perhaps i can take a look at it. but even then, i would think that there would be more people complaining about said issue.

i would look at your super orders payment table (if you have one), and see where it is creating those records.

that is my best guess as to what might be going on.

I just did another test, indeed, I found a single record in "square_payments" and two records in "so_payments".

It seems there is something wrong with Super order.
but I have no idea where to look.

12 Mar 2024, 10:45 AM
#584
peter_pechesud avatar

peter_pechesud

New Zenner

Join Date:
Nov 2022
Location:
St-Lambert, Canada
Posts:
29
Plugin Contributions:
0

Re: Square WebPay support thread.

You're right, I found 1 record in square_payments and 2 in so_payments. Do you know how it possible ? I tried to remove the old Square, but doesn't change the situation, even it create new bug. Thanks for your help.

12 Mar 2024, 3:51 PM
#585
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Re: Square WebPay support thread.

peter_pechesud:

You're right, I found 1 record in square_payments and 2 in so_payments. Do you know how it possible ? I tried to remove the old Square, but doesn't change the situation, even it create new bug. Thanks for your help.

without looking at your specific installation, it is hard for me to venture a guess.

super orders had some good things in there, and specifically i found the handling of payments, refunds and voids to be quite useful. ZC does not really keep track of payments in a manner that i found adequate. at one point, i had a discussion about providing a framework for all payment modules that would incorporate payment records into the base ZC. unfortunately, i ran out of steam on that initiative as it proved to be quite a daunting task.

alas, i digress yet again.

back to your specific problem, i would perhaps ask in the super orders support forum. at one point, there was some movement on updating that module; i think jsweb and torvista may have been involved.

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

12 Mar 2024, 9:02 PM
#586
peter_pechesud avatar

peter_pechesud

New Zenner

Join Date:
Nov 2022
Location:
St-Lambert, Canada
Posts:
29
Plugin Contributions:
0

Re: Square WebPay support thread.

Thanks Carl, I will ask to Super Order group.

13 Mar 2024, 1:11 AM
#587
peter_pechesud avatar

peter_pechesud

New Zenner

Join Date:
Nov 2022
Location:
St-Lambert, Canada
Posts:
29
Plugin Contributions:
0

Re: Square WebPay support thread.

Hello, does someone have a recipe to configure Square webpay using Square SANDBOX. I'm not sure I understand what to do with the extra questions when you select SANDBOX application ID & token.

Thanks

13 Mar 2024, 2:34 PM
#588
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Re: Square WebPay support thread.

peter_pechesud:

Hello, does someone have a recipe to configure Square webpay using Square SANDBOX. I'm not sure I understand what to do with the extra questions when you select SANDBOX application ID & token.

Thanks

there is no need to enter any of that information. that is there for debugging purposes.

in theory, the handler should update those elements if you have properly configured the module.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

14 Mar 2024, 12:13 AM
#589
peter_pechesud avatar

peter_pechesud

New Zenner

Join Date:
Nov 2022
Location:
St-Lambert, Canada
Posts:
29
Plugin Contributions:
0

Re: Square WebPay support thread.

Hi Carl,

I try to configured my DEV website connect to my SQUARE SANDBOX. But I can't make it works, the bullet always stay "Yellow".

what I did:

  1. I define in the Square developer Sandbox the URL of my DEV website: https://www.pechesudv155.owally.com/squareWebPay_handler.php

  2. I define the Application ID and Application Secret (OAuth) with my Square Sandbox key, enable Enable Square Module (True)

  3. I see the URL https://www.pechesudv155.owally.com/squareWebPay_handler.php and try to click on the green message "Click here to login and authorize your account"

  4. but I receive a message from Square, telling to me : To start the OAuth flow for a sandbox account, first launch the seller test account from the Developer Dashboard.

  5. So on Square panel, I click on "Authorize an account" and "Default test account", with the "default test account" I got a window with the Access token inside.

  6. So i go back Square Web Payments Module and input the "access token" to the field "Sandbox Merchant Token"

But the bullet still stay yellow.

Could tell to me what I do wrong ?

14 Mar 2024, 12:29 AM
#590
peter_pechesud avatar

peter_pechesud

New Zenner

Join Date:
Nov 2022
Location:
St-Lambert, Canada
Posts:
29
Plugin Contributions:
0

Re: Square WebPay support thread.

I check the SQUARE API log, I saw few transactions with answer corresponding to my connect try, don't know if it help.

14 Mar 2024, 8:38 PM
#591
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Re: Square WebPay support thread.

peter,
unfortunately, i can not provide any additional support for the sandbox set up. it is there for developers to work with.

it seems that you had square working and that your problem was with super orders. so now you want to move on to enabling a sandbox account on your live site so that you can get it working with super orders? noting that super orders is a product that has not been updated for quite some time.

there is a lot going on; and unfortunately i do not have the time to resolve your sandbox set up.

maybe someone else can help you out; but it goes beyond what i am able to provide in this free forum.

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

14 Mar 2024, 11:33 PM
#592
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Square WebPay support thread.

As a suggestion, rather than trying to create a sanbox setup, just create a second production App for your test environment (give it a meaningful name like "testWebPay") and run $1 transactions against it.

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.

15 Mar 2024, 12:23 AM
#593
peter_pechesud avatar

peter_pechesud

New Zenner

Join Date:
Nov 2022
Location:
St-Lambert, Canada
Posts:
29
Plugin Contributions:
0

Re: Square WebPay support thread.

Thanks Carl, I understand. I will try to reinstall everything without Super Order.

18 Mar 2024, 7:16 PM
#594
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: Square WebPay support thread.

ZC 1.5.7d
Bootstrap template with One Page Checkout

The square plugin works as expected except for one bug.

A customer at checkout enters their CC information but not the zip code for example and continue with placing order.

The page stays / refresh to the same checkout page but freezes ( shadowed screen). The customer has no other option than to abandon checkout and start over.

Is there a fix for this?

Hope this makes sense, it just hard to explain sometimes.

Thank you for your help

19 Mar 2024, 4:35 PM
#595
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: Square WebPay support thread.

I am also getting the following in the logs:

[18-Mar-2024 21:16:20 America/Los_Angeles] PHP Notice: missing token result: should not get here. check that you have the latest jscript_square_webpay file and that you are not having javascript errors in the console. in /includes/modules/payment/square_webPay.php on line 261

thank you

20 Mar 2024, 1:56 AM
#596
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Re: Square WebPay support thread.

nick,
please post what version of OPC you are using as well as your php version. also what version of square webPay.

with regards to your first issue, it does not make sense. OPC has address information on it, ie bill to and ship to information. square webPay has nothing to do with those fields. the square webpay fields are completely controlled by the square javascript. square will request a zip code in its own window and if you do not fill it in, you can not complete the posting. in my testing, i could not get past that part as square highlights that you need to fill in a zip code.

your log message indicates that you are most likely using version 1.0.3 of square webPay.

is square webPay your only payment method?

the error log in your 2nd post indicates to me one of the 3 potential scenarios:

  • you potentially only have square as an available payment method.
  • you are using a older version of OPC.
  • OPC is not properly configured.

i would update square webpay to version 1.0.4. i would then ensure that you have a key for OPC called:

CHECKOUT_ONE_PAYMENT_METHODS_THAT_SUBMIT

and then ensure that key is set to:

square_webPay

you can either search for that key in the developer tool kit; else go to your admin -> configuration -> one page checkout and see if

Payment Methods Handling Form Submittal

is listed there.

hope that helps.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

21 Mar 2024, 7:37 PM
#597
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: Square WebPay support thread.

carlwhat:

nick,
please post what version of OPC you are using as well as your php version. also what version of square webPay.

with regards to your first issue, it does not make sense. OPC has address information on it, ie bill to and ship to information. square webPay has nothing to do with those fields. the square webpay fields are completely controlled by the square javascript. square will request a zip code in its own window and if you do not fill it in, you can not complete the posting. in my testing, i could not get past that part as square highlights that you need to fill in a zip code.

your log message indicates that you are most likely using version 1.0.3 of square webPay.

is square webPay your only payment method?

the error log in your 2nd post indicates to me one of the 3 potential scenarios:

  • you potentially only have square as an available payment method.
  • you are using a older version of OPC.
  • OPC is not properly configured.

i would update square webpay to version 1.0.4. i would then ensure that you have a key for OPC called:

CHECKOUT_ONE_PAYMENT_METHODS_THAT_SUBMIT

and then ensure that key is set to:

square_webPay

you can either search for that key in the developer tool kit; else go to your admin -> configuration -> one page checkout and see if

Payment Methods Handling Form Submittal

is listed there.

hope that helps.

Hello Carl,

Thank you for getting back to me.

I am currently using Square_webpay 1.0.0

Square Web Payments Module 1.0.4
[using SDK: 17.2.0.20220216

Php version is 7.3.33

OPC version is 2.4.3 ( a little outdated so it could be the culprit)

I also checked the OPC configuration and the form submittal is set to square_webpay.

The site used to have Paypal payment pro and express checkout as payment method.

I recently switched to square so it is using Square_webpay and Paypal Express Checkout.

My issue i a bit hard to explain honestly. After a few customer mentioned the issue ( having to restart the whole checkout process), I tried it myself.

If for some reasons the Zip is not entered into the "Square Credit Card Form" and click order, the page gets grayed out and freezes....

The site is at wwww.royal-fleur.com if you want to take a look at it.

Thanks for helping me figuring it out

25 Mar 2024, 8:14 PM
#598
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: Square WebPay support thread.

Updated OPC to 2.5.0

Unfortunately, I am still getting the following error log:

[25-Mar-2024 13:08:07 America/Los_Angeles] PHP Notice: missing token result: should not get here. check that you have the latest jscript_square_webpay file and that you are not having javascript errors in the console. in /includes/modules/payment/square_webPay.php on line 261

How do i fix this please?

Thank you

25 Mar 2024, 11:20 PM
#599
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Re: Square WebPay support thread.

nicksab:

....

If for some reasons the Zip is not entered into the "Square Credit Card Form" and click order, the page gets grayed out and freezes....

The site is at wwww.royal-fleur.com if you want to take a look at it.

Thanks for helping me figuring it out

this one is not that hard to explain.

all one needs to do is select the radio button for square and then hit the submit button. it has nothing to do with the zip code.

the greying out of the screen is done by OPC, not square. i have opened up a new issue on the OPC github repo.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

25 Mar 2024, 11:39 PM
#600
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Re: Square WebPay support thread.

nicksab:

Updated OPC to 2.5.0

Unfortunately, I am still getting the following error log:

How do i fix this please?

Thank you

with regards to this error, i am able to reproduce it. however the only way i can reproduce it is if the Key: CHECKOUT_ONE_PAYMENT_METHODS_THAT_SUBMIT does not have square_webPay listed in that value.

if you have that value in there and listed correctly, then i would suggest you review the OPC install instructions. and specifically all of the javascript files.

if all of those are correct, it is entirely possible that some other javascript is submitting your form.

when that error occurs the customer does receive a message on their OPC page in the message stack.

bottom line, i do not know which of your javascript files could be submitting the form. i know that my square code will NOT submit the payment form unless the credit card information is successfully tokenized. and the only way we get to the message is if something submits the payment form without a proper tokenization result from square.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.