Skip to content

Releases: unzerdev/java-sdk

1.3.0.0

06 Oct 09:02
9115e0a

Choose a tag to compare

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 and privatekey1, privatekey2, privatekey3, publickey1, marketplacekey
    and corresponding constants PUBLIC_KEY1, PRIVATE_KEY1, PRIVATE_KEY2, PRIVATE_KEY3, MARKETPLACE_PRIVATE_KEY. Since this properties were used only for internal testing purpose.
  • Removed property applepay.validValidationUrls from unzer.properties. Use com.unzer.payment.util.ApplePayAdapterUtil.replaceValidationUrls instead
  • Changed method com.unzer.payment.util.ApplePayAdapterUtil.getPlainDomainName() modifier to private.
  • Removed unzer.properties file. Use com.unzer.payment.util.ApplePayAdapterUtil.setCustomAppleValidationUrls to configure ApplePay validation urls.

Changed

1.2.2.0

04 Oct 12:13
a57c928

Choose a tag to compare

This release adds Klarna payment type to Java SDK.

Added

  • Added payment type Klarna.
  • Added language field to Customer resource.
  • Added termsAndConditionsUrl and privacyPolicyUrl fields to AdditionalTransactionData resource

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 AbstractTransaction cause infinite Webhook calls.

1.2.1.0

06 Sep 10:11
8f60135

Choose a tag to compare

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) and com.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, use com.unzer.payment.Cancel.setReasonCode to set reason code and com.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(). Use com.unzer.payment.util.SDKInfo.VERSION instead.
  • Deprecated payment type com.unzer.payment.paymenttypes.InvoiceSecured. Use com.unzer.payment.paymenttypes.PaylaterInvoice instead.
  • Deprecated com.unzer.payment.Customer.setShippingAddress(com.unzer.payment.Address). Use com.unzer.payment.Customer.setShippingAddress(com.unzer.payment.ShippingAddress) instead

Changed

  • Changed type of com.unzer.payment.Customer.shippingAddress and according getter/setter: com.unzer.payment.Address -> com.unzer.payment.ShippingAddress. Use ShippingAddress.of(Address, Type) to adapt

1.2.0.0

04 Aug 11:16
dda6f66

Choose a tag to compare

Breaking changes

  • Removed log4j-core from Maven dependencies. Please, provide logger
    implementation on your own

  • Renamed enum value AbstractTransaction.Status.ERRROR to AbstractTransaction.Status.ERROR

  • Renamed enum value Paypage.Status.ERRROR to Paypage.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 with java.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.error in catch clause
    com.unzer.payment.service.PropertiesUtil#loadProperties() because the
    exception with exact same message is thrown after the log.error call.

Fixed

  • Fix log message of com.unzer.payment.service.UrlUtil#getUrl(String). It was
    not formatted and contained %s instead
    of values

Changed

  • Type of BasketItem type field (was String, become BasketItem.Type)

  • Type of BasketItem vat field (was Integer, become BigDecimal)

1.1.2.7

20 Jul 13:32
4df6278

Choose a tag to compare

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

17 Feb 15:45
1f248f2

Choose a tag to compare

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

11 Jan 10:50
7522828

Choose a tag to compare

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

17 Dec 10:46
176b802

Choose a tag to compare

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

14 Dec 10:43
cf640dc

Choose a tag to compare

Changed

  • Upgrade of the used Log4j Dependencies to fix the Log4j Zero-Day-Exploit
  • Several minor improvements.

1.1.2.1

06 Dec 14:33
599b58a

Choose a tag to compare

Changed

  • Changed the DateTime-Handling from PAPI so that all timezones will be handled correctly in parsing and formatting
  • Several minor improvements.