sheharyar anwer
sheharyar anwer

Reputation: 13

square payments api v2 giving payment process 404 error

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?

Upvotes: -2

Views: 971

Answers (2)

Devil
Devil

Reputation: 1

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

Upvotes: 0

sheharyar anwer
sheharyar anwer

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

Related Questions