Skip to content

Commit

Permalink
PPL-167 , removed paypal button source bn code from the library
Browse files Browse the repository at this point in the history
  • Loading branch information
tejasmht committed Jun 24, 2019
1 parent 8b8a6f3 commit 9150162
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
$PayPal = new \angelleye\PayPal\rest\referenced_payouts\ReferencedPayoutsAPI($configArray);

// Header parameters
$PayPal_Partner_Attribution_Id = 'AngellEYE_PHPClass'; // For more information about PayPal-Partner-Attribution-Id, see https://developer.paypal.com/docs/api/overview/#paypal-partner-attribution-id
$PayPal_Partner_Attribution_Id = ''; // For more information about PayPal-Partner-Attribution-Id, see https://developer.paypal.com/docs/api/overview/#paypal-partner-attribution-id

/* Indicates how the client expects the server to process this request.
* To process the request asynchronously, set this header to respond-async.
Expand Down
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
7 changes: 4 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');

$path = '';
if (isset($configArray['LogPath'])){
$path = $configArray['LogPath'].'/PayPal.log';
Expand Down Expand Up @@ -100,8 +100,9 @@ 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.
* Set BN code/value with the
* set_partner_attribution_id function
* by passing the source value to it.
*
* @access public
* @param string $source
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
$PayPal = new \angelleye\PayPal\rest\referenced_payouts\ReferencedPayoutsAPI($configArray);

// Header parameters
$PayPal_Partner_Attribution_Id = 'AngellEYE_PHPClass'; // For more information about PayPal-Partner-Attribution-Id, see https://developer.paypal.com/docs/api/overview/#paypal-partner-attribution-id
$PayPal_Partner_Attribution_Id = ''; // For more information about PayPal-Partner-Attribution-Id, see https://developer.paypal.com/docs/api/overview/#paypal-partner-attribution-id

/* Indicates how the client expects the server to process this request.
* To process the request asynchronously, set this header to respond-async.
Expand Down

0 comments on commit 9150162

Please sign in to comment.