Title: Customize Error Message on Checkout
Last modified: July 8, 2026

---

# Customize Error Message on Checkout

 *  [rebekahxd](https://wordpress.org/support/users/rebekahxd/)
 * (@rebekahxd)
 * [6 hours, 51 minutes ago](https://wordpress.org/support/topic/customize-error-message-on-checkout/)
 * Hi.
 * Is there a way to customize the error message on checkout?
 * For example, on this screenshot: [https://prnt.sc/G6tusctocX7y](https://prnt.sc/G6tusctocX7y)
 * This happens when a customer enters a different billing/shipping address from
   their address on card. Is there a way to change the message to: “Billing information
   mismatch”.. or the like, instead of a very generic error message?

Viewing 1 replies (of 1 total)

 *  Plugin Support [Syde Jamie](https://wordpress.org/support/users/jamieong/)
 * (@jamieong)
 * [2 hours, 47 minutes ago](https://wordpress.org/support/topic/customize-error-message-on-checkout/#post-18960180)
 * Hi,
 * Thank you for reaching out to us, we are here to help.
 * This message is returned when the fraud processor returns an approval code, but
   payment is still declined due to other risk factors.
 * You may customize the decline message by targeting the specific response code
   scenario:
   It looks like [this](https://drive.google.com/uc?id=1D6MvkNZkpclmiE3Wb9L8b12iaIA8OZTA).
 *     ```wp-block-code
       add_filter( 'gettext', 'custom_paypal_approved_decline_message', 20, 3 );  function custom_paypal_approved_decline_message( $translated_text, $text, $domain ) {      if ( $domain === 'woocommerce-paypal-payments' ) {          // Handle the specific case where response code is 0000 (Approved) but payment declined          if ( strpos( $text, '0000: Approved' ) !== false ) {              return 'Payment could not be processed despite approval code. Please use a different payment method.';          }      }      return $translated_text;  }
       ```
   
 * Let us know if this works for you.
 * Best Regards,
   Jamie

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustomize-error-message-on-checkout%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/woocommerce-paypal-payments/assets/icon-256x256.png?rev=
   3234615)
 * [WooCommerce PayPal Payments](https://wordpress.org/plugins/woocommerce-paypal-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-paypal-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-paypal-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-paypal-payments/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Syde Jamie](https://wordpress.org/support/users/jamieong/)
 * Last activity: [2 hours, 47 minutes ago](https://wordpress.org/support/topic/customize-error-message-on-checkout/#post-18960180)
 * Status: not resolved