Releases: Worldline-Global-Collect/connect-sdk-php
Releases · Worldline-Global-Collect/connect-sdk-php
7.3.1
7.3.0
- Added:
- Added property
cybersourceDecisionManager
to classFraudResults
. - Added property
reasonCodes
to classMicrosoftFraudResults
.
- Added property
7.2.0
- Added:
- Added property
dateOfIncorporation
to classCompanyInformation
. - Added property
paymentCode
to classOrderTypeInformation
.
- Added property
- Removed:
- Removed property
paymentProduct816SpecificInput
of classRedirectPaymentMethodSpecificInput
, as this property is no longer supported by the REST API.
- Removed property
- Fixed:
- If no proxy username is configured the
CURLOPT_PROXYUSERPWD
option is no longer set with a possibly invalid value.
- If no proxy username is configured the
7.1.0
- Added:
- Added property
networkTokenUsed
to classCardPaymentMethodSpecificOutput
. - Added property
naicsCommodityCode
to classOrderLineDetails
. - Added property
shippedFromZip
to classShipping
.
- Added property
7.0.1
- Changed:
- Classes
ApiException
,AuthorizationException
,DeclinedPaymentException
,DeclinedPayoutException
,DeclinedRefundException
,IdempotenceException
,PlatformException
,ReferenceException
andValidationException
each define their own default message. - Changed the default message for class
ResponseException
.
- Classes
7.0.0
This SDK is a rebranded and updated version of the SDK that was previously published under the Ingenico name. Next to renaming to Worldline, the SDK has been restructured to better support future improvements like multiple API versions and different authentication mechanisms. You can use the migration guide to upgrade from the previous version. Previous versions and release notes of this SDK can be found here.
The following is an overview of changes:
- Added:
- Added class
Webhooks
that can easily create webhooks helper instances. You can use it by callingWebhooks::v1()->createHelper(...)
. - Added class
JSONUtil
for some shared JSON conversion functionality. - Added interface
Authenticator
and implementing classV1HMACAuthenticator
. - Added properties
connectTimeout
andreadTimeout
to classCommunicatorConfiguration
.
- Added class
- Changed:
- Changed the Composer project name to
worldline-global-collect/connect-sdk-php
. - Renamed all namespaces, and moved classes between namespaces. Each API version now has its own namespace structure that contains all classes specific for that version, including classes like
APIError
, exceptions and webhooks classes. - Made the integrator required.
- Moved method
merchant
from classClient
to new classV1Client
. Instances of this class are available through methodv1
of classClient
. - Replaced properties
apiKeyId
andsecretApiKey
of classCommunicatorConfiguration
with more generic propertiesauthorizationId
andauthorizationSecret
. The existing getters and setters remain as aliases though. - Changed the parameters of the constructor of class
Communicator
to a requiredCommunicatorConfiguration
and an optionalAuthenticator
andConnection
. - Changed the parameters of the constructor of class
DefaultConnection
to an optionalCommunicatorConfiguration
. - Renamed method
getPaymentResult
of classDeclinedPaymentException
getCreatePaymentResult
. - Renamed class
GlobalCollectException
toPlatformException
. - Renamed class
ResponseExceptionFactory
toExceptionFactory
. - Renamed class
Resource
toApiResource
. - Renamed client classes to have their names end with
Client
. For instance, classMerchant
is renamed toMerchantClient
, and classPayments
is renamed toPaymentsClient
. - Classes
AuthorizationException
andValidationException
now extendResponseException
instead ofReferenceException
. - Methods of class
Communicator
now throw instances of new classErrorResponseException
instead of using instances ofResponseExceptionFactory
. - The
BodyHandler
parameter of methodsgetWithBinaryResponse
,deleteWithBinaryResponse
,postWithBinaryResponse
andputWithBinaryResponse
of classCommunicator
is now the first parameter. - Combined interface
ConnectionResponse
and classDefaultConnectionResponse
into classConnectionResponse
. - Class
ResponseFactory
no longer defaults to anErrorResponse
but instead requires theResponseClassMap
argument to have a value for itsdefaultErrorResponseClassName
field. - Methods of class
HttpHeaderHelper
have been made static. - The constructor of class
HttpHeaderHelper
has been made private. - Method
instantiateUri
of classResource
has been made protected. - Field
responseClassNamesByHttpStatusCode
of classResponseClassMap
has been made private. - The fields of classes
ProxyConfiguration
,ApiVersionMismatchException
,InvalidResponseException
andResponseHeaderBuilder
have been made private.
- Changed the Composer project name to
- Removed:
- Removed constant
API_VERSION
of classClient
. - Removed class
RequestHeaderGenerator
in favor of new classesV1HMACAuthenticator
andMetadataProvider
and new methods in classCommunicator
. - Removed method
getResponseExceptionFactory
of classCommunicator
. - Removed the
ResponseExceptionFactory
parameter from methods of classCommunicator
. - Removed the
ProxyConfiguration
parameter from methods of interfaceConnection
and classDefaultConnection
. - Removed methods
getConnection
,setConnection
,getCommunicatorConfiguration
andsetCommunicatorConfiguration
of classCommunicator
. - Removed field
httpHeaderHelper
of classHttpObfuscator
. - Removed method
getLastJsonDecodeErrorString
of classDataObject
. - Removed field
secretKeyStore
and methodvalidate
of classWebhooksHelper
.
- Removed constant