Skip to content

Commit

Permalink
Adjusts attributions
Browse files Browse the repository at this point in the history
  • Loading branch information
angelleye committed Jul 9, 2019
1 parent 8b8a6f3 commit 549864a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/angelleye/PayPal/PayPal.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function __construct($DataArray)

$this->APIVersion = isset($DataArray['APIVersion']) ? $DataArray['APIVersion'] : '204.0';
$this->APIMode = isset($DataArray['APIMode']) ? $DataArray['APIMode'] : 'Signature';
$this->APIButtonSource = 'AngellEYE_PHPClass';
$this->APIButtonSource = '';
$this->PathToCertKeyPEM = '/path/to/cert/pem.txt';
$this->SSL = isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443' ? true : false;
$this->APISubject = isset($DataArray['APISubject']) ? $DataArray['APISubject'] : '';
Expand Down
5 changes: 2 additions & 3 deletions src/angelleye/PayPal/RestClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function __construct($configArray){
$this->_api_context = new \PayPal\Rest\ApiContext(
new \PayPal\Auth\OAuthTokenCredential($configArray['ClientID'], $configArray['ClientSecret'])
);
$this->set_partner_attribution_id('AngellEYE_PHPClass');
//$this->set_partner_attribution_id('');
$path = '';
if (isset($configArray['LogPath'])){
$path = $configArray['LogPath'].'/PayPal.log';
Expand Down Expand Up @@ -100,8 +100,7 @@ public function get_api_context(){
}

/**
* By default the BN code/value is AngellEYE_PHPClass but you can change it
* with the set_partner_attribution_id function by passing the source value to it.
* PayPal Partner Code
*
* @access public
* @param string $source
Expand Down

0 comments on commit 549864a

Please sign in to comment.