Advertisement
jigneshkaila

Untitled

Oct 29th, 2015
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.00 KB | None | 0 0
  1. add_filter('angelleye_pc_display_type_error', 'angelleye_pc_display_type_error_own', 10, 1);
  2. add_filter('angelleye_pc_display_type_notice', 'angelleye_pc_display_type_notice_own', 10, 3);
  3.  
  4. function angelleye_pc_display_type_error_own($error) {
  5.     return $error = '';
  6. }
  7.  
  8. function angelleye_pc_display_type_notice_own($pc_display_type_notice, $error_code, $long_message) {
  9.     $error_code_array = array('15005', '15006', '15007', '10752');
  10.     if (in_array($error_code, $error_code_array)) {
  11.         $pc_display_type_notice = 'Payment declined by your financial institution. Please contact your financial institution to resolve this issue.';
  12.     } elseif ($error_code == '10527') {
  13.         $pc_display_type_notice = 'Payment Declined - Credit card number is invalid or the type of credit card selected is incorrect.';
  14.     } else {
  15.         $pc_display_type_notice .= ' Payment Declined - Incorrect billing address or credit card information. Please fix and try again.';
  16.     }
  17.     return $pc_display_type_notice;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement