From 50b4662f2e844b8c06b8d2bfa9b1f231380d1ad2 Mon Sep 17 00:00:00 2001 From: Rich Dunne Date: Fri, 31 Aug 2018 09:50:04 -0400 Subject: [PATCH 1/3] Including defaultShippingAddressIndicator during Address create/update --- source/Paysafe/CustomerVaultService.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/Paysafe/CustomerVaultService.php b/source/Paysafe/CustomerVaultService.php index 649c968..9090d44 100644 --- a/source/Paysafe/CustomerVaultService.php +++ b/source/Paysafe/CustomerVaultService.php @@ -239,6 +239,7 @@ public function createAddress( CustomerVault\Address $address ) 'zip', 'recipientName', 'phone', + 'defaultShippingAddressIndicator', )); $request = new Request(array( @@ -275,6 +276,7 @@ public function updateAddress( CustomerVault\Address $address ) 'zip', 'recipientName', 'phone', + 'defaultShippingAddressIndicator', )); $request = new Request(array( From ed4c707651c932d2ea620c5515b4f2aaf66c7f8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20N=C3=A9ron?= Date: Wed, 26 Sep 2018 09:31:16 -0400 Subject: [PATCH 2/3] Error on returned avsResponse enum. Updated to the correct values in the API https://developer.paysafe.com/en/cards/api/#/introduction/complex-json-objects/verifications --- source/Paysafe/CardPayments/Verification.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Paysafe/CardPayments/Verification.php b/source/Paysafe/CardPayments/Verification.php index 68217f3..8abb7f2 100644 --- a/source/Paysafe/CardPayments/Verification.php +++ b/source/Paysafe/CardPayments/Verification.php @@ -65,8 +65,8 @@ public static function getPageableArrayKey() 'currencyCode' => 'string', 'avsResponse' => array( 'MATCH', - 'PARTIAL_MATCH_ADDRESS', - 'PARTIAL_MATCH_ZIP', + 'MATCH_ADDRESS_ONLY', + 'MATCH_ZIP_ONLY', 'NO_MATCH', 'NOT_PROCESSED', 'UNKNOWN' 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 3/3] 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,