Skip to content

Commit

Permalink
Merge pull request #204 from angelleye/PPL-167
Browse files Browse the repository at this point in the history
PPL-167
  • Loading branch information
Drew Angell authored Feb 2, 2020
2 parents c9113af + ba624cf commit c7fcb1e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 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
6 changes: 5 additions & 1 deletion src/angelleye/PayPal/RestClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ public function __construct($configArray){
$this->_api_context = new \PayPal\Rest\ApiContext(
new \PayPal\Auth\OAuthTokenCredential($configArray['ClientID'], $configArray['ClientSecret'])
);

//$this->set_partner_attribution_id('');

$path = '';
if (isset($configArray['LogPath'])){
$path = $configArray['LogPath'].'/PayPal.log';
Expand Down Expand Up @@ -100,7 +102,9 @@ public function get_api_context(){
}

/**
* PayPal Partner Code
* Set PayPal Partner 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 @@ -14,6 +14,9 @@

$PayPal = new \angelleye\PayPal\rest\referenced_payouts\ReferencedPayoutsAPI($configArray);

// Header parameters
$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.
* If you omit this header, the API processes the request synchronously.
Expand Down

0 comments on commit c7fcb1e

Please sign in to comment.