diff --git a/samples/rest/referenced_payouts/CreateReferencedBatchPayout.php b/samples/rest/referenced_payouts/CreateReferencedBatchPayout.php index 5b5192d7..60719886 100644 --- a/samples/rest/referenced_payouts/CreateReferencedBatchPayout.php +++ b/samples/rest/referenced_payouts/CreateReferencedBatchPayout.php @@ -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. diff --git a/src/angelleye/PayPal/PayPal.php b/src/angelleye/PayPal/PayPal.php index 5f0209f0..973a87d7 100755 --- a/src/angelleye/PayPal/PayPal.php +++ b/src/angelleye/PayPal/PayPal.php @@ -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'] : ''; diff --git a/src/angelleye/PayPal/RestClass.php b/src/angelleye/PayPal/RestClass.php index dfba6f13..7b1704d1 100644 --- a/src/angelleye/PayPal/RestClass.php +++ b/src/angelleye/PayPal/RestClass.php @@ -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'; @@ -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 diff --git a/templates/rest/referenced_payouts/create_referenced_batch_payout.php b/templates/rest/referenced_payouts/create_referenced_batch_payout.php index 395e5f27..1e590114 100644 --- a/templates/rest/referenced_payouts/create_referenced_batch_payout.php +++ b/templates/rest/referenced_payouts/create_referenced_batch_payout.php @@ -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.