setConfig( array( 'mode' => 'sandbox', 'log.LogEnabled' => true, 'log.FileName' => '../PayPal.log', 'log.LogLevel' => 'DEBUG', // PLEASE USE `FINE` LEVEL FOR LOGGING IN LIVE ENVIRONMENTS 'validation.level' => 'log', 'cache.enabled' => true, // 'http.CURLOPT_CONNECTTIMEOUT' => 30 // 'http.headers.PayPal-Partner-Attribution-Id' => '123123123' ) ); // Partner Attribution Id // Use this header if you are a PayPal partner. Specify a unique BN Code to receive revenue attribution. // To learn more or to request a BN Code, contact your Partner Manager or visit the PayPal Partner Portal // $apiContext->addRequestHeader('PayPal-Partner-Attribution-Id', '123123123'); return $apiContext; }