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 641 to 660 of 808
19 Apr 2024, 4:00 PM
#641
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Square WebPay support thread.

OJ_SIMON:

do you see any of this:

<div id="card-container" ></div> <button id="card-button" type="button">Use Credit Card</button> ``` > when you use dev tools by right click in chrome inspect?

No, I don't see anything like that. Even searched for the word 'card' and there are no matches. I tried on the checkout page along with other pages.

19 Apr 2024, 4:03 PM
#642
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

you have something very odd going on.

please post a screen shot of your admin payment modules screen.

if green we should be seeing the use credit card.

also do you have any debug logs?

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

19 Apr 2024, 4:05 PM
#643
oj_simon avatar

oj_simon

Zen Follower

Join Date:
Nov 2023
Location:
Hounslow
Posts:
129
Plugin Contributions:
0

Re: Square WebPay support thread.

gizmo_girl:

No, I don't see anything like that. Even searched for the word 'card' and there are no matches. I tried on the checkout page along with other pages.
then that would tell me it's broken code from the plugin file.

19 Apr 2024, 4:09 PM
#644
oj_simon avatar

oj_simon

Zen Follower

Join Date:
Nov 2023
Location:
Hounslow
Posts:
129
Plugin Contributions:
0

Re: Square WebPay support thread.

gizmo_girl:

No, I don't see anything like that. Even searched for the word 'card' and there are no matches. I tried on the checkout page along with other pages.
can you supply a demo/test account login details and also a test product that does not require and thing but add to cart? by PM.

19 Apr 2024, 4:12 PM
#645
oj_simon avatar

oj_simon

Zen Follower

Join Date:
Nov 2023
Location:
Hounslow
Posts:
129
Plugin Contributions:
0

Re: Square WebPay support thread.

actually can you replace the html div code and just place text "this is working" and see if that display's

19 Apr 2024, 4:16 PM
#646
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: Square WebPay support thread.

carlwhat:

you have something very odd going on.

please post a screen shot of your admin payment modules screen.

if green we should be seeing the use credit card.

also do you have any debug logs?

Attachment 20588
It's green and I have entered all of the API codes. There's a file with logs, but there's nothing there from the timeframe when I started messing with Square WebPay

19 Apr 2024, 4:20 PM
#647
oj_simon avatar

oj_simon

Zen Follower

Join Date:
Nov 2023
Location:
Hounslow
Posts:
129
Plugin Contributions:
0

Re: Square WebPay support thread.

gizmo_girl:

Attachment 20588
It's green and I have entered all of the API codes. There's a file with logs, but there's nothing there from the timeframe when I started messing with Square WebPay
what about in test mode just replace the first key from the live one to the test key got from square dashboard?

19 Apr 2024, 4:20 PM
#648
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: Square WebPay support thread.

OJ_SIMON:

actually can you replace the html div code and just place text "this is working" and see if that display's

What file is that located in? This is getting in way over my head.

19 Apr 2024, 4:25 PM
#649
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: Square WebPay support thread.

OJ_SIMON:

what about in test mode just replace the first key from the live one to the test key got from square dashboard?

Nope, no changes with trying that

19 Apr 2024, 4:27 PM
#650
oj_simon avatar

oj_simon

Zen Follower

Join Date:
Nov 2023
Location:
Hounslow
Posts:
129
Plugin Contributions:
0

Re: Square WebPay support thread.

gizmo_girl:

Square WebPay version 1.0.4

Here is the code from that section:

    public function selection()
    {
        $selection = [
            'id' => $this->code,
            'module' => $this->title,
            'fields' => [
                [
                    'title' => '',
                    'field' => '<div id="card-container" ></div>
                        <button id="card-button" type="button">Use Credit Card</button>',
                ],
            ],
        ];

        return $selection;
    }

this one.
So replace this:

<div id="card-container" ></div>
<button id="card-button" type="button">Use Credit Card</button>

with

This is working
save upload and see if it displays and if that does not then uninstall the plugin and remove all the code for the plugin noting down what your doing in each file and line numbers then clear cookie data and flush what you can then download a fresh copy of the version you have then install it again making sure you do a backup before and after.

19 Apr 2024, 4:30 PM
#651
oj_simon avatar

oj_simon

Zen Follower

Join Date:
Nov 2023
Location:
Hounslow
Posts:
129
Plugin Contributions:
0

Re: Square WebPay support thread.

gizmo_girl:

Nope, no changes with trying that
then some where within your code you have a missing , or ' or ; .

and if my last post still does not work then do a full compare of a fresh copy of your version of ZC

19 Apr 2024, 4:37 PM
#652
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: Square WebPay support thread.

OJ_SIMON:

can you supply a demo/test account login details and also a test product that does not require and thing but add to cart? by PM.

I have added a test product (virtual/zero dollars) that can be added to a cart. I'll send you the test account details. Thanks!

19 Apr 2024, 4:45 PM
#653
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

gizmo
long shot here.

in your admin payment screenshot it looks like both enabled modules have the same sort order; ie 0.

see if changing one of them to 10 makes a difference.

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

19 Apr 2024, 4:49 PM
#654
oj_simon avatar

oj_simon

Zen Follower

Join Date:
Nov 2023
Location:
Hounslow
Posts:
129
Plugin Contributions:
0

Re: Square WebPay support thread.

gizmo_girl:

I have added a test product (virtual/zero dollars) that can be added to a cart. I'll send you the test account details. Thanks!

This is the problem:

Payment Method

Sorry, we are not accepting payments from your region at this time.


Please contact us for alternate arrangements.
you have a country or currency miss match within your setting ether in ZC or at square they all need to match.

19 Apr 2024, 4:49 PM
#655
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: Square WebPay support thread.

carlwhat:

gizmo
long shot here.

in your admin payment screenshot it looks like both enabled modules have the same sort order; ie 0.

see if changing one of them to 10 makes a difference.

Nope, that was one of the first things I tried yesterday

19 Apr 2024, 4:53 PM
#656
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: Square WebPay support thread.

OJ_SIMON:

This is the problem:

you have a country or currency miss match within your setting ether in ZC or at square they all need to match.

BAM!!!
THAT DID IT! Thanks so so so much for your help! I had the payment zone in ZC as 'United States'.

21 Apr 2024, 12:10 PM
#657
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

Re: Square WebPay support thread.

Hello all,
I'm using ZC1.5.6c with PHP7.3, MariaDB 10.3.24, and Square WebPay 1.0.4. In Square, I am using the API version from 2022-02-16 (unchanged from when I installed the module I think), but I also switched to the latest version that does not require domain verification, with no change in behaviour.
My own browser is Firefox 125.0.1.

The last successful payment was on 23rd March 2024, since then the "Continue" button to continue to step 3 (confirmation) of the checkout page does nothing, and there is no log file generated. I see the GET in my access log with a 200 HTTP response, but there seems to be no communication to or from Square.
Looking at the Network tab in Firefox developer tools shows oddly that the beacon connection to pci-connect.squareup.com is failing with NS_ERROR. Reloading the page shows dozens of these errors, but no issues with access to other Square-related subdomains, or even to pci-connect.squareup.com when the connection is not a beacon but instead, say, a fetch.
Attachment 20592

When I do presse the "Continue" button I see the sucessful GET and then a failed beacon, after that nothing.
Attachment 20591

When I do a nameserver lookup for pci-connect.squareup.com, there is a valid response, I can even connect to that domain via HTTPS, although it redirects to my local (Japan) Square site immediately.

Searching online I see this problem might be related to access control and/or CORS (cross-origin resource sharing) settings in my browser, but I have no idea at the moment how to solve this. Also I have seen articles on beacon issues with other browsers, such as Safari and Chrome.

Is this something I need to investigate further on the browser side - and potentially educate customers, since there have been complains that "nothing happens" when trying to go to Step 3 of checkout - or is this something I can fix on the server side?

It might be that the above is a red herring, and that the issue is entirely somewhere else, but I have no logs to go on, and no changes have been made to the webshop.

Any advice/insights appreciated.

Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0

21 Apr 2024, 12:30 PM
#658
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

Re: Square WebPay support thread.

Addendum: I have realized that in NS_ERROR_FAILURE the "NS" stands for namespace, and not nameserver.

Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0

22 Apr 2024, 1:35 PM
#659
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

gernot:

Addendum: I have realized that in NS_ERROR_FAILURE the "NS" stands for namespace, and not nameserver.

please provide your website url.

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

23 Apr 2024, 4:43 AM
#660
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

Re: Square WebPay support thread.

Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0