Releases: unzerdev/php-sdk
Releases · unzerdev/php-sdk
3.5.0
Added
- Add
\UnzerSDK\Resources\PaymentTypes\Googlepaypayment type. - Add Example for Google Pay.
- Add PHP 8.3 version to composer.json
3.4.1
Changed
- Revert deprecation of
\UnzerSDK\Resources\PaymentTypes\SepaDirectDebit.
Release 3.4.0
Added
- Add
\UnzerSDK\Resources\PaymentTypes\PaylaterDirectDebitpayment type. - Add Example for Direct Debit payment type.
- Add constants
\UnzerSDK\Constants\CustomerRegistrationLevelfor 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\Sofortclass.
Changed
- Allow
nullfor setters in\UnzerSDK\Traits\HasAccountInformationtrait to avoid error when e.g. API response contains empty bic. - Apple Pay example: Moved merchant identifier to constant in
_enableExamples.phpwhere 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
Added
- Chargeback transaction type.
- Add class
\UnzerSDK\Resources\TransactionTypes\Chargeback. - Add methods
\UnzerSDK\Unzer::fetchChargebackand\UnzerSDK\Unzer::fetchChargebackByIdto fetch chargeback information.
- Add class
- Add
\UnzerSDK\Resources\PaymentTypes\PayUpayment type. - Add example for PayU payment type.
Release 3.2.0
Added
- Support for "Paylater Installment" payment type.
- Add payment type "PaylaterInstallment"
- Add
\UnzerSDK\Unzer::fetchPaylaterInstallmentPlansmethod to get available installment plans.
- Add "Paylater Installment" example.
Deprecated
\UnzerSDK\Resources\Payment::getCancellation, please usegetCancellationmethod of\UnzerSDK\Resources\TransactionTypes\Chargeor\UnzerSDK\Resources\TransactionTypes\Authorizationinstead, depending on your use-case.\UnzerSDK\Resources\PaymentTypes\InstallmentSecured, will be replaced by\UnzerSDK\Resources\PaymentTypes\PaylaterInstallmentin the future.
Changed
- Remove test-only constants and functions from
\UnzerSDK\Services\EnvironmentServiceand 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
Added
- Add payment types "Post Finance Card" and "Post Finance eFinance".
- Add setter/getter to PayPage for
recurrenceTypeandexemptionType.
Changed
- Make setter and getter for
PayPage::AdditionalAttributespublic to allow adding information manually.
Release 3.0.0
Added
- Enable PHP version 8.2 in composer.json.
- Add paypage property to
Paymentclass. - Add class
\UnzerSDK\Resources\EmbeddedResources\CardTransactionData.
Set as "card" field of additionalTransactionData - Add constants
\UnzerSDK\Constants\LiabilityShiftIndicatorfor valid liability shift indicator values, relevant for card payment.- Charge and authorize transactions with card can contain that indicator in Api response. (
CardTransactionData::$liability)
- Charge and authorize transactions with card can contain that indicator in Api response. (
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::fetchPaymentRefundandUnzer::fetchPaymentReversalto use resource ID as parameter. - Raise minimum PHP version to 7.4 in composer.json
- Handling of additionalTransactionData:
additionalTransactionData.cardfrom API responses will be mapped on\UnzerSDK\Resources\EmbeddedResources\CardTransactionDatanow.- Remove
paymentTypeparameter of\UnzerSDK\Traits\HasRecurrenceType::setRecurrenceType, it will always be set forcardfield ofadditionalTransactionData.
Version 1.2.3.0
Added
- Add support for express checkout via PayPal.
- Add support to set
checkoutTypefor charge/authorize request. - Add transaction status
resumed. - Add
updateChargeandupdateAuthorizationmethod toUnzerclass
- Add support to set
- Add missing "payment" webhook event.
- Add
invoiceIdto Cancellation class.
Changed
- Resource ID fields won't be sent in payment request if they are empty anymore.
Deprecated
- Marked unsecured
Invoiceclass as deprecated.
Version 1.2.2.0
Changed
- Sandbox API-URL will automatically be used for API calls depending on the private key.
- Adjust calculations of
Unzer::cancelPaymentmethod to avoid float precision issues.
Version 1.2.1.0
Added
- Allow fetching payment type config for paylater invoice.
- Add payment type "Klarna".
- Provide Example for "Klarna" payment method.
- Add
languageproperty 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.phpfile. - 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
activateRecurringmethod for Card and SepaDirectDebit types is deprecated.- For Card recurring please use
Charge|Authorization::setRecurrenceTypeand perform a charge or authorization. - For Sepa Direct Debit a successful charge will automatically set the type resource as recurring.
- For Card recurring please use