Skip to content

Releases: unzerdev/php-sdk

Release 3.4.0

07 Nov 15:20
632ce4c
Compare
Choose a tag to compare

Added

  • Add \UnzerSDK\Resources\PaymentTypes\PaylaterDirectDebit payment type.
  • Add Example for Direct Debit payment type.
  • Add constants \UnzerSDK\Constants\CustomerRegistrationLevel for valid "registrationLevel" values. Relevant for setting riskData.
  • Add riskData to PaylaterInstallment example.
  • Add riskData to PaylaterInvoice example.
  • Add bank account information to \UnzerSDK\Resources\PaymentTypes\Sofort class.

Changed

  • Allow null for setters in \UnzerSDK\Traits\HasAccountInformation trait to avoid error when e.g. API response contains empty bic.
  • Apple Pay example: Moved merchant identifier to constant in _enableExamples.php where it can be configured.

Deprecated

  • \UnzerSDK\Resources\PaymentTypes\SepaDirectDebit, please use \UnzerSDK\Resources\PaymentTypes\PaylaterDirectDebit.
  • \UnzerSDK\Resources\PaymentTypes\SepaDirectDebitSecured, please use \UnzerSDK\Resources\PaymentTypes\PaylaterDirectDebit.

Release 3.3.0

04 Sep 12:59
2854951
Compare
Choose a tag to compare

Added

  • Chargeback transaction type.
    • Add class \UnzerSDK\Resources\TransactionTypes\Chargeback.
    • Add methods \UnzerSDK\Unzer::fetchChargeback and \UnzerSDK\Unzer::fetchChargebackById to fetch chargeback information.
  • Add \UnzerSDK\Resources\PaymentTypes\PayU payment type.
  • Add example for PayU payment type.

Release 3.2.0

05 Jul 14:19
c49dbb6
Compare
Choose a tag to compare

Added

  • Support for "Paylater Installment" payment type.
    • Add payment type "PaylaterInstallment"
    • Add \UnzerSDK\Unzer::fetchPaylaterInstallmentPlans method to get available installment plans.
  • Add "Paylater Installment" example.

Deprecated

  • \UnzerSDK\Resources\Payment::getCancellation, please use getCancellation method of \UnzerSDK\Resources\TransactionTypes\Charge or \UnzerSDK\Resources\TransactionTypes\Authorization instead, depending on your use-case.
  • \UnzerSDK\Resources\PaymentTypes\InstallmentSecured, will be replaced by \UnzerSDK\Resources\PaymentTypes\PaylaterInstallment in the future.

Changed

  • Remove test-only constants and functions from \UnzerSDK\Services\EnvironmentService and move them to \UnzerSDK\test\Helper\TestEnvironmentService.
  • \UnzerSDK\Unzer::fetchPayment() method no longer automatically fetches linked Paypage to avoid issues with expired payment pages.

Release 3.1.0

05 Apr 09:59
7842ffa
Compare
Choose a tag to compare

Added

  • Add payment types "Post Finance Card" and "Post Finance eFinance".
  • Add setter/getter to PayPage for recurrenceType and exemptionType.

Changed

  • Make setter and getter for PayPage::AdditionalAttributes public to allow adding information manually.

Release 3.0.0

20 Feb 09:35
7a40a94
Compare
Choose a tag to compare

Added

  • Enable PHP version 8.2 in composer.json.
  • Add paypage property to Payment class.
  • Add class \UnzerSDK\Resources\EmbeddedResources\CardTransactionData.
    Set as "card" field of additionalTransactionData
  • Add constants \UnzerSDK\Constants\LiabilityShiftIndicator for valid liability shift indicator values, relevant for card payment.
    • Charge and authorize transactions with card can contain that indicator in Api response. (CardTransactionData::$liability)

Changed

  • Switch SDK to 3-digit versioning. First digit, formerly representing API version gets omitted (1.3.0.0 -> 3.0.0).
  • Add Type declaration to methods where applicable.
  • Enable Unzer::fetchPaymentRefund and Unzer::fetchPaymentReversal to use resource ID as parameter.
  • Raise minimum PHP version to 7.4 in composer.json
  • Handling of additionalTransactionData:
    • additionalTransactionData.card from API responses will be mapped on \UnzerSDK\Resources\EmbeddedResources\CardTransactionData now.
    • Remove paymentType parameter of \UnzerSDK\Traits\HasRecurrenceType::setRecurrenceType, it will always be set for card field of additionalTransactionData.

Version 1.2.3.0

08 Dec 11:28
f8fb606
Compare
Choose a tag to compare

Added

  • Add support for express checkout via PayPal.
    • Add support to set checkoutType for charge/authorize request.
    • Add transaction status resumed.
    • Add updateCharge and updateAuthorization method to Unzer class
  • Add missing "payment" webhook event.
  • Add invoiceId to Cancellation class.

Changed

  • Resource ID fields won't be sent in payment request if they are empty anymore.

Deprecated

  • Marked unsecured Invoice class as deprecated.

Version 1.2.2.0

04 Oct 12:08
cfd2f41
Compare
Choose a tag to compare

Changed

  • Sandbox API-URL will automatically be used for API calls depending on the private key.
  • Adjust calculations of Unzer::cancelPayment method to avoid float precision issues.

Version 1.2.1.0

30 Aug 09:38
b8edb5b
Compare
Choose a tag to compare

Added

  • Allow fetching payment type config for paylater invoice.
  • Add payment type "Klarna".
  • Provide Example for "Klarna" payment method.
  • Add language property to Customer class which is required for klarna payments.

Changed

  • Update UPL Invoice Example to display the "my consent" link in payment form.
  • Update examples to display shortId on success page also for payments done via payment pages.
  • Add background and logo image URLs to examples, which can be adjusted in the _enableExamples.php file.
  • General adjustments of examples:
    • Ensure all payment forms use correct css class.
    • Place submit button into an extra div element.
    • Disable submit button by default if a payment type has mandatory input fields.

Deprecated

  • The activateRecurring method for Card and SepaDirectDebit types is deprecated.
    • For Card recurring please use Charge|Authorization::setRecurrenceType and perform a charge or authorization.
    • For Sepa Direct Debit a successful charge will automatically set the type resource as recurring.

Version 1.2.0.0

02 Jun 11:47
da9c3fc
Compare
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
Compare
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.