Re: Square WebPay support thread.
Quote:
Originally Posted by
todoonada
I have version 1.0.1 of Web Pay running successfully on Zen Cart 1.5.7d.
I have set up a test environment with Zen Cart 1.5.8 and Web Pay 1.0.4. A new application for testing has been set up in Square. It is running in sandbox mode. I can not get the Web Pay module to change from yellow to green and show the the cc payment option in the shop.
Two things are different to the running version:
1: When I click Edit on the test version, there is nothing to select in the drop down box of "Location ID". But it shows a value when I am not in Edit mode. The value is different to the value in the shop which is live.
2: The new fields of "Live Merchant Token", "Square Token TTL" and "Square Refresh Token" are all empty.
I have no idea what is wrong or missing
OK, I found what the problem was. I made the Square connection for the test shop directly in sandbox mode.
To make sandbox mode work in my test environment, I changed from sandbox mode to production mode, put the new Application ID and Application Secret into Zen Cart. Activated Square. Green button near the module. Then I changed to sandbox mode again on the Square page, copied Application ID and Application Secret for the sandbox mode to Zen Cart and now I have a green button near the module and it says "sandbox mode".
Re: Square WebPay support thread.
Quote:
Originally Posted by
todoonada
OK, I found what the problem was. I made the Square connection for the test shop directly in sandbox mode.
To make sandbox mode work in my test environment, I changed from sandbox mode to production mode, put the new Application ID and Application Secret into Zen Cart. Activated Square. Green button near the module. Then I changed to sandbox mode again on the Square page, copied Application ID and Application Secret for the sandbox mode to Zen Cart and now I have a green button near the module and it says "sandbox mode".
glad you got it figured out.
Re: Square WebPay support thread.
Square is reporting some issues right now. You can monitor the service status here: https://www.issquareup.com/
Re: Square WebPay support thread.
I'm seeing this on a client site.
--> PHP Deprecated: Creation of dynamic property square_webPay::$oauthClient is deprecated in /home/calendars/public_html/store/includes/modules/payment/square_webPay.php on line 128.
Plugin version: 1.0.4
PHP 8.2.9
Zen Cart 1.5.8a
Is there a fix I missed?
Should we roll back to an earlier PHP version?
Re: Square WebPay support thread.
Anybody know what this means?
Error Dump: [FORBIDDEN]: Cannot fetch orders for a different merchant.
Sent to Square: SquareModelsBatchRetrieveOrdersRequest Object
(
[locationId:SquareModelsBatchRetrieveOrdersRequest:private] =>
[orderIds:SquareModelsBatchRetrieveOrdersRequest:private] => Array
(
[0] => olNTbRVBlZFnRVHCOpPq3R787kLZY
)
)
Re: Square WebPay support thread.
Fields Missing
When you get to the point of entering the credit card number, expiration etc, the fields are not there.
We verified the URL, Application Code and Application Secret from the production tab on the Square Developer site and re-uploaded the module, but no go.
Also when in the Gui Admin Modules squarewebpay edit, the drop down to choose Location is not being a drop down. Can not choose location.
test.fantasycostume.com
Zen 1.5.7d
Php 7.4
SQL - 8.0.34-cll-lve
No error logs
Re: Square WebPay support thread.
Quote:
Originally Posted by
jeking
I'm seeing this on a client site.
--> PHP Deprecated: Creation of dynamic property square_webPay::$oauthClient is deprecated in /home/calendars/public_html/store/includes/modules/payment/square_webPay.php on line 128.
Plugin version: 1.0.4
PHP 8.2.9
Zen Cart 1.5.8a
Is there a fix I missed?
Should we roll back to an earlier PHP version?
hi jim,
v 1.0.4 makes use of square SDK version: 17.2.0.20220216. This SDK requires php 7.4 - php 8.0.
the error you are seeing is from php 8.2.
you may be able to run with php 8.1; but i have not tested it.
best.
Re: Square WebPay support thread.
Quote:
Originally Posted by
Nick1973
Anybody know what this means?
Error Dump: [FORBIDDEN]: Cannot fetch orders for a different merchant.
Sent to Square: SquareModelsBatchRetrieveOrdersRequest Object
(
[locationId:SquareModelsBatchRetrieveOrdersRequest:private] =>
[orderIds:SquareModelsBatchRetrieveOrdersRequest:private] => Array
(
[0] => olNTbRVBlZFnRVHCOpPq3R787kLZY
)
)
without seeing additional info from the logs it is hard to tell.
my guess is that some of the constants between the old square and the new square_webPay are mixed up.
the error seems pretty clear. you are trying to retrieve order information from a different merchant id. hence my guess.
but rather tough to say, and i'm pretty sure that method, lookupOrderDetails, works. else i would think i would see a lot more people with this error.
best.
Re: Square WebPay support thread.
Quote:
Originally Posted by
masterrusty
Fields Missing When you get to the point of entering the credit card number, expiration etc, the fields are not there.
We verified the URL, Application Code and Application Secret from the production tab on the Square Developer site and re-uploaded the module, but no go.
Also when in the Gui Admin Modules squarewebpay edit, the drop down to choose Location is not being a drop down. Can not choose location.
test.fantasycostume.com
Zen 1.5.7d
Php 7.4
SQL - 8.0.34-cll-lve
No error logs
you need to have a location set up in the square developer dashboard. without a location in that pulldown nothing will work.
you can enable logging, by changing the debug value to log always and post the contents from there when you go in from the admin. i think it should log something there.
but my guess is that you have not properly set up a location in your square dashboard. which is why it is not showing up as a pulldown.
Re: Square WebPay support thread.
Quote:
Originally Posted by
carlwhat
hi jim,
v 1.0.4 makes use of square SDK version: 17.2.0.20220216. This SDK requires php 7.4 - php 8.0.
the error you are seeing is from php 8.2.
you may be able to run with php 8.1; but i have not tested it.
best.
Carl,
Thanks for the explanation. 8.1 also resulted in errors, in the log not on the website, so I reverted to PHP 8.0.
Any plans to update to a newer SDK?
Thanks,
Jim