From c12eb4add97a1ae2309ed2bcb4f49e6ca7564645 Mon Sep 17 00:00:00 2001 From: kcppdevelopers Date: Fri, 9 Dec 2016 17:40:25 +0530 Subject: [PATCH] PayPal REST Credit Card Payments Log Adjustment, ref #566 --- angelleye-includes/paypal-rest-api-utility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angelleye-includes/paypal-rest-api-utility.php b/angelleye-includes/paypal-rest-api-utility.php index a69863320..eeaa8ec58 100644 --- a/angelleye-includes/paypal-rest-api-utility.php +++ b/angelleye-includes/paypal-rest-api-utility.php @@ -286,7 +286,7 @@ public function card_type_from_account_number($account_number) { public function getAuth() { $this->mode = $this->testmode == 'yes' ? 'SANDBOX' : 'LIVE'; $auth = new ApiContext(new OAuthTokenCredential($this->rest_client_id, $this->rest_secret_id)); - $auth->setConfig(array('mode' => $this->mode, 'http.headers.PayPal-Partner-Attribution-Id' => 'AngellEYE_SP_WooCommerce', 'log.LogEnabled' => true, 'log.LogLevel' => ($this->mode == 'SANDBOX' ) ? 'DEBUG' : 'INFO', 'log.FileName' => wc_get_log_file_path('paypal_credit_card_rest'))); + $auth->setConfig(array('mode' => $this->mode, 'http.headers.PayPal-Partner-Attribution-Id' => 'AngellEYE_SP_WooCommerce', 'log.LogEnabled' => true, 'log.LogLevel' => 'DEBUG', 'log.FileName' => wc_get_log_file_path('paypal_credit_card_rest'))); return $auth; }