Quote Originally Posted by todoonada View Post
Hello,
sometimes I get an error mail when a customer wants to pay by Square:

Error Dump: stdClass Object
(
[errors] => Array
(
[0] => stdClass Object
(
[code] => VALUE_EMPTY
[detail] => Field must not be blank
[field] => source_id
[category] => INVALID_REQUEST_ERROR
)


[1] => stdClass Object
(
[code] => VALUE_EMPTY
[detail] => Field must not be blank
[field] => idempotency_key
[category] => INVALID_REQUEST_ERROR
)


[2] => stdClass Object
(
[code] => MISSING_REQUIRED_PARAMETER
[detail] => Field must be set
[field] => amount_money
[category] => INVALID_REQUEST_ERROR
)
)
)

I can not find out what the reason is. Minutes before and after people paid successfully.
Zen Cart version 1.5.5f
Square module: 1.5
php-version 7.3.28
I got another error now.

[errors] => Array ( [0] => stdClass Object ( [code] => INVALID_ACCOUNT [detail] => Authorization error: 'INVALID_ACCOUNT' [category] => PAYMENT_METHOD_ERROR ) )

The same customer ordered the day before without any problem.