Trying to update my Square integration for SCA. Worked once, got the verification screen, entered in the 123456 verification code and payment was successful.
Then I no longer got a verification screen. FINALLY figured out it was selecting a different location that was not in the UK when the first time it did.
Now I am getting the verification screen but get a declined message.
"Card declined. A verification is required to process this payment. "
Why would it be declined AFTER I went through the verification process?
What is your application id and the location_id being used? I can take a look at our logs. However, I want to call out that the Transactions API is currently deprecated and is planned to be fully retired (no longer guaranteed to work) in September of 2021. You should migrate to the Payments API as soon as possible.
Thanks for that information! I took a look at our logs and found that we’re not actually receiving the verification token, which is why you’re receiving that error. Looking at the code you provided above, I believe you need to change verificationToken to verification_token (underscore vs camelCase).
Also, I would like to note that we do have a new PHP SDK that I strongly recommend you to migrate to. While the old SDK will not stop working, it is technically deprecated and is no longer receiving new features or updates. Please let me know if you have additional questions or concerns!