addRequestHeader('PayPal-Partner-Attribution-Id', '123123123'); // #### SDK configuration // Comment this line out and uncomment the PP_CONFIG_PATH // 'define' block if you want to use static file // based configuration $apiContext->setConfig( array( 'mode' => 'sandbox', 'http.ConnectionTimeOut' => 30, 'log.LogEnabled' => true, 'log.FileName' => '../PayPal.log', 'log.LogLevel' => 'FINE', 'validation.level' => 'log', 'cache.enabled' => 'true', // 'http.headers.PayPal-Partner-Attribution-Id' => '123123123' ) ); return $apiContext; }