Forums / Addon Payment Modules / Square WebPay support thread.

Square WebPay support thread.

Views: 129,451

Results 81 to 100 of 803
6 May 2022, 2:09 PM
#81
carlwhat avatar

carlwhat

zennedOut

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

Square WebPay support thread.

johnjlarge:

Customer is having this error.

SQ-MISCONF

This is whats shown in the logs:-

Any ideas what can cause this?

Thanks in advance

a customer? interesting....

is the customer using OPC?

given that you are providing support to a customer, i would suggest reading this support thread. the answer is on this thread. specifically here:

https://www.zen-cart.com/showthread.php?228750-Square-WebPay-support-thread&p=1387913#post1387913

you can replace the following 2 files:

https://github.com/proseLA/square_webPay/blob/master/for_upload/includes/modules/pages/checkout_payment/jscript_square_webPay.php
https://github.com/lat9/one_page_checkout/blob/master/includes/modules/pages/checkout_one/jquery.checkout_one.js

and then there will some additional information in the console on the developer tools.

if the customer is using the OPC minimized, then you can also replace this file:

https://github.com/lat9/one_page_checkout/blob/master/includes/modules/pages/checkout_one/jquery.checkout_one.min.js

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.

6 May 2022, 2:24 PM
#82
johnjlarge avatar

johnjlarge

New Zenner

Join Date:
Oct 2007
Location:
Cornwall/Amsterdam
Posts:
61
Plugin Contributions:
0

Re: Square WebPay support thread.

carlwhat:

a customer? interesting....

is the customer using OPC?

given that you are providing support to a customer, i would suggest reading this support thread. the answer is on this thread. specifically here:

https://www.zen-cart.com/showthread.php?228750-Square-WebPay-support-thread&p=1387913#post1387913

you can replace the following 2 files:

https://github.com/proseLA/square_webPay/blob/master/for_upload/includes/modules/pages/checkout_payment/jscript_square_webPay.php
https://github.com/lat9/one_page_checkout/blob/master/includes/modules/pages/checkout_one/jquery.checkout_one.js

and then there will some additional information in the console on the developer tools.

if the customer is using the OPC minimized, then you can also replace this file:

https://github.com/lat9/one_page_checkout/blob/master/includes/modules/pages/checkout_one/jquery.checkout_one.min.js

best.

My apologies for the confusion, I meant a customer tried to complete a transaction on our website and received the error, and the log was generated. We don't use OPC, its just the standard zen cart paying flow of shipping > payment > confirmation.

6 May 2022, 2:35 PM
#83
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

johnjlarge:

My apologies for the confusion, I meant a customer tried to complete a transaction on our website and received the error, and the log was generated. We don't use OPC, its just the standard zen cart paying flow of shipping > payment > confirmation.

have you had any customers successfully pay with square webPay?

what template are you using? and what is the site address?

the first file is still helpful to have on the site, you can get the raw version from here:

https://raw.githubusercontent.com/proseLA/square_webPay/master/for_upload/includes/modules/pages/checkout_payment/jscript_square_webPay.php

it will provide some info on the console.

it's entirely possible that your customer is using a very old browser that is not supported.

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

6 May 2022, 3:45 PM
#84
johnjlarge avatar

johnjlarge

New Zenner

Join Date:
Oct 2007
Location:
Cornwall/Amsterdam
Posts:
61
Plugin Contributions:
0

Re: Square WebPay support thread.

carlwhat:

have you had any customers successfully pay with square webPay?

what template are you using? and what is the site address?

the first file is still helpful to have on the site, you can get the raw version from here:

https://raw.githubusercontent.com/proseLA/square_webPay/master/for_upload/includes/modules/pages/checkout_payment/jscript_square_webPay.php

it will provide some info on the console.

it's entirely possible that your customer is using a very old browser that is not supported.

We've had lots of orders go through without issue via webpay. This is the first to show this error so maybe specific to that user.

Templates is based on Responsive Avonlee Contemporary. sites is at https://www.koolbadges.co.uk

I'll add the suggested file in case this happens again.

6 May 2022, 4:21 PM
#85
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

johnjlarge:

We've had lots of orders go through without issue via webpay. This is the first to show this error so maybe specific to that user.

Templates is based on Responsive Avonlee Contemporary. sites is at https://www.koolbadges.co.uk

I'll add the suggested file in case this happens again.

if you are not using OPC, and you have had plenty of successful transactions, pretty sure the issue is on the customer side. or potentially loading of multiple versions of jquery on the site. which i am not seeing on your site.

i have changed the logging of that message, as there is no need for the rest of the post vars. you can upload this file (in its respective place) as well:

https://raw.githubusercontent.com/proseLA/square_webPay/master/for_upload/includes/modules/payment/square_webPay.php

i should be submitting an updated version soon. but the changes are really for error logging and troubleshooting as the core part of processing cc transactions has not changed.

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 May 2022, 10:29 AM
#86
chuckphillips avatar

chuckphillips

Zen Follower

Join Date:
Sep 2012
Location:
Upstate South Carolina
Posts:
106
Plugin Contributions:
1

Re: Square WebPay support thread.

ZC 1.56c, PHP 7.4,

If the customer has an apostrophe in their name (like Andre') or address (like River Fall's Place), the CC form will not load. Does not appear that was an issue with the old plugin.

Removing the apostrophe will allow checkout.

14 May 2022, 5:19 PM
#87
vdecals avatar

vdecals

Zen Follower

Join Date:
Jun 2009
Location:
Sparta, TN
Posts:
166
Plugin Contributions:
0

Re: Square WebPay support thread.

Good afternoon,
I'm getting a "whoops, your session has expired" upon submitting Order Confirmation Step 3 of 3 Confirm the Order.

I tried replacing file: https://github.com/proseLA/square_webPay/blob/master/for_upload/includes/modules/pages/checkout_payment/jscript_square_webPay.php (and added a blank line after initially receiving a white page on 2nd page)
I also tried replacing my Square "Production Application secret"

  • Running
    1.5.7d (upgraded from 1.5.7b)
    clone a template (cloned Responsive Classic Template)
    Sitemap XML v4.0
    Square WebPay
    PayPal Express Checkout

No debug logs are being generated after adding blank line to fix "unexpected end of file in "/public_html/VDSstore/includes/modules/pages/checkout_payment/jscript_square_webPay.php on line 191"

I appreciate help from anyone.

My store - closed 12/05/2023
1.5.7d (upgraded from 1.5.7b), clone a template (cloned Responsive Classic Template), Sitemap XML v4.0, Square WebPay, PayPal Express Checkout, PHP Version: 7.4.29 (Zend: 3.4.0)

14 May 2022, 6:16 PM
#88
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

VDecalS:

Good afternoon,
I'm getting a "whoops, your session has expired" upon submitting Order Confirmation Step 3 of 3 Confirm the Order.

I tried replacing file: https://github.com/proseLA/square_webPay/blob/master/for_upload/includes/modules/pages/checkout_payment/jscript_square_webPay.php (and added a blank line after initially receiving a white page on 2nd page)
I also tried replacing my Square "Production Application secret"

  • Running
    1.5.7d (upgraded from 1.5.7b)
    clone a template (cloned Responsive Classic Template)
    Sitemap XML v4.0
    Square WebPay
    PayPal Express Checkout

No debug logs are being generated after adding blank line to fix "unexpected end of file in "/public_html/VDSstore/includes/modules/pages/checkout_payment/jscript_square_webPay.php on line 191"

I appreciate help from anyone.

why you are getting to a timeout, i can not say. i went to your site, and it looks like you have square in sandbox mode. square_webPay is doing everything as expected. see this screenshot:

https://www.dropbox.com/s/dgj8qduuahvo748/Screenshot%20from%202022-05-14%2011-00-27.png?dl=0

the tokenResult is on the form and hidden, and its status is ok. as i entered a test credit card number, i can only assume that you are in test mode else the status would not have been ok.

i would try live credentials and see if that works.

as far as the timeout goes, have you overridden your checkout_process.php file? i would think that is where the timeout is happening, specifically here:

https://github.com/zencart/zencart/blob/742b837868a2b128df96b6635c413c8187972679/includes/modules/checkout_process.php#L28-L39

do you have this file:

/YOUR_STORE_ROOT/includes/modules/Gray157b/checkout_process.php

if you do great. if not copy it from here:

/YOUR_STORE_ROOT/includes/modules/checkout_process.php

to the above location. you can then change your slamming_threshold to something like 15, and see if that helps.

as far as square_webpay, i see no problems.

hope that helps!

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 May 2022, 8:12 PM
#89
vdecals avatar

vdecals

Zen Follower

Join Date:
Jun 2009
Location:
Sparta, TN
Posts:
166
Plugin Contributions:
0

Re: Square WebPay support thread.

carlwhat:

why you are getting to a timeout, i can not say. i went to your site, and it looks like you have square in sandbox mode. square_webPay is doing everything as expected. see this screenshot:

https://www.dropbox.com/s/dgj8qduuahvo748/Screenshot%20from%202022-05-14%2011-00-27.png?dl=0

the tokenResult is on the form and hidden, and its status is ok. as i entered a test credit card number, i can only assume that you are in test mode else the status would not have been ok.

i would try live credentials and see if that works.

I checked that the Square WebPay Module "Application ID" and "Application Secret (OAuth)" match the "production" credentials from my Square account and I have the "Transaction Type" set to purchase. Is there something else I need to change in my Square account?
How are you deciphering sandbox mode in the image? (It's all Greek to me)

carlwhat:

as far as the timeout goes, have you overridden your checkout_process.php file? i would think that is where the timeout is happening, specifically here:

https://github.com/zencart/zencart/blob/742b837868a2b128df96b6635c413c8187972679/includes/modules/checkout_process.php#L28-L39

do you have this file:

/YOUR_STORE_ROOT/includes/modules/Gray157b/checkout_process.php

if you do great. if not copy it from here:

/YOUR_STORE_ROOT/includes/modules/checkout_process.php

to the above location. you can then change your slamming_threshold to something like 15, and see if that helps.

as far as square_webpay, i see no problems.

hope that helps!

best.

I did not have checkout_process.php in my Gray157b, so I added it and changed the slamming threshold from 3 to 15 with no changed result. I tried checking out with PayPal and it steps me through page 3 of 3 without the "Whoops!" (no time out).

The square-webPay-master zip file is dated 04/05/2022. I did a search via WinSCP for files dated 4/5/2022 all are from the module. So I guess I could delete and start over. Thoughts/advice?

Thank you for the NBL carlwhat.

My store - closed 12/05/2023
1.5.7d (upgraded from 1.5.7b), clone a template (cloned Responsive Classic Template), Sitemap XML v4.0, Square WebPay, PayPal Express Checkout, PHP Version: 7.4.29 (Zend: 3.4.0)

15 May 2022, 2:05 PM
#90
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

VDecalS:

I checked that the Square WebPay Module "Application ID" and "Application Secret (OAuth)" match the "production" credentials from my Square account and I have the "Transaction Type" set to purchase. Is there something else I need to change in my Square account?
How are you deciphering sandbox mode in the image? (It's all Greek to me)

I did not have checkout_process.php in my Gray157b, so I added it and changed the slamming threshold from 3 to 15 with no changed result. I tried checking out with PayPal and it steps me through page 3 of 3 without the "Whoops!" (no time out).

The square-webPay-master zip file is dated 04/05/2022. I did a search via WinSCP for files dated 4/5/2022 all are from the module. So I guess I could delete and start over. Thoughts/advice?

Thank you for the NBL carlwhat.

i am not really sure what is causing your time out. i have looked at the square changes i have done since 4/5; and nothing in there would seem to address this problem.

have you tried any other payment modules to see if they work besides paypal?

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

15 May 2022, 4:08 PM
#91
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

it has also come to my attention, that it may be related to a cookie setting. do you have if you have this value set: COOKIE_SAMESITE? and if so, what is it?

one could look using the developer tools off the admin -> tools menu.

also, what version of php are you running?

and finally please confirm that you are running zc 1.5.7d.

thanks.

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

15 May 2022, 4:23 PM
#92
vdecals avatar

vdecals

Zen Follower

Join Date:
Jun 2009
Location:
Sparta, TN
Posts:
166
Plugin Contributions:
0

Re: Square WebPay support thread.

I ran a search in the tool kit for COOKIE_SAMESITE (ran in every option) and found just these two:

/home/vinyld6/public_html/VDSstore/***/includes/init_includes/init_sessions.php
Line #25 : $samesite = (defined('COOKIE_SAMESITE')) ? COOKIE_SAMESITE : 'lax';
and

/home/vinyld6/public_html/VDSstore/includes/init_includes/init_sessions.php
Line # 42 : $samesite = (defined('COOKIE_SAMESITE')) ? COOKIE_SAMESITE : 'lax';

PHP Version: 7.2.34 (Zend: 3.2.0)
Zen Cart 1.5.7d
Database Patch Level: 1.5.7b
v1.5.7b [2021-02-20 16:19:18] (Version Update 1.5.6->1.5.7b)
v1.5.6c [2021-02-20 16:19:17] (Version Update 1.5.5->1.5.6c)
v1.5.5 [2016-03-30 10:00:19] (Version Update 1.5.4->1.5.5)
v1.5.4 [2016-03-30 10:00:18] (Version Update 1.5.3->1.5.4)
v1.5.3 [2016-03-30 10:00:18] (Version Update 1.5.2->1.5.3)
v1.5.2 [2016-03-30 10:00:17] (Version Update 1.5.1->1.5.2)
v1.5.1 [2016-03-30 10:00:16] (Version Update 1.5.0->1.5.1)
v1.5.0 [2016-03-30 10:00:15] (Version Update 1.3.9->1.5.0)
v1.3.9b [2010-05-15 15:00:01] (Version Update 1.3.8->1.3.9b)
v1.3.8 [2009-06-14 16:02:34] (Fresh Installation)
v1.3.8 [2009-06-14 16:02:34] (Fresh Installation)

Thinking I had a corruption during upload, I was just about to delete all the Square WebPay files and start over. I also have FULL backups prior to the install of Square WebPay that I can restore.

Thanks again carlwhat

My store - closed 12/05/2023
1.5.7d (upgraded from 1.5.7b), clone a template (cloned Responsive Classic Template), Sitemap XML v4.0, Square WebPay, PayPal Express Checkout, PHP Version: 7.4.29 (Zend: 3.4.0)

15 May 2022, 4:43 PM
#93
vdecals avatar

vdecals

Zen Follower

Join Date:
Jun 2009
Location:
Sparta, TN
Posts:
166
Plugin Contributions:
0

Re: Square WebPay support thread.

... Money Order payment option works. I have no other online modules set up that I can test.
Do you want me to enable Square WebPay for your research?

My store - closed 12/05/2023
1.5.7d (upgraded from 1.5.7b), clone a template (cloned Responsive Classic Template), Sitemap XML v4.0, Square WebPay, PayPal Express Checkout, PHP Version: 7.4.29 (Zend: 3.4.0)

15 May 2022, 6:09 PM
#94
vdecals avatar

vdecals

Zen Follower

Join Date:
Jun 2009
Location:
Sparta, TN
Posts:
166
Plugin Contributions:
0

Re: Square WebPay support thread.

I deleted all the Square WebPay files via WinSCP and reinstalled the module. Still no joy. I did get a warning log:

File Contents( /home/vinyld6/logs/myDEBUG-adm-20220515-180033-869325-warning.log)
[15-May-2022 13:00:34 America/Chicago] Request URI: /VDSstore//index.php?cmd=modules&set=payment&action=install, IP address: 152.97.210.26
#1 square_webPay->__construct() called at [/
/modules.php:106]
#2 require(//modules.php) called at [//index.php:11]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_SQ_WEBPAY_TESTING_MODE - assumed 'MODULE_PAYMENT_SQ_WEBPAY_TESTING_MODE' (this will throw an Error in a future version of PHP) in /includes/modules/payment/square_webPay.php on line 106.

[15-May-2022 13:00:34 America/Chicago] Request URI: /VDSstore//index.php?cmd=modules&set=payment&action=install, IP address: 152.97.210.26
#1 square_webPay->__construct() called at [/
/modules.php:106]
#2 require(//modules.php) called at [//index.php:11]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_SQ_WEBPAY_ACCESS_TOKEN - assumed 'MODULE_PAYMENT_SQ_WEBPAY_ACCESS_TOKEN' (this will throw an Error in a future version of PHP) in /includes/modules/payment/square_webPay.php on line 111.

Does this log help ID the "Whoops!"?

My next step will be to restore my site.

My store - closed 12/05/2023
1.5.7d (upgraded from 1.5.7b), clone a template (cloned Responsive Classic Template), Sitemap XML v4.0, Square WebPay, PayPal Express Checkout, PHP Version: 7.4.29 (Zend: 3.4.0)

15 May 2022, 6:25 PM
#95
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: Square WebPay support thread.

VDecalS:

I ran a search in the tool kit for COOKIE_SAMESITE (ran in every option) and found just these two:

/home/vinyld6/public_html/VDSstore/***/includes/init_includes/init_sessions.php
Line #25 : $samesite = (defined('COOKIE_SAMESITE')) ? COOKIE_SAMESITE : 'lax';
and

/home/vinyld6/public_html/VDSstore/includes/init_includes/init_sessions.php
Line # 42 : $samesite = (defined('COOKIE_SAMESITE')) ? COOKIE_SAMESITE : 'lax';

PHP Version: 7.2.34 (Zend: 3.2.0)
Zen Cart 1.5.7d
Database Patch Level: 1.5.7b
v1.5.7b [2021-02-20 16:19:18] (Version Update 1.5.6->1.5.7b)
v1.5.6c [2021-02-20 16:19:17] (Version Update 1.5.5->1.5.6c)
v1.5.5 [2016-03-30 10:00:19] (Version Update 1.5.4->1.5.5)
v1.5.4 [2016-03-30 10:00:18] (Version Update 1.5.3->1.5.4)
v1.5.3 [2016-03-30 10:00:18] (Version Update 1.5.2->1.5.3)
v1.5.2 [2016-03-30 10:00:17] (Version Update 1.5.1->1.5.2)
v1.5.1 [2016-03-30 10:00:16] (Version Update 1.5.0->1.5.1)
v1.5.0 [2016-03-30 10:00:15] (Version Update 1.3.9->1.5.0)
v1.3.9b [2010-05-15 15:00:01] (Version Update 1.3.8->1.3.9b)
v1.3.8 [2009-06-14 16:02:34] (Fresh Installation)
v1.3.8 [2009-06-14 16:02:34] (Fresh Installation)

Thinking I had a corruption during upload, I was just about to delete all the Square WebPay files and start over. I also have FULL backups prior to the install of Square WebPay that I can restore.

Thanks again carlwhat
In addition, check your storefront /includes/configure.php file to make sure that both the HTTP_SERVER and HTTPS_SERVER definitions start with 'https' and that ENABLE_SSL is set to 'true' (including the quotes).

If those are all OK, for the SAMESITE_COOKIE setting (although I've not seen any other time-out issues reported in this support-thread), try creating a file named samesite_cookie.php in the storefront /includes/extra_datafiles directory that contains:

<?php
// -----
// Identify that the site uses the 'samesite' cookie setting of 'None', since some payments (when returning
// from a 3DS verification) need the cookie set this way.
//
if (ENABLE_SSL == 'true') {
    define('COOKIE_SAMESITE', 'none');
}

That 'might' work, but I'm on a guessing path here!

15 May 2022, 8:03 PM
#96
vdecals avatar

vdecals

Zen Follower

Join Date:
Jun 2009
Location:
Sparta, TN
Posts:
166
Plugin Contributions:
0

Re: Square WebPay support thread.

Checked - storefront /includes/configure.php
define('HTTP_SERVER', 'https://vinyldecalsuperstore.com');
define('HTTPS_SERVER', 'https://vinyldecalsuperstore.com');
define('ENABLE_SSL', 'true');
looks good there.

Created the samesite_cookie.php and copied the code with no trailing blank line, then with a trailing blank line after the }, neither got me past the Whoops.

Thanks for looking Cindy!

My store - closed 12/05/2023
1.5.7d (upgraded from 1.5.7b), clone a template (cloned Responsive Classic Template), Sitemap XML v4.0, Square WebPay, PayPal Express Checkout, PHP Version: 7.4.29 (Zend: 3.4.0)

15 May 2022, 8:21 PM
#97
vdecals avatar

vdecals

Zen Follower

Join Date:
Jun 2009
Location:
Sparta, TN
Posts:
166
Plugin Contributions:
0

Re: Square WebPay support thread.

I do notice that my Location ID is not being displayed after step 2 of module install (ie. green box ..login and Authorize your account)
Attachment 19988
I have to EDIT Square WebPay again, making no changes, just clicking the UPDATE button. Then the Location ID shows as:
VinylDecalSuperstore.com:[letter/number-code]:USD

I hope this is the important information, I've neglected to tell before now, that will allow a fix.

My store - closed 12/05/2023
1.5.7d (upgraded from 1.5.7b), clone a template (cloned Responsive Classic Template), Sitemap XML v4.0, Square WebPay, PayPal Express Checkout, PHP Version: 7.4.29 (Zend: 3.4.0)

15 May 2022, 8:37 PM
#98
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,848
Plugin Contributions:
17

Re: Square WebPay support thread.

1.5.7d (upgraded from 1.5.7b), clone a template (cloned Responsive Classic Template), Sitemap XML v4.0, Square WebPay, PayPal Express Checkout, PHP Version: 7.2.34Please note that this module needs PHP 7.3.3.
I have not been able to get it going with anything less.
You are at 1.5.7d which should be able to handle 7.4 or 8.0. Some of your existing mods may not play well with 8.0, so start with 7.4 and work up.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

15 May 2022, 10:02 PM
#99
vdecals avatar

vdecals

Zen Follower

Join Date:
Jun 2009
Location:
Sparta, TN
Posts:
166
Plugin Contributions:
0

Re: Square WebPay support thread.

dbltoe:

Please note that this module needs PHP 7.3.3.
I have not been able to get it going with anything less.
You are at 1.5.7d which should be able to handle 7.4 or 8.0. Some of your existing mods may not play well with 8.0, so start with 7.4 and work up.
Humm. Tried both, neither let me complete purchase so I knocked it back to PHP 7.4.29 (Zend: 3.4.0)
Thanks dbltoe

My store - closed 12/05/2023
1.5.7d (upgraded from 1.5.7b), clone a template (cloned Responsive Classic Template), Sitemap XML v4.0, Square WebPay, PayPal Express Checkout, PHP Version: 7.4.29 (Zend: 3.4.0)

16 May 2022, 10:19 AM
#100
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: Square WebPay support thread.

Since the site is running https-all-the-time, your site's root .htaccess file should 'support' that. Make a backup copy and add the following clauses close to the top of the file to 'force' the access to https://vinyldecalsuperstore.com/{whatever} when the access is made as

vinyldecalsuperstore.com/VDSstore/{whatever}
http://vinyldecalsuperstore.com/{whatever}
http://www.vinyldecalsuperstore.com/{whatever}
https://www.vinyldecalsuperstore.com/{whatever}

RewriteCond %{SERVER_PORT} 80 [OR]
RewriteCond %{HTTP_HOST} ^www\.vinyldecalsuperstore\.com$ [NC]
RewriteRule (.*) https://vinyldecalsuperstore.com/$1 [R=301,L]