Releases: unzerdev/java-sdk
1.3.0.0
New version of Java SDK is not configurable via unzer.properties file anymore.
Breaking changes
- Removed class
com.unzer.payment.service.PropertiesUtil, unzer.properties file andprivatekey1,privatekey2,privatekey3,publickey1,marketplacekey
and corresponding constantsPUBLIC_KEY1,PRIVATE_KEY1,PRIVATE_KEY2,PRIVATE_KEY3,MARKETPLACE_PRIVATE_KEY. Since this properties were used only for internal testing purpose. - Removed property
applepay.validValidationUrlsfromunzer.properties. Usecom.unzer.payment.util.ApplePayAdapterUtil.replaceValidationUrlsinstead - Changed method
com.unzer.payment.util.ApplePayAdapterUtil.getPlainDomainName()modifier to private. - Removed
unzer.propertiesfile. Usecom.unzer.payment.util.ApplePayAdapterUtil.setCustomAppleValidationUrlsto configure ApplePay validation urls.
Changed
- Upgraded
jackson-databinddependency. See: CVE-2022-42004
1.2.2.0
This release adds Klarna payment type to Java SDK.
Added
- Added payment type
Klarna. - Added
languagefield toCustomerresource. - Added
termsAndConditionsUrlandprivacyPolicyUrlfields toAdditionalTransactionDataresource
Fixed
- Fixed typo
ShippingAddress.Type:DIFFERENT_ADDRESSES->ShippingAddress.Type:DIFFERENT_ADDRESS. This typo caused errors on authorize/charge in some payment cases - Fixed (de-)serialization of
AbstractTransactioncause infinite Webhook calls.
1.2.1.0
This release brings Unzer Paylater Invoice payment type support to Java SDK.
Added
- Added payment type Paylater Invoice. See more at Unzer Docs
- Added ability to set client IP. Use
com.unzer.payment.communication.impl.HttpClientBasedRestCommunication.HttpClientBasedRestCommunication(java.util.Locale, java.lang.String)andcom.unzer.payment.Unzer.Unzer(java.lang.String, java.util.Locale, java.lang.String, java.lang.String)to set client ip. - Added
com.unzer.payment.Unzer.cancelCharge(java.lang.String, java.math.BigDecimal)to cancel Paylater charges.
Fixed
- Fixed: customer salutation is null, because of marshalling/unmarshalling issue.
- Fixed: cancel InvoiceSecured charge failed with error
API.340.100.024: Reason code is mandatory for the payment type INVOICE_SECURED. Please, usecom.unzer.payment.Cancel.setReasonCodeto set reason code andcom.unzer.payment.Unzer.cancelCharge(java.lang.String, java.lang.String, com.unzer.payment.Cancel)to cancel InvoiceSecured charge.
Removed
- Removed unused
com.unzer.payment.UnsupportedPaymentTypeException
Deprecated
- Deprecated
com.unzer.payment.util.SDKInfo.getVersion(). Usecom.unzer.payment.util.SDKInfo.VERSIONinstead. - Deprecated payment type
com.unzer.payment.paymenttypes.InvoiceSecured. Usecom.unzer.payment.paymenttypes.PaylaterInvoiceinstead. - Deprecated
com.unzer.payment.Customer.setShippingAddress(com.unzer.payment.Address). Usecom.unzer.payment.Customer.setShippingAddress(com.unzer.payment.ShippingAddress)instead
Changed
- Changed type of
com.unzer.payment.Customer.shippingAddressand according getter/setter:com.unzer.payment.Address->com.unzer.payment.ShippingAddress. UseShippingAddress.of(Address, Type)to adapt
1.2.0.0
Breaking changes
-
Removed
log4j-corefrom Maven dependencies. Please, provide logger
implementation on your own -
Renamed enum value
AbstractTransaction.Status.ERRRORtoAbstractTransaction.Status.ERROR -
Renamed enum value
Paypage.Status.ERRRORtoPaypage.Status.ERROR
Deprecated
-
com.unzer.payment.service.UrlUtil#getUrl(String)will not be part of
java-sdk, because it has nothing to do with unzer/sdk specific logic. If you
rely on this method, please, replace it withjava.net.URL#URL(String)
constructor call -
Deprecated Basket getters/setters:
amountTotalVat,amountTotalGross,
amountTotalDiscount -
Deprecated BasketItem getters/setters:
amountDiscount,amountGross,amountVat,
amountPerUnit,amountNet
Added
-
Basket v2 support:
-
Basket getters/setters:
totalValueGross -
BasketItem getters/setters:
amountPerUnitGross,amountDiscountPerUnitGross
-
Removed
- Remove
log.errorin catch clause
com.unzer.payment.service.PropertiesUtil#loadProperties()because the
exception with exact same message is thrown after thelog.errorcall.
Fixed
- Fix log message of
com.unzer.payment.service.UrlUtil#getUrl(String). It was
not formatted and contained%sinstead
of values
Changed
-
Type of
BasketItemtype field (wasString, becomeBasketItem.Type) -
Type of
BasketItemvatfield (wasInteger, becomeBigDecimal)
1.1.2.7
Changed
- Upgrade of the used gson Dependencies from 2.8.6 to 2.8.9
- Upgrade of the used faster-xml dependencies from 2.11.3 to 2.12.7
- Upgrade of the used log4j dependencies from 2.17.1 to 2.18.0
1.1.2.6
Added
- Added Unzer-Logo and updated the reference in Readme-File.
- Added Json-Validation to JsonParser-Class before real Json-Deserialization happens.
- Added Twitter-Handle to Readme-File.
Changed
- Documentation-Link in Readme-File has been changed.
- Several minor improvements.
1.1.2.5
Changed
- Upgrade of the used Log4j Dependencies to fix the Log4j Zero-Day-Exploit from 2.16.0 to 2.17.0.
- Handling of PaymentException-Message has been changed to now return correct Message on occurrence.
- Several minor improvements.
1.1.2.4
Changed
- Upgrade of the used Log4j Dependencies to fix the Log4j Zero-Day-Exploit
- Bumped log4j-Dependency from 2.15.0 to 2.16.0
- Bumped Maven-Dependency-Check-Dependency from 5.3.2 to 6.5.0
- Bumped httpclient from 4.5.12 to 4.5.13
- Bumped junit from 4.13 to 4.13.1
- Bumped jsoup from 1.13.1 to 1.14.2
- Increased Deployment Timeout for Sonatype to 20 Minutes
- Several minor improvements.
1.1.2.2
Changed
- Upgrade of the used Log4j Dependencies to fix the Log4j Zero-Day-Exploit
- Several minor improvements.
1.1.2.1
Changed
- Changed the DateTime-Handling from PAPI so that all timezones will be handled correctly in parsing and formatting
- Several minor improvements.