mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge pull request #2271 from woocommerce/PCP-3131-improve-could-not-retrieve-order-error-message
Improve "Could not retrieve order" error message (3131)
This commit is contained in:
commit
a0d0375ec0
1 changed files with 8 additions and 3 deletions
|
@ -220,9 +220,14 @@ class OrderProcessor {
|
|||
);
|
||||
|
||||
throw new PayPalOrderMissingException(
|
||||
__(
|
||||
'Could not retrieve order. Maybe it was already completed or this browser is not supported. Please check your email or try again with a different browser.',
|
||||
'woocommerce-paypal-payments'
|
||||
sprintf(
|
||||
// translators: %s: Order history URL on My Account section.
|
||||
esc_attr__(
|
||||
'There was an error processing your order. Please check for any charges in your payment method and review your <a href="%s">order history</a> before placing the order again.',
|
||||
// phpcs:ignore WordPress.WP.I18n.TextDomainMismatch -- Intentionally "woocommerce" to reflect the original message.
|
||||
'woocommerce'
|
||||
),
|
||||
esc_url( wc_get_account_endpoint_url( 'orders' ) )
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue