protected static function PayPalCheckoutClient::formatHeaders in Commerce PayPal 7.2
2 calls to PayPalCheckoutClient::formatHeaders()
- PayPalCheckoutClient::acquireAccessToken in modules/
checkout/ lib/ PayPalCheckoutClient.php - Acquire an access token from PayPal.
- PayPalCheckoutClient::submitRequest in modules/
checkout/ lib/ PayPalCheckoutClient.php - Submits an API request to the PayPal server.
File
- modules/
checkout/ lib/ PayPalCheckoutClient.php, line 385 - Defines a class for consuming the PayPal Checkout API.
Class
- PayPalCheckoutClient
- Defines the PayPalCheckoutClient class.
Code
protected static function formatHeaders(array $headers) {
$http_headers = array();
foreach ($headers as $key => $value) {
$http_headers[] = "{$key}: {$value}";
}
return $http_headers;
}