forked from shopware/shopware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NEXT-31047 - Improve payment handlers
- Loading branch information
1 parent
0e36c26
commit 6204df8
Showing
141 changed files
with
4,695 additions
and
1,799 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
changelog/_unreleased/2024-05-13-improve-payment-handlers.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
title: Improve payment handlers & general payment process | ||
issue: NEXT-31047 | ||
--- | ||
# Core | ||
* Added new `AbstractPaymentHandler` to replace all existing payment handler interfaces | ||
* Deprecated `AsyncPaymentHandlerInterface`, `PreparedPaymentHandlerInterface`, `SyncPaymentHandlerInterface`, `RefundPaymentHandlerInterface`, `RecurringPaymentHandlerInterface` | ||
* Deprecated runtime fields `synchronous`, `asynchronous`, `prepared`, `refund`, `recurring` in `PaymentMethodEntity` | ||
___ | ||
# Next Major Version Changes | ||
|
||
## Payment: Reworked payment handlers | ||
* The payment handlers have been reworked to provide a more flexible and consistent way to handle payments. | ||
* The new `AbstractPaymentHandler` class should be used to implement payment handlers. | ||
* The following interfaces have been deprecated: | ||
* `AsyncPaymentHandlerInterface` | ||
* `PreparedPaymentHandlerInterface` | ||
* `SyncPaymentHandlerInterface` | ||
* `RefundPaymentHandlerInterface` | ||
* `RecurringPaymentHandlerInterface` | ||
* Synchronous and asynchronous payments have been merged to return an optional redirect response. | ||
|
||
|
||
## Payment: Capture step of prepared payments removed | ||
* The method `capture` has been removed from the `PreparedPaymentHandler` interface. This method is no longer being called for apps. | ||
* Use the `pay` method instead for capturing previously validated payments. | ||
|
||
## App System: Payment: payment states | ||
* For asynchronous payments, the default payment state `unconfirmed` was used for the `pay` call and `paid` for `finalized`. This is no longer the case. Payment states are no longer set by default. | ||
|
||
## App system: Payment: finalize step | ||
* The `finalize` step now transmits the `queryParameters` under the object key `requestData` as other payment calls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.