From 5352e9e38a535ca74b78df5e4bcb6e8d4472dcac Mon Sep 17 00:00:00 2001 From: carmenmaymo Date: Mon, 19 Jun 2023 09:19:33 +0200 Subject: [PATCH] Add AGREEMENT_ALREADY_CANCELLED error message --- modules/ppcp-api-client/src/Exception/PayPalApiException.php | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ppcp-api-client/src/Exception/PayPalApiException.php b/modules/ppcp-api-client/src/Exception/PayPalApiException.php index 97ac91c5c..9db633729 100644 --- a/modules/ppcp-api-client/src/Exception/PayPalApiException.php +++ b/modules/ppcp-api-client/src/Exception/PayPalApiException.php @@ -160,6 +160,7 @@ public function get_customer_friendly_message( stdClass $json ): string { 'DUPLICATE_INVOICE_ID' => __( 'The transaction has been refused because the Invoice ID already exists. Please create a new order or reach out to the store owner.', 'woocommerce-paypal-payments' ), 'PAYER_CANNOT_PAY' => __( 'There was a problem processing this transaction. Please reach out to the store owner.', 'woocommerce-paypal-payments' ), 'PAYEE_ACCOUNT_RESTRICTED' => __( 'There was a problem processing this transaction. Please reach out to the store owner.', 'woocommerce-paypal-payments' ), + 'AGREEMENT_ALREADY_CANCELLED' => __( 'The requested agreement is already canceled. Please reach out to the PayPal support for more information.', 'woocommerce-paypal-payments' ), ); $improved_errors = array_filter( array_keys( $improved_keys_messages ),