Title: Custom error message
Last modified: July 21, 2018

---

# Custom error message

 *  [questionabout](https://wordpress.org/support/users/questionabout/)
 * (@questionabout)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/custom-error-message-12/)
 * Hello, is there a way to have a custom error message for the PayPal error:
    DoDirectPayment
   API call failed.
 * Error Code: 15005
    Detailed Error Message: This transaction cannot be processed.
 * It doesn’t give customer much info, it should say: “Transaction cannot be processed
   because your Bank is rejecting the transaction. Please contact your Bank.”

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [angelleyesupport](https://wordpress.org/support/users/angelleyesupport/)
 * (@angelleyesupport)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/custom-error-message-12/#post-10515209)
 * [@questionabout](https://wordpress.org/support/users/questionabout/) Thanks for
   contacting here, actually those errors are sent by PayPal, so based on what detail
   they provide, we simply show that. And there are 1000’s of error message codes
   and it’s hard to enter such details with each and every error. But you can do
   some custom coding and display whatever messages you like.
 * Let me know if you have any other questions about that.
    Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Custom error message’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paypal-for-woocommerce_dce4f5.svg)
 * [PayPal for WooCommerce](https://wordpress.org/plugins/paypal-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paypal-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paypal-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/paypal-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paypal-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paypal-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [angelleyesupport](https://wordpress.org/support/users/angelleyesupport/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/custom-error-message-12/#post-10515209)
 * Status: not a support question