From 3e9a489cc3a1d68eabb8f56e505e244abe986356 Mon Sep 17 00:00:00 2001 From: OpusSdkSupport <34403114+OpusSdkSupport@users.noreply.github.com> Date: Tue, 11 Dec 2018 16:04:32 +0530 Subject: [PATCH] Added header SDK-Type Update PaysafeApiClient.php to add additional header parameter for SDK-Type --- source/Paysafe/PaysafeApiClient.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Paysafe/PaysafeApiClient.php b/source/Paysafe/PaysafeApiClient.php index 5601cd1..056abe9 100644 --- a/source/Paysafe/PaysafeApiClient.php +++ b/source/Paysafe/PaysafeApiClient.php @@ -204,7 +204,8 @@ public function processRequest(Request $request) CURLOPT_URL => $request->buildUrl($this->apiEndPoint), CURLOPT_HTTPHEADER => array( 'Authorization: Basic ' . base64_encode($this->keyID . ':' . $this->keyPassword), - 'Content-Type: application/json; charset=utf-8' + 'Content-Type: application/json; charset=utf-8', + 'SDK-Type: Paysafe_PHP_SDK' ), CURLOPT_RETURNTRANSFER => true, CURLOPT_SSL_VERIFYPEER => false,