Releases: unzerdev/php-sdk
Releases · unzerdev/php-sdk
Release 3.1.0
Added
- Add payment types "Post Finance Card" and "Post Finance eFinance".
- Add setter/getter to PayPage for
recurrenceType
andexemptionType
.
Changed
- Make setter and getter for
PayPage::AdditionalAttributes
public to allow adding information manually.
Release 3.0.0
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
)
- 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::fetchPaymentRefund
andUnzer::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 forcard
field ofadditionalTransactionData
.
Version 1.2.3.0
Added
- Add support for express checkout via PayPal.
- Add support to set
checkoutType
for charge/authorize request. - Add transaction status
resumed
. - Add
updateCharge
andupdateAuthorization
method toUnzer
class
- Add support to set
- 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
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
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.
- For Card recurring please use
Version 1.2.0.0
Added
- Add payment type Paylater Invoice.
- Add properties
companyType
andowner
toCompanyInfo
class. - Add
shippingType
property toAddress
class. - Allow setting the clientIp manually.
- Allow setting
riskData
for authorize request. - Allow setting shipping data for charge request such as
deliveryTrackingId
,deliveryService
andreturnTrackingId
. - Add new methods for
authorize
andcharge
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 fromUnzer::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 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
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.
- 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
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
Added
- Enable recurrence type to be set for
charge
,authorize
andactivateRecurringPayment
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.