Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('angelleye_pc_display_type_error', 'angelleye_pc_display_type_error_own', 10, 1);
- add_filter('angelleye_pc_display_type_notice', 'angelleye_pc_display_type_notice_own', 10, 3);
- function angelleye_pc_display_type_error_own($error) {
- return $error = '';
- }
- function angelleye_pc_display_type_notice_own($pc_display_type_notice, $error_code, $long_message) {
- $error_code_array = array('15005', '15006', '15007', '10752');
- if (in_array($error_code, $error_code_array)) {
- $pc_display_type_notice = 'Payment declined by your financial institution. Please contact your financial institution to resolve this issue.';
- } elseif ($error_code == '10527') {
- $pc_display_type_notice = 'Payment Declined - Credit card number is invalid or the type of credit card selected is incorrect.';
- } else {
- $pc_display_type_notice .= ' Payment Declined - Incorrect billing address or credit card information. Please fix and try again.';
- }
- return $pc_display_type_notice;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement