square payments api v2 giving payment process 404 error

846 Views Asked by At

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 enter image description here

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?

2

There are 2 best solutions below

0
sheharyar anwer On

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.

0
Devil On

Use HTTPS instead of HTTP like https://localhost/square3/php_payment.php