PHP payments working on test machine but not live server

I have successfully developed my online payment system on my test machine. I have a registration form that goes to the payment SDK. On my test machine, the form submit goes to the payment SDK like it should and the test payment goes through just fine to the sandbox. I copied everything over to the server and when I tested, the form submit never goes to the payment SDK and I get the following error:

Screenshot 2024-07-28 122318

I did notice that when I was uploading the payments SDK folder there were several duplicate files that I just told Filezilla to overwrite. Could that be the issue?

PS - I will add that I am not even using Google Pay. I am only using card pay.

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Payment API: Process Online and In-Person Payments
Online Payment Solutions
Deploy the Server

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

The error message you’re seeing indicates that the server is unable to find the required file or directory. This could be due to several reasons:

  1. File or Directory Does Not Exist: The file or directory you’re trying to access might not exist on the server. Make sure that all the necessary files and directories have been correctly uploaded to the server.

  2. Incorrect File or Directory Path: The path to the file or directory might be incorrect. Check the paths in your code to ensure they correctly point to the location of your files and directories on the server.

  3. File Permissions: The server might not have the necessary permissions to access the file or directory. Check the file permissions to ensure the server can read the file or directory.

Overwriting files during upload should not cause this issue unless the overwritten files were not identical to the original ones. If you suspect this might be the case, try re-uploading the original files.

Remember to clear any caches and restart your server after making these changes to ensure they take effect.

This answer was reviewed by @Bryan-Square.

The error message you’re seeing indicates that the server is unable to find the required file or directory. This could be due to several reasons:

  1. File or Directory Does Not Exist: The file or directory you’re trying to access might not exist on the server. Make sure that all the necessary files and directories have been correctly uploaded to the server.

  2. Incorrect File or Directory Path: The path to the file or directory might be incorrect. Check the paths in your code to ensure they correctly point to the location of your files and directories on the server.

  3. File Permissions: The server might not have the necessary permissions to access the file or directory. Check the file permissions to ensure the server can read the file or directory.

Overwriting files during upload should not cause this issue unless the overwritten files were not identical to the original ones. If you suspect this might be the case, try re-uploading the original files.

Remember to clear any caches and restart your server after making these changes to ensure they take effect.

This answer was reviewed by @Bryan-Square.