Skip to content

Commit

Permalink
Merge pull request #1447 from woocommerce/fix/PCP-1761-agrrement_canc…
Browse files Browse the repository at this point in the history
…elled_error

Agreement already cancelled error improved message
  • Loading branch information
Dinamiko authored Apr 18, 2024
2 parents 425dc7d + 5352e9e commit f2ede2f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ),
Expand Down

0 comments on commit f2ede2f

Please sign in to comment.