Reputation: 13
i am trying to integrate square payments php api in my website, i am using this source i have followed all the steps but it gives me an error when i proceed to payment after inputting all the card details, the console shows /process payment 404 not found, like the one shown below
the payment process file is already in the folder, only change i made from the source is that i used "composer install" instead of "composer.phar install" because that was not working.
can anyone please help on what should be done?
Upvotes: -2
Views: 971
Reputation: 1
Use HTTPS instead of HTTP like https://localhost/square3/php_payment.php
Upvotes: 0
Reputation: 13
i got a fix to this, there was a fault in the sqaure php api itself, i reached sqaure support, there was a variable that had wrong value on their side, the new and updated code can be found here
Follow the rest of the instructions as documented and it should work fine now.
Upvotes: -1