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.
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.
Re: Square WebPay support thread.
Thanks Carl, I understand. I will try to reinstall everything without Super Order.
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
Re: Square WebPay support thread.
I am also getting the following in the logs:
Quote:
[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
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.
Re: Square WebPay support thread.
Quote:
Originally Posted by
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
Re: Square WebPay support thread.
Updated OPC to 2.5.0
Unfortunately, I am still getting the following error log:
Quote:
[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
Re: Square WebPay support thread.
Quote:
Originally Posted by
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.
Re: Square WebPay support thread.
Quote:
Originally Posted by
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.