Breaking Changes 🛠
-
Checkout API
- Dotpay: Removed the
DotpayDetails
class and all related references inCheckoutPaymentMethod
and test files. Direct support for Dotpay is deprecated - Giropay: Removed the
GiropayDetails
class and all related references inCheckoutPaymentMethod
and test files. Direct support for Giropay is deprecated - Paysafecard (from PaymentDetails TypeEnum): Removed
Paysafecard
from theTypeEnum
in thePaymentDetails
model
- Dotpay: Removed the
-
Classic Payments API
- In
ResponseAdditionalDataCommon
theTokenizationStoreOperationTypeEnum.AlreadyStored
has been removed, and replaced byTokenizationStoreOperationTypeEnum.AlreadyExisting
- In
-
Management API
- Remove
GiroPayInfo
- Remove enum `PAYSHOP from PaymentMethodResponse
- Remove
Features 💎
- Checkout API
- Rakuten Pay: Added support for Rakuten Pay as a payment method -
RakutenPayDetails
- Add support for Surcharge in paymentRequest
- Added Donation
type
field supporting the following values:roundup
,fixedAmounts
- Added email and phone number fields to
AdditionalDataCommon
andAdditionalDataSubMerchant
- Added
SubMerchantEmail
andSubMerchantPhoneNumber
fields toAdditionalDataCommon
- Added
SubMerchantSubSellerSubSellerNrEmail
andSubMerchantSubSellerSubSellerNrPhoneNumber
fields toAdditionalDataSubMerchant
- Added
RequestedTestAcquirerResponseCode
toAdditionalDataCommon
to facilitate testing scenarios for specific acquirer responses - Added
EnhancedSchemeData
property toPaymentRequest
andPaymentCaptureRequest
- Added
EncryptedCard
property toPaymentMethodToStore
to allow storing encrypted card details. - Added the
FraudRiskLevel
enum and property toResponseAdditionalDataCommon
to indicate the risk level of a payment (e.g.VeryLow
,Low
,Medium
,High
, andVeryHigh
) - Added Bonus enum member to the PlansEnum in CheckoutSessionInstallmentOption and Installments
- Rakuten Pay: Added support for Rakuten Pay as a payment method -
Add support for Balance Webhooks
-
Management API
- Add
supportEmail
field to theAfterpayTouchInfo
- Add enum
PAYMENTDESIGNATORCONTRACT
in JCBInfo - Add PayByBankPlaidInfo
- Add enum
PAYBYBANK_PLAID
in PaymentMethodResponse - Add
domainSuffix
field to Profile - In
SplitConfigurationRule
add enumsCHARGED
,DEFERRED_DEBIT
andPREPAID
(#1457) - Add
enableGratuities
to the Standalone model
- Add
-
Webhooks
- Add
ISSUER_COMMENTS
webhook event code by @nickcarenza in #1488
- Add
-
Configuration Webhooks
- Add
replacedById
toPaymentInstrument
- Add
-
AcsWebhooks
-
Enum value has changed:
-
Before:
OTP_SMS
-
After:
PWD_OTP_PHONE_FL
- OTP flow via SMS -
Enum value has changed:
-
Before:
OOB
-
After:
OOB_TRIGGER_FL
- Out-of-band trigger flow -
New:
-
Added
PWD_OTP_EMAIL_FL
- OTP flow via Email
-
Fixes ⛑️
- Fix value User-Agent HTTP header by @gcatanese in #1496
- Fix union types deserialization with transfer webhooks by @mercury2269 in #1489
Other Changes 🖇️
NotificationRequestItem
enums: Remove legacy by @gcatanese in #1497- Set default timeout on the HTTP client by @gcatanese in #1490
- Introduced a new HMAC troubleshooting utility for signature validation debugging (#1487). The tool calculates the HMAC signature given the HMAC key and the payaload:
cd tools/hmac
npm install
node calculateHmacPayments.js 11223344D785FBAE710E7F943F307971BB61B21281C98C9129B3D4018A57B2EB payload.json
Check the README
New Contributors
- @nickcarenza made their first contribution in #1488
- @mercury2269 made their first contribution in #1489
Full Changelog: v26.1.0...v27.0.0