Releases: unzerdev/php-sdk
Releases · unzerdev/php-sdk
Version 1.2.0.0
Added
- Add payment type Paylater Invoice.
- Add properties
companyTypeandownertoCompanyInfoclass. - Add
shippingTypeproperty toAddressclass. - Allow setting the clientIp manually.
- Allow setting
riskDatafor authorize request. - Allow setting shipping data for charge request such as
deliveryTrackingId,deliveryServiceandreturnTrackingId. - Add new methods for
authorizeandchargetransactions 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
currencyparameter fromUnzer::chargePayment()method. - Add
geoLocationproperty to all payment type classes. - Several minor improvements.
- Add account information coming from PAPI to Authorize class.
Deprecated
- Classes
- Mark
InvoiceSecuredas deprecated, will be replaced byPaylaterInvoice.
- Mark
- Methods
- Mark
Unzer::authorize()as deprecated. Please useUnzer::performAuthorization()instead. - Mark
Unzer::charge()as deprecated. Please useUnzer::performCharge()instead. - Mark
Unzer::chargePayment()as deprecated. Please useUnzer::performChargeOnPayment()instead. - Mark
Unzer::chargeAuthorization()as deprecated. Please useUnzer::performChargeOnPayment()instead.
- Mark
Version 1.1.5.0
Added
- Add Support for basket
v2resource.
Changed
- Add support for payment state
createwhich can occur when using payment pages. - Examples:
- Use
v2/basketresource for secured payment methods and payment pages. - Remove broken image-URLs of payment page examples.
- Use
- Several minor improvements.
Enable PHP 8.1 compatibility
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
Added
- Added Apple Pay example.
Changed
- Adjust
cancelAmountlogic 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
Added
- Enable recurrence type to be set for
charge,authorizeandactivateRecurringPaymentmethods.
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
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::handleErrorsexplicitly casts response code to int, to ensure same behavior on all PHP versions.- Several minor changes.
Introducing Apple Pay
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
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
Changed
- Add email property to payment type
cardto meet 3Ds2.x regulations. - Several minor changes.
Rebranding to Unzer
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.:
InvoiceGuaranteedandInvoiceFactoringreplaced byInvoiceSecuredSepaDirectDebitGuaranteedreplaced bySepaDirectDebitSecuredHirePurchaseDirectDebitreplaced byInstallmentSecured- 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\ApiResponseCodesgot renamed:API_ERROR_IVF_REQUIRES_CUSTOMERrenamed toAPI_ERROR_FACTORING_REQUIRES_CUSTOMER.API_ERROR_IVF_REQUIRES_BASKETrenamed toAPI_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