Skip to content

Commit a6197e2

Browse files
authored
Merge pull request #90 from unzerdev/UMCS-383/qa_changes
UMCS-383(change) Add deprecation notes to changelog.
2 parents e84a1b6 + b87bb72 commit a6197e2

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,18 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
2626
### Changed
2727
* Remove redundant `currency` parameter from `Unzer::chargePayment()` method.
2828
* Add `geoLocation` property to all payment type classes.
29-
* Mark `InvoiceSecured` payment type as deprecated.
3029
* Several minor improvements.
3130
* Add account information coming from PAPI to Authorize class.
3231

32+
### Deprecated
33+
* Classes
34+
* Mark `InvoiceSecured` as deprecated, will be replaced by `PaylaterInvoice`.
35+
* Methods
36+
* Mark `Unzer::authorize()` as deprecated. Please use `Unzer::performAuthorization()` instead.
37+
* Mark `Unzer::charge()` as deprecated. Please use `Unzer::performCharge()` instead.
38+
* Mark `Unzer::chargePayment()` as deprecated. Please use `Unzer::performChargeOnPayment()` instead.
39+
* Mark `Unzer::chargeAuthorization()` as deprecated. Please use `Unzer::performChargeOnPayment()` instead.
40+
3341
## [1.1.5.0](https://github.com/unzerdev/php-sdk/compare/1.1.4.2..1.1.5.0)
3442
### Added
3543
* Add Support for basket `v2` resource.

src/Interfaces/PaymentServiceInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ public function performChargeOnPayment(
194194
* Performs a Charge transaction for the Authorization of the given Payment object.
195195
* To perform a full charge of the authorized amount leave the amount null.
196196
*
197+
* @deprecated since 1.2.0.0 please use performChargeOnPayment() instead.
198+
*
197199
* @param string|Payment $payment The Payment object the Authorization to charge belongs to.
198200
* @param float|null $amount The amount to charge.
199201
* @param string|null $orderId The order id from the shop.
@@ -214,6 +216,8 @@ public function chargeAuthorization(
214216
/**
215217
* Performs a Charge transaction for a specific Payment and returns the resulting Charge object.
216218
*
219+
* @deprecated since 1.2.0.0 please use performChargeOnPayment() instead.
220+
*
217221
* @param Payment|string $payment The Payment object to be charged.
218222
* @param float|null $amount The amount to charge.
219223
* @param string|null $orderId The order id from the shop.

0 commit comments

Comments
 (0)