3.1.0
This release introduces Unzer PayPal Express in Java SDK.
Added
- Added Paypal-Express support:
- Extended
AdditionalTransactionData
withpaypal.checkoutType
field. Seecom.unzer.payment.models.AdditionalTransactionData.setPaypal
. - Defined
RESUMED
value forcom.unzer.payment.AbstractTransaction.Status
- Added
com.unzer.payment.Unzer::updateCharge()
,com.unzer.payment.Unzer::updateAuthorization()
which must be invoked after Paypal-Express transaction is resumed.
- Extended
- Added fields
orderId
andinvoiceId
toAuthorize
,Charge
andCancel
transactions. - Added authorize support for Paypage. Use
Paypage::setAction(Paypage.Action.AUTHORIZE)
- Added new capture (charge authorization) methods. See:
com.unzer.payment.Unzer.chargeAuthorization(charge)
andcom.unzer.payment.Unzer.chargeAuthorization(paymentId, charge)
Changed
- Reduced multiple
com.unzer.payment.service.PaymentService.chargeAuthorization
methods to one withCharge
argument.
Deprecated
- Deprecated
com.unzer.payment.paymenttypes.Invoice
. Usecom.unzer.payment.paymenttypes.PaylaterInvoice
instead - Deprecated behavioral methods for data objects. Please, use Unzer facade instead. List of deprecations:
AbstractTransaction
(base class ofAuthorization
,Cancel
,Charge
,Payout
,Recurring
,Shipment
,MarketplaceAuthorization
,MarketplaceCharge
,MarketplacePayment
,MarketplaceCancel
):getUnzer
/setUnzer
Charge
:cancel
Authorization
:charge
cancel
Payment
:charge
authorize
cancel
MarketplaceCharge
:cancel
MarketplaceAuthorization
:charge
cancel
MarketplacePayment
:marketplaceFullChargesCancel
fullChargeAuthorizations
marketplaceFullAuthorizeCancel
AbstractPayment
:fetchBasket
,fetchMetadata
,fetchCustomer
,fetchPaymentType