Skip to content

Latest commit

 

History

History
144 lines (107 loc) · 4.55 KB

Changelog.md

File metadata and controls

144 lines (107 loc) · 4.55 KB

Vanilo Payment Module Changelog

4.x Series

Unreleased

2024-XX-YY
  • Changed PaymentMethod::hasConfiguration() to return false on empty arrays as well

4.1.0

2024-07-11
  • Changed the offline payment gateway's icon from a circle to a plug+x
  • [EXPERIMENTAL] Added the supportsRetry, allowsRefund, canBeRetried and getRetryRequest methods to the TransactionHandler interface
  • [EXPERIMENTAL] Added the NoTransaction DTO

4.0.0

2024-04-25
  • Dropped PHP 8.0 & PHP 8.1 Support
  • Dropped Laravel 9 Support
  • Dropped Enum v3 Support
  • Added PHP 8.3 Support
  • Added Laravel 11 Support
  • Changed minimum Laravel version to v10.43
  • Changed minimal Enum requirement to v4.2
  • BC: Added the getRemoteId() method to the PaymentRequest interface
  • BC: Added the following methods to the Payment interface:
    • getSubtype()
    • hasRemoteId()
    • getRemoteId()
    • isOffline()
  • BC: Added the getTransactionAmount() method to the PaymentResponse interface
  • BC: Added the transactionHandler() method to the PaymentGateway interface (experimental feature)
  • BC: Added the svgIcon() static method to the PaymentGateway interface
  • BC: Changed the PaymentMethod interface into Configurable
  • Deprecated the PaymentMethod::getConfiguration() in favor of configuration()
  • Deprecated the PaymentResponse::getAmountPaid() method in favor of getTransactionAmount()
  • Added a series of experimental transaction-style interfaces. They shouldn't be used yet, but have been added so that they can be implemented during the v4.x lifecycle without breaking existing implementations

3.x Series

3.8.0

2023-05-24
  • Added missing Payment Status magic comparison annotations to the interface/model
  • Added the hasRemoteId(), getRemoteId() and isOffline() helper methods to the Payment model (v4 interface candidates)

3.7.0

2023-04-04
  • Added getRemoteId() method to the NullRequest class - it is a proposed v4 interface extension

3.6.0

2023-03-07
  • Added Laravel 10 support
  • Added the subtype field and the getSubtype() method to the Payment model

3.5.0

2023-02-23
  • Bump module version to mainline (no change)

3.4.0

2023-01-25
  • Added Configurable interface to the PaymentMethod model
  • Changed the PaymentMethod model to use the ConfigurableModel trait

3.3.0

2023-01-05
  • Added final PHP 8.2 support

3.2.0

2022-12-08
  • Changed minimum Concord version requirement to v1.12

3.1.0

2022-11-07
  • Added Enum 4.0 Support
  • Changed minimum Laravel requirement to 9.2
  • Changed minimum Konekt module requirements to:
    • Concord: 1.11
    • Enum: 3.1.1
  • Added the getGatewayName() method to the PaymentMethod class. It can retrieve the gateway name without instantiating it, thus gateway configuration errors don't affect it

3.0.1

2022-05-22
  • Bump module version to mainline (no change)

3.0.0

2022-02-28
  • Added Laravel 9 support
  • Added PHP 8.1 support
  • Dropped PHP 7.4 Support
  • Dropped Laravel 6-8 Support
  • Removed Admin from "Framework" - it is available as an optional separate package see vanilo/admin
  • Minimum Laravel version is 8.22.1. See GHSA-3p32-j457-pg5x

2.x Series

2.2.0

2021-09-11
  • Added status_message field to payments table
  • Added remote_id field to payments table
  • Added payment history handling
  • Added authorized, on_hold, cancelled, refunded and partially_refunded values to payment status enum
  • Added getStatus and getNativeStatus methods to the PaymentResponse interface
  • Added PaymentResponseHandler to simplify processing of payment responses in applications
  • Added support trait intended to be used by gateway plugins for substituting payment URL parameters
  • Added expectation: Gateways should return getAmountPaid() as negative at refund/rollback types of transactions
  • Dropped PHP 7.3 support (added attribute field types)
  • Changed internal CS ruleset from PSR-2 to PSR-12 (incl. declare strict types)

2.1.1

2021-02-27
  • Fixed a possible string return type instead of float in Payment module

2.1.0

2020-12-31
  • The very first release of this module
  • Supports PHP 7.3 - 8.0
  • Supports Laravel 6 - 8
  • Added payments, payment statuses, payment methods
  • Added gateway registry
  • Added Payment factory (creates payment from payables and payment methods)
  • Added payment events
  • Added payment- gateway, method, request and response contracts
  • Added NullGateway