Just did a test order on the site with the fatal error. Got the same error BUT, the order processed.
Just did a test order on the site with the fatal error. Got the same error BUT, the order processed.
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting.
i have just submitted version 1.0.3 for review.
i'm of the opinion that the small bug previously documented warranted a new release.
best.
Approved.
That Software Guy. My Store: Zen Cart Modifications
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.
Here's the scenario:
- Site uses One Page Checkout and Square WebPay
- Customer selects product, adds to cart, and selects Guest Checkout
- If the customer's browser offers them a remembered card for use, they select that card
- Most systems ask the customer for their CVV to verify and add the card to the form.
- Often the Zip Code is left to be filled in by the customer.
- If the customer does not click on enter or tab to the next box but, instead, scrolls down and clicks on Confirm Order, they will get the invalid token notice.
- What has happened is that the customer has asked the cart to submit the order BEFORE the CC form is completed correctly. Essentially transmitting the transaction without a Zip Code.
- So, anytime a customer is using Square and clicks on the Confirm Order button without the CC form properly filled out will get the Token error.
Thus the error received isBy not finishing the entry process on the CC form before clicking on the Confirm Order button, the customer is forcing OPC to submit an invalid CC form.Code:[30-Oct-2022 12:54:58 America/Los_Angeles] PHP Notice: missing token result: check if card button is disabled on dev console using: document.getElementById('card-button'); else look for javascript error in console. in /includes/modules/payment/square_webPay.php on line 261
The answer may be totally in OPC's court but at least I can see why the token errors have been so random.
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting.
I don't use OPC and got the same warning so you may be able to rule that out.
At the time I was not running V1.0.2 though but a test version carlwhat gave me that fixed the issues when the store is hosted in a subfolder. The only modified file was /includes/modules/pages/checkout_payment/jscript_square_webPay.phpCode:[27-Oct-2022 14:38:53 Europe/London] PHP Notice: missing token result: check if card button is disabled on dev console using: document.getElementById('card-button'); else look for javascript error in console. in /includes/modules/payment/square_webPay.php on line 239
I don't think there is an error with OPC. I think the problem is with the customer who enters the last bit off CC info without hitting enter or tabbing out of the CC form and clicking on the confirm order button.
My thought for a fix would work for either one. Make the confirm button disabled until the payment form is fully completed.
Just my WAG
I'll leave it up to Paul, Cindy and Scott et al to work it out. I stand ready to test any possible solutions.
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting.
In the past (and also these days), I have added written instructions to the payment selection area on the checkout page.
Generally, these are coloured RED and in BOLD text - so the idiots who do online shopping (that's me too), are instructed what to do before hit "Confirm Order".
EG: Above the option for CARD PAYMENTS I have;
Make sure to enter your card details manually! All fields are needed - CARD NUMBER, EXPIRY DATE, CVV
19 years a Zencart User
Bookmarks