Error When submitting payment

Hi,

I am getting the following error when submitting payment.

sqpaymentform.js:139 Uncaught TypeError: Cannot read properties of null (reading ‘submit’)
at cardNonceResponseReceived (sqpaymentform.js:139:44)
at mt._cardNonceResponseReceived (paymentform:1:155283)
at mt.receiveMessageCallback (paymentform:1:151748)
cardNonceResponseReceived @ sqpaymentform.js:139
mt._cardNonceResponseReceived @ paymentform:1
mt.receiveMessageCallback @ paymentform:1

Is there a reason you’re using the SqPaymentForm? It’s going to be retired on Monday 10/31. You’ll want to use the Web Payments SDK. :slightly_smiling_face:

Great I just paid someone from freelancer to create the code. I guess he missed that part. :frowning: