NikolaGavric94 / laravel-square

Square integration with Laravel/Lumen >=5.5
MIT License
31 stars 23 forks source link

Card fails cause error #69

Closed tonytakumi closed 1 year ago

tonytakumi commented 2 years ago

If a card fails for whatever reason it throws an exception with APP_DEBUG=True and fails to return response to transaction. If APP_DEBUG=false it just creates a 500 error.

Nikolag\Square\Exceptions\InvalidSquareZipcodeException: Authorization error: 'ADDRESS_VERIFICATION_FAILURE' in file C:\inetpub\wwwroot\fundraiser\vendor\nikolag\laravel-square\src\SquareService.php on line 181

0 C:\inetpub\wwwroot\fundraiser\vendor\nikolag\laravel-square\src\SquareService.php(303): Nikolag\Square\SquareService->_handleChargeOrSaveException()

NikolaGavric94 commented 2 years ago

Hello @tonytakumi I've checked and it seems that something outside the scope of the library is causing the authorization issue, here is the link to it: https://docs.qpilot.cloud/docs/2000-square-error-code-transaction-limit-authorization-error-transaction-limit-error-code-address-verification