Payments quick start guide returning "payment failed" every time

Do I need all of the associated files as well on the server?

Couple of questions:

  1. I don’t see this in the PHP example list of files.
    require ‘vendor/autoload.php’;

  2. Is the environment the location ID?
    $square_client = new SquareClient([
    ‘accessToken’ => getenv(‘SQUARE_ACCESS_TOKEN’),
    ‘environment’ => getenv(‘ENVIRONMENT’),
    ‘userAgentDetail’ => ‘sample_app_php_payment’, // Remove or replace this detail when building your own app
    ]);

  3. does this mean that everything is working as expected in sandbox mode?

Yes, and are you familiar with using Composer? :slightly_smiling_face:

I have not used composer. So, the log is saying that it worked, but I have not seen any kind of output on the page, when the code runs. Theoretically, the host does support PHP on the same server that the CF site is on, so it should work. But … it’s not writing any kind of success or failure message on the page itself. This might not work after all. :confused: