Add AGREEMENT_ALREADY_CANCELLED error message

This commit is contained in:
carmenmaymo 2023-06-19 09:19:33 +02:00
parent 1540c591ab
commit 5352e9e38a
No known key found for this signature in database
GPG key ID: 6023F686B0F3102E

View file

@ -160,6 +160,7 @@ class PayPalApiException extends RuntimeException {
'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 ),