Quote Originally Posted by nicksab View Post
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.