mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
add unknown code to response error object
This commit is contained in:
parent
0a4d6d61f2
commit
7dc1d89c74
2 changed files with 3 additions and 1 deletions
|
@ -6,6 +6,8 @@ namespace Inpsyde\PayPalCommerce\ApiClient\Entity;
|
|||
class ErrorResponse
|
||||
{
|
||||
|
||||
const UNKNOWN = 'UNKNOWN';
|
||||
|
||||
/* Order error codes */
|
||||
const ACTION_DOES_NOT_MATCH_INTENT='ACTION_DOES_NOT_MATCH_INTENT';
|
||||
const AGREEMENT_ALREADY_CANCELLED='AGREEMENT_ALREADY_CANCELLED';
|
||||
|
|
|
@ -49,7 +49,7 @@ class ErrorResponseCollectionFactory
|
|||
{
|
||||
return new ErrorResponseCollection(
|
||||
new ErrorResponse(
|
||||
'UNKNOWN',
|
||||
ErrorResponse::UNKNOWN,
|
||||
'unknown',
|
||||
0,
|
||||
$url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue