Skip to content

Releases: unzerdev/php-sdk

Version 1.2.0.0

02 Jun 11:47
da9c3fc

Choose a tag to compare

Added

  • Add payment type Paylater Invoice.
  • Add properties companyType and owner to CompanyInfo class.
  • Add shippingType property to Address class.
  • Allow setting the clientIp manually.
  • Allow setting riskData for authorize request.
  • Allow setting shipping data for charge request such as deliveryTrackingId, deliveryService and returnTrackingId.
  • Add new methods for authorize and charge transactions that use prepared objects only:
    • Unzer::performAuthorization()
    • Unzer::performCharge()
    • Unzer::performChargeOnPayment()
  • Add new methods to cancel payments done via paylater-invoice type:
    • Unzer::cancelAuthorizedPayment()
    • Unzer::cancelChargedPayment()
  • Add new methods to fetch cancellations of payment done via paylater-invoice type:
    • Unzer::fetchPaymentReversal()
    • Unzer::fetchPaymentRefund()
  • Add Paylater Invoice example including the function to capture an authorized payment.

Changed

  • Remove redundant currency parameter from Unzer::chargePayment() method.
  • Add geoLocation property to all payment type classes.
  • Several minor improvements.
  • Add account information coming from PAPI to Authorize class.

Deprecated

  • Classes
    • Mark InvoiceSecured as deprecated, will be replaced by PaylaterInvoice.
  • Methods
    • Mark Unzer::authorize() as deprecated. Please use Unzer::performAuthorization() instead.
    • Mark Unzer::charge() as deprecated. Please use Unzer::performCharge() instead.
    • Mark Unzer::chargePayment() as deprecated. Please use Unzer::performChargeOnPayment() instead.
    • Mark Unzer::chargeAuthorization() as deprecated. Please use Unzer::performChargeOnPayment() instead.

Version 1.1.5.0

25 May 10:01
5459f90

Choose a tag to compare

Added

  • Add Support for basket v2 resource.

Changed

  • Add support for payment state create which can occur when using payment pages.
  • Examples:
    • Use v2/basket resource for secured payment methods and payment pages.
    • Remove broken image-URLs of payment page examples.
  • Several minor improvements.

Enable PHP 8.1 compatibility

27 Jan 11:43
4184b40

Choose a tag to compare

Added

  • Enable PHP 8.1 compatibility.

Changed

  • Fix an issue that can cause an exception when fetching a payment that contained a "cancel-authorize" transaction even though the payment has no authorization transaction.
  • Update broken documentation links in readme.
  • Several minor improvements.

Version 1.1.4.1

01 Dec 10:52
09a3444

Choose a tag to compare

Added

  • Added Apple Pay example.

Changed

  • Adjust cancelAmount logic to work properly with Invoice Secured payments.
  • Updated jQuery and frameworks used in examples.
  • Fixed failing card tests.
  • Several minor improvements.

Enable support for recurrence type

31 Aug 10:03
e18bf5e

Choose a tag to compare

Added

  • Enable recurrence type to be set for charge, authorize and activateRecurringPayment methods.

Changed

  • Enable recurring examples (card paypal)to trigger subsequent transaction from success page.
  • Enable card recurring example to use recurrence type.
  • Several minor improvements.

Enable PHP 8.0 compatibility

02 Jul 11:37
d094b9e

Choose a tag to compare

Added

  • Enable PHP 8.0 compatibility.
  • Allow PHPUnit version 8.x and 9.x in composer dev requirements and adjust tests accordingly.
  • Payment Page examples: Add missing customer information that are required for payment with Instalment (address, dob, salutation).

Changed

  • \UnzerSDK\Services\HttpService::handleErrors explicitly casts response code to int, to ensure same behavior on all PHP versions.
  • Several minor changes.

Introducing Apple Pay

05 May 10:01
6324a6c

Choose a tag to compare

Added

  • Introduce the payment type Applepay.

Changed

  • Examples:
    • Card Examples - Ensure that error messages are displayed just one time.
    • Configuration - Change default protocol to https.
    • Configuration - Correct vendor name of path constant UNZER_PAPI_FOLDER.
  • Update documentation links.

Version 1.1.1.1

15 Mar 09:52
39d4317

Choose a tag to compare

Fix

  • Change debug logging of failed tests that depend on another one to work as expected.
  • PayPal recurring example: Response handling changed to check the recurring status of the payment type.

Added

  • Extended testing for Instalment payment type.
  • Cards (extended) example using email UI element.

Changed

  • Remove PhpUnit 8 support.
  • Card recurring example using email UI element.
  • Card example and paypage examples use a dummy customer-email to ensure they work with 3ds2.
  • Several minor changes.

Add email property to card type

15 Dec 14:02
309f63b

Choose a tag to compare

Changed

  • Add email property to payment type card to meet 3Ds2.x regulations.
  • Several minor changes.

Rebranding to Unzer

10 Dec 15:04
521d308

Choose a tag to compare

This SDK replaces the heidelpay/heidelpayPHP, find the migration guide here.

Changed

  • Rebranding of the SDK.
  • Removed payment type string from URL when fetching a payment type resource.
  • Replace payment methods guaranteed/factoring by secured payment methods, i.e.:
    • InvoiceGuaranteed and InvoiceFactoring replaced by InvoiceSecured
    • SepaDirectDebitGuaranteed replaced by SepaDirectDebitSecured
    • HirePurchaseDirectDebit replaced by InstallmentSecured
    • Basket is now mandatory for all those payment types above.
  • Added mapping of old payment type ids to the new payment type resources.
  • Constant in \UnzerSDK\Constants\ApiResponseCodes got renamed:
    • API_ERROR_IVF_REQUIRES_CUSTOMER renamed to API_ERROR_FACTORING_REQUIRES_CUSTOMER.
    • API_ERROR_IVF_REQUIRES_BASKET renamed to API_ERROR_FACTORING_REQUIRES_BASKET.
  • Several minor changes.

Remove

  • Remove deprecated methods:
    • getAmountTotal
    • setAmountTotal
    • getCardHolder
    • setHolder
    • cancel
    • cancelAllCharges
    • cancelAuthorization
    • getResource
    • fetchResource
  • Remove deprecated constants:
    • API_ERROR_AUTHORIZE_ALREADY_CANCELLED
    • API_ERROR_CHARGE_ALREADY_CHARGED_BACK
    • API_ERROR_BASKET_ITEM_IMAGE_INVALID_EXTENSION
    • ENV_VAR_NAME_DISABLE_TEST_LOGGING