Resource Not Found while trying to process a simple payment using Square Connect API

We are using WHMCS billing program and are not able to modify any code.  We purchased the Square module to use in WHMCs, perhaps this is information that their developers need.

4,043 Views
Message 1 of 8
Report
7 REPLIES 7

I am having this very same issue and I'm using woocomerce square extension. Any ideas how to fix this ?

4,013 Views
Message 2 of 8
Report
Square

Hi @digitalcreation and @syslotix, I'm trying to clean up the other thread because I think a few different issues were being reported there, though I believe yours are similar. Can elaborate on the issue you're experiencing here? Thanks!

3,963 Views
Message 3 of 8
Report

I want to use square to accept payments via credit cards on my website. First I was trying to woocomerce square extension to get the job done but it never worked. when I submit payment form it gives this error "Error: Square was unable to complete the transaction. Please try again later or use another means of payment." and when I check error log i find this 

Array
(
[0] => stdClass Object
(
[category] => INVALID_REQUEST_ERROR
[code] => NOT_FOUND
[detail] => Resource not found.
[field] => card_nonce
)

)
Order status changed from Pending Payment to Failed.

 

Let me know if you need anything else from my side

3,960 Views
Message 4 of 8
Report
Square

@syslotix That error is what is addressed in the original thread. Can you run through the trouble shooting tips there and let me know if they address the error?

3,954 Views
Message 5 of 8
Report

I have read that already and it didn't work. I have added payment form and I am not using sandbox credentials.

3,949 Views
Message 6 of 8
Report
Square

@syslotix, ok thanks for confiriming. 

 

1) To be clear, are you still using the WooCommerce plugin? Or trying to implement the SqPaymentForm in your own site?
2) Are you successfully able to generate a card nonce?
3) Are you including the card nonce in the charge request?

3,935 Views
Message 7 of 8
Report

Can you tell me that why sample code provided by Square API documentation is giving this Fatal Error.

Fatal error: Class 'SquareConnect\Api\TransactionApi' not found in process-card.php on line 35

 

I have followed all the steps as stated on the links below 

https://docs.connect.squareup.com/articles/adding-payment-form/

https://docs.connect.squareup.com/articles/processing-payment-php/

 

but I get this Fatal error. It would be really really great if you can help me sort out any of the 2 issues I have mentioned.

3,948 Views
Message 8 of 8
Report