From da68261f2c6ab60c493f03ed300a7d6a02f5028a Mon Sep 17 00:00:00 2001 From: kcppdevelopers Date: Wed, 7 Feb 2018 12:41:08 +0530 Subject: [PATCH] Payflow admin order note showing PayPal Pro payment rather PayPal Payflow Pro payment completed, ref #994 --- classes/wc-gateway-paypal-pro-payflow-angelleye.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/classes/wc-gateway-paypal-pro-payflow-angelleye.php b/classes/wc-gateway-paypal-pro-payflow-angelleye.php index 5bedbaff1..f7feec98d 100644 --- a/classes/wc-gateway-paypal-pro-payflow-angelleye.php +++ b/classes/wc-gateway-paypal-pro-payflow-angelleye.php @@ -690,9 +690,9 @@ function do_payment($order, $card_number, $card_exp, $card_csc) { if (isset($PayPalResult['PPREF']) && !empty($PayPalResult['PPREF'])) { add_post_meta($order_id, 'PPREF', $PayPalResult['PPREF']); - $order->add_order_note(sprintf(__('PayPal Pro payment completed (PNREF: %s) (PPREF: %s)', 'paypal-for-woocommerce'), $PayPalResult['PNREF'], $PayPalResult['PPREF'])); + $order->add_order_note(sprintf(__('PayPal Pro Payflow payment completed (PNREF: %s) (PPREF: %s)', 'paypal-for-woocommerce'), $PayPalResult['PNREF'], $PayPalResult['PPREF'])); } else { - $order->add_order_note(sprintf(__('PayPal Pro payment completed (PNREF: %s)', 'paypal-for-woocommerce'), $PayPalResult['PNREF'])); + $order->add_order_note(sprintf(__('PayPal Pro Payflow payment completed (PNREF: %s)', 'paypal-for-woocommerce'), $PayPalResult['PNREF'])); } /* Checkout Note */ if (isset($_POST) && !empty($_POST['order_comments'])) { @@ -839,7 +839,7 @@ function do_payment($order, $card_number, $card_exp, $card_csc) { 'redirect' => $this->get_return_url($order) ); } else { - $order->update_status('failed', __('PayPal Pro payment failed. Payment was rejected due to an error: ', 'paypal-for-woocommerce') . '(' . $PayPalResult['RESULT'] . ') ' . '"' . $PayPalResult['RESPMSG'] . '"'); + $order->update_status('failed', __('PayPal Pro Payflow payment failed. Payment was rejected due to an error: ', 'paypal-for-woocommerce') . '(' . $PayPalResult['RESULT'] . ') ' . '"' . $PayPalResult['RESPMSG'] . '"'); // Generate error message based on Error Display Type setting if ($this->error_display_type == 'detailed') { @@ -862,7 +862,7 @@ function do_payment($order, $card_number, $card_exp, $card_csc) { $message .= __('Customer Name: ') . $firstname . ' ' . $lastname . "\n"; $message .= __('Customer Email: ') . $billing_email . "\n"; $message = apply_filters('ae_pppf_error_email_message', $message); - $subject = apply_filters('ae_pppf_error_email_subject', "PayPal Pro Error Notification"); + $subject = apply_filters('ae_pppf_error_email_subject', "PayPal Pro Payflow Error Notification"); wp_mail($admin_email, $subject, $message); } @@ -1477,7 +1477,7 @@ public function process_subscription_payment($order, $amount, $payment_token = n return true; } } else { - $order->update_status('failed', __('PayPal Pro payment failed. Payment was rejected due to an error: ', 'paypal-for-woocommerce') . '(' . $PayPalResult['RESULT'] . ') ' . '"' . $PayPalResult['RESPMSG'] . '"'); + $order->update_status('failed', __('PayPal Pro Payflow payment failed. Payment was rejected due to an error: ', 'paypal-for-woocommerce') . '(' . $PayPalResult['RESULT'] . ') ' . '"' . $PayPalResult['RESPMSG'] . '"'); if ($this->error_email_notify) { $admin_email = get_option("admin_email"); $message = __("PayFlow API call failed.", "paypal-for-woocommerce") . "\n\n"; @@ -1489,7 +1489,7 @@ public function process_subscription_payment($order, $amount, $payment_token = n $message .= __('Customer Name: ') . $firstname . ' ' . $lastname . "\n"; $message .= __('Customer Email: ') . $billing_email . "\n"; $message = apply_filters('ae_pppf_error_email_message', $message); - $subject = apply_filters('ae_pppf_error_email_subject', "PayPal Pro Error Notification"); + $subject = apply_filters('ae_pppf_error_email_subject', "PayPal Pro Payflow Error Notification"); wp_mail($admin_email, $subject, $message); } return;