Skip to content

Commit

Permalink
PayPal REST Credit Card Payments Log Adjustment, ref #566
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed Dec 9, 2016
1 parent 716d41c commit c12eb4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion angelleye-includes/paypal-rest-api-utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c12eb4a

Please sign in to comment.