9469004-zen
In busy sites we'd have multiple requests from multiple shoppers for create order or say create payment on Square. I think we should look at opportunities where we can add some more useful information to the logging.
One such example is createPayment request
uri: createPayment
user-agent: WooCommerce-Square/4.8.7 (WooCommerce/9.7.1; WordPress/6.7.2)
headers: Array
(
)
The response doesn't include ref id / order ID from Square so we don't know which order does the error belong to however we have an opportunity to add Order ID right after that:
Status code GENERIC_DECLINE: Authorization error: 'GENERIC_DECLINE'
which seems to be coming from do_transaction_failed_result() - If we can include order ID in the logging here it becomes easy to troubleshoot issues.
Currently we're helping merchant figure out why the number of order notes in order saying GENERIC_DECLINE doesn't match with the transaction reports on Square. The order notes have about 6 such notes however Square portal shows 10 failed attempts under Reports > Transaction Status Interestingly this area is not available on sandbox accounts.
Misc
It would also be good if we make this part in the Square plugin a bit more descriptive:
The first part says Debug mode - but does not clarify it is for the payments/orders/customers part and then there's Enable Logging which should clarify it is more about merchant account related API calls and would be stored in logs with name "square"

9469004-zen
In busy sites we'd have multiple requests from multiple shoppers for create order or say create payment on Square. I think we should look at opportunities where we can add some more useful information to the logging.
One such example is createPayment request
The response doesn't include ref id / order ID from Square so we don't know which order does the error belong to however we have an opportunity to add Order ID right after that:
which seems to be coming from do_transaction_failed_result() - If we can include order ID in the logging here it becomes easy to troubleshoot issues.
Currently we're helping merchant figure out why the number of order notes in order saying GENERIC_DECLINE doesn't match with the transaction reports on Square. The order notes have about 6 such notes however Square portal shows 10 failed attempts under Reports > Transaction Status Interestingly this area is not available on sandbox accounts.
Misc
It would also be good if we make this part in the Square plugin a bit more descriptive:
The first part says Debug mode - but does not clarify it is for the payments/orders/customers part and then there's Enable Logging which should clarify it is more about merchant account related API calls and would be stored in logs with name "square"