Releases: Adyen/adyen-php-api-library
Adyen PHP API Library v28.2.0
Features 💎
The release brings several improvements around model robustness and backward compatibility with evolving API schemas:
- Improved enum deserialisation: when an unknown enum value is found in API responses and webhooks, an exception is no longer thrown (to avoid affecting the applications). An error is logged instead while the value is still parsed. #807
Tokenization Webhooks
Add support for Tokenization Webhooks #778:
recurring.token.alreadyExisting
recurring.token.created
recurring.token.disabled
recurring.token.updated
Checkout API
- Added
action
attribute (PaymentDetailsResponseAction
) inPaymentDetailsResponse
- Added support for
PayToPaymentMethod
andUPIPaymentMethod
- Added support for
validateShopperId
utility to validate the shopper id - Added enum
RIVERTY_INSTALLMENTS
inRivertyDetails
- Added
subtype
attribute inRivertyDetails
- Added
EnhancedSchemeData
(supporting Airline enhanced scheme data) inPaymentRequest
- Added
promoted
attribute inPaymentMethod
BalancePlatform API
- Add new service
AuthorizedCardUsersApi
to manage (add, get, delete and update) authorized users to a given card - In
PaymentInstrumentsApi
add methodscreateNetworkTokenActivationData
andgetNetworkTokenActivationData
to create and retrieve network token activation data for a payment instrument. - In
AdditionalBankIdentification
add new enumsauBsbCode
andcaRoutingNumber
- Added support for
AdditionalbankIdentificationRequirement
:auBsbCode
,caRoutingNumber
,gbSortCode
orusRoutingNumber
. - In
Card
add new attributethreeDSecure
- Added
usage
field toCard
andCardInfo
to specify how many times the card can be used:singleUse
ormultiUse
. - Added
approvalExpired
ReasonEnum toCreateSweepConfigurationV2
,UpdateSweepConfigurationV2
andSweepConfigurationV2
- Add
NetworkTokenRequestor
toNetworkToken
- New
walletProviderAccountScore
andwalletProviderDeviceScore
attributes inTransactionRuleRestrictions
- Added support
USInternationalAchPriorityRequirement
- Add
walletProviderDeviceType
inTransactionRuleRestrictions
- Add enum
INTEREST
inTransferRoute.CategoryEnum
LEM API
- In
AdditionalBankIdentification
add new enumsauBsbCode
andcaRoutingNumber
Transfers API
- In
AdditionalBankIdentification
add new enumsauBsbCode
andcaRoutingNumber
- Add attribute
executionDate
inTransfer
,TransferData
andTransferInfo
- In
IssuedCard
add new attributethreeDSecure
- Added
email
andurl
toPartyIdentification
andUltimatePartyIdentification
- In
Transfer
add new attributecreatedAt
, deprecatecreationDate
(use insteadcreatedAt
) - In
TransferData
add new attributecreatedAt
andupdatedAt
, deprecatecreationDate
(use insteadcreatedAt
)
Management API
- Add support for
SepaDirectDebitInfo
- Add support for
AlipayPlus
andMaestroUsa
payment methods: seePaymentMethod
andPaymentMethodSetupInfo
classes - In
PaymentMethodResponse
,PaymentMethodSetupInfo
andUpdatePaymentMethodInfo
severalTypesWithErrorsEnum
enums have been added (alipay_plus
,avancard
,cooper
, etc.. - In
Store
,StoreCreationRequest
,UpdateStoreRequest
andStoreCreationWithMerchantCodeRequest
add attributesubMerchantData
ACS Webhooks
- Update deserialization to handle unknown enums
- Add support for
balancePlatform.authentication.relayed
event - In
RelayedAuthenticationRequest
add new attributesthreeDSRequestorAppURL
,environment
,timestamp
,type
Report Webhooks
- Update deserialization to handle unknown enums
Transaction Webhooks
- Update deserialization to handle unknown enums
- In
IssuedCard
add new attributethreeDSecure
- In
TransferViewCategoryData
add new attributethreeDSecure
Tranfers Webhooks
- Update deserialization to handle unknown enums
- In
IssuedCard
add new attributethreeDSecure
- In
TransferViewCategoryData
add new attributethreeDSecure
- In
AdditionalBankIdentification
add new enumsauBsbCode
andcaRoutingNumber
- Add attribute
executionDate
inTransfer
,TransferData
andTransferInfo
- Added
email
andurl
toPartyIdentification
andUltimatePartyIdentification
- In
TransferData
add new attributecreatedAt
andupdatedAt
, deprecatecreationDate
(use insteadcreatedAt
) - Added
approvalExpired
toTransferData
andTransferEvent
Changes in this release:
- Add Tokenization Webhooks by @gcatanese in #778
- Generate Checkout models (EnhancedSchemeData) by @gcatanese in #779
- [PaymentsAPIs] Code generation: update services and models by @AdyenAutomationBot in #789
- [ManagementAPIs] Code generation: update services and models by @AdyenAutomationBot in #792
- Generate LEM, Transfers and BalancePlatform services and models by @gcatanese in #804
- Handling unknown enum values by @gcatanese in #807
- Generate Webhooks models by @gcatanese in #808
- [ManagementAPIs] Code generation: update services and models by @AdyenAutomationBot in #802
Other Changes 🖇️
- Add tests for unknown enums and attributes by @gcatanese in #775
- Add test for JSON serialisation by @gcatanese in #777
- Format running on multiple branches by @gcatanese in #784
- Update filter in format.yml by @gcatanese in #786
- Format: update Composer version by @gcatanese in #791
- [PaymentsAPIs] Code generation: update services and models by @AdyenAutomationBot in #796
- Remove leading backslash by @gcatanese in #797
- [PaymentsAPIs] Code generation: update services and models by @AdyenAutomationBot in #798
- [ManagementAPIs] Code generation: update services and models by @AdyenAutomationBot in #799
- [PaymentsAPIs] Code generation: update services and models by @AdyenAutomationBot in #803
- AcsWebhooks: remove custom fix by @gcatanese in #809
- Release v28.2.0 by @AdyenAutomationBot in #776
Full Changelog: v28.1.0...v28.2.0
Adyen PHP API Library v28.1.0
What's Changed
Note
PHP 8.4 Compatibility
Updated method signatures across various service models and abstract resources to explicitly declare nullable > array parameters (array $param = null
changed to ?array $param = null
), resolving deprecation warnings in PHP 8.4.
New Features 💎
- Checkout API
- add
capturePspReference
andbusinessDayOnly
attributes
- add
Other Changes 🖇️
- chore(deps): update dependency phpunit/phpunit to v9.6.23 by @renovate in #676
- Fix warning: Implicitly marking parameter $params as nullable is deprecated by @gcatanese in #771
- PHP 8.4 compatibility by @gcatanese in #773
- Update to release-automation-action v1.4.0 by @gcatanese in #772
- Release v28.1.0 by @AdyenAutomationBot in #770
Full Changelog: v28.0.0...v28.1.0
Adyen PHP API Library v28.0.0
What's Changed
Breaking Changes 🛠
Checkout API
- Remove `DotpayDetails` and `GiropayDetails`
- Remove enum `PAYSAFECARD` from `PaymentDetails`
Management API
- Remove
GiroPayInfo
- Remove enum
PAYSHOP
fromPaymentMethodResponse
New Features 💎
Checkout API
* add support for `RakutenPay`
* Add `Surcharge` and `EnhancedSchemeData` (supporting Airline enhanced scheme data) in `PaymentRequest`
* Add `EnhancedSchemeData` (supporting Airline enhanced scheme data) in `PaymentCaptureRequest`
* Add `fraudRiskLevel` in `ResponseAdditionalDataCommon`
* Add enum `PAYSAFECARD` from `StoredPaymentMethodDetails`
* New Donation `type` field supporting the following values: `roundup`, `fixedAmounts`
(Documentation)
* Added sub-merchant info:
- subMerchantPhoneNumber
, subMerchantEmail
- Nested: subMerchant.subSeller[n].email
, subMerchant.subSeller[n].phoneNumber
* Added bonus
enum to CheckoutSessionInstallmentOption * add
RequestedTestAcquirerResponseCodein
AdditionalDataCommon`
Payment Classic API
* Add `fraudRiskLevel` in `ResponseAdditionalDataCommon`
Payout API
* Add `fraudRiskLevel` in `ResponseAdditionalDataCommon`
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
LEM API
* Add attribute `allowDebugUi` in `OnboardingLinkSettings`to debug user interface (UI) when applicable.
Transfers API
- Added `IssuingTransactionData` with `captureCycleId` that provides the captureCycleId associated with transfer event
* Add enum `DCCPLATFORMCOMMISSION` in `PlatformPayment`
* Add enum `PENDING`in `TransferData`
* Add attribute `externalReason` in `TransferData`
* Add `scaOnApproval` attribute in `TransferReview`
Fixes ⛑️
- Remove invalid PHPDoc tag @description by @gcatanese in #764
- Correct PosSdk (PosMobileService) LIVE url by @gcatanese in #760
- Add a new configuration for HTTP client to set
CURLOPT_CONNECTTIMEOUT
and defines default values by @candemiralp in #756
Other Changes 🖇️
- Introduced a new HMAC troubleshooting utility for signature validation debugging (#754). The tool calculates the HMAC signature given the HMAC key and the payload:
cd tools/hmac
php tools/hmac/HMACValidatorPayments.php 1122334455AABBCCDDEEDFDFFSDS payload.json
Check the README
- Add close-issue-label flag to correctly label closed issues by @DjoykeAbyah in #750
- Add bug and feature GitHub issue form by @ayodejidev in #744
- Add nullable return types to API mustache templates by @ayodejidev in #748
- Improve PHP CI workflow by @ayodejidev in #753
- Import Guzzle utils by @szepeviktor in #720
- Vulnerability fix: set workflow permissions by @gcatanese in #765
- Generate Checkout models by @gcatanese in #761
- Generate models for LEM/Transfers/BalanceControl/BalancePlatform by @gcatanese in #763
- Generate models for Payment Classic/Payout/Management/Recurring APIs by @gcatanese in #762
Full Changelog: v27.0.0...v28.0.0
Adyen PHP API Library v27.0.0
What's Changed
Breaking Changes 🛠
- Management API:
- In
MeApiCredential
theassociatedMerchantAccounts
string has been removed.
- In
- Management webhooks:
- In
PaymentMethodRequestRemovedNotificationRequest
the event type has been renamed topaymentMethodRequest.removed
- In
PaymentMethodScheduledForRemovalNotificationRequest
the event type has been renamed topaymentMethodRequest.scheduledForRemoval
.
- In
New Features 💎
- Checkout:
- New payment methods
PixDetails
andPixRecurring
. - In
PaymentRefundResponse
add attributecapturePspReference
(only available for PayPal refunds). - In
ResponseAdditionalDataCommon
:⚠️ therecurringRecurringDetailReference
andrecurringShopperReference
are deprecated, use instead the new attributetokenization.storedPaymentMethodId
andtokenization.shopperReference
.- add
tokenizationStoreOperationType
andtokenizationStoredPaymentMethodId
attributes, addtokenizationStoreOperationType
enum.
- New payment methods
- Management API:
- In
AndroidApp
addSTATUS_ARCHIVED
,STATUS_ERROR
,STATUS_INVALID
,STATUS_PROCESSING
,STATUS_READY
toStatusAllowableValues
enum. - Support
AffirmInfo
andPayToInfo
payment methods. - in
Surcharge
class add attribugeexcludeGratuityFromSurcharge
.
- In
- Payout:
- In
ResponseAdditionalDataCommon
:⚠️ therecurringRecurringDetailReference
andrecurringShopperReference
are deprecated, use instead the new attributetokenization.storedPaymentMethodId
andtokenization.shopperReference
.- add
tokenizationStoreOperationType
andtokenizationStoredPaymentMethodId
attributes, addtokenizationStoreOperationType
enum.
- In
- Classic Payments:
- In
ResponseAdditionalDataCommon
:⚠️ therecurringRecurringDetailReference
andrecurringShopperReference
are deprecated, use instead the new attributetokenization.storedPaymentMethodId
andtokenization.shopperReference
.- add
tokenizationStoreOperationType
andtokenizationStoredPaymentMethodId
attributes, addtokenizationStoreOperationType
enum.
- In
Important
The Recurring API is deprecated. Use the Checkout API recurring endpoints instead.
Full Changelog: v26.0.0...v27.0.0
Other Changes 🖇️
- Release v27.0.0 by @AdyenAutomationBot in #746
Full Changelog: v26.0.0...v27.0.0
Adyen PHP API Library v26.0.0
What's Changed
Breaking ⚒️
- BalancePlatform:
- Removed
PriorityRestriction
class. - In
TransactionRuleRestriction
removedpriority
.
- Removed
- BinLookup:
- In
CostEstimateResponse
removedsurchargeType
.
- In
-
- TransferWebhook:
- In
TransferReview
removednumberOfApprovalsCompleted
andscaOnApproval
.
- In
- TransferWebhook:
- Transfers:
- In
TransferReview
removednumberOfApprovalsCompleted
andscaOnApproval
.
- In
Features 💎
-
AcsWebhooks:
- In ChallengeInfo broadening the range of
CHALLENGE_CANCEL
enums.
- In ChallengeInfo broadening the range of
-
BalancePlatform:
- Added
AssociationDelegatedAuthenticationData
,AssociationFinaliseRequest
,AssociationFinaliseResponse
,AssociationInitiateRequest
,AssociationInitiateResponse
andTokenRequestorsRestriction
class. - In
TransactionRuleRestriction
addedtokenRequestors
.
- Added
-
Checkout:
- In
CardDetails
,CardDonations
,CheckoutPaymentMethod
andDonationPaymentMethod
addedfastlaneData
. - Added
FastlaneDetails
class.
- In
-
LegalEntityManagement:
- Added
FinancialReport
class. - In
LegalEntityAssociation
addednominee
. - In
Organization
andSoleProprietorship
addedfinancialReports
.
- Added
-
Code generation: update services and models by @AdyenAutomationBot in #741
-
Services:
- BalancePlatform:
- Deprecated
GrantAccountsApi
andGrantOffersApi
. - In
ManageSCADevicesApi
addedcompleteAssociationBetweenScaDeviceAndResource
andinitiateAssociationBetweenScaDeviceAndResource
.
- Deprecated
- Transfers:
- Deprecated
CapitalApi
.
- Deprecated
- BalancePlatform:
Other Changes 🖇️
- updated readme by @DjoykeAbyah in #739
- Release v26.0.0 by @AdyenAutomationBot in #740
Full Changelog: v25.0.0...v26.0.0
Adyen PHP API Library v25.0.0
What's Changed
Breaking Changes ⚒️
- Payments:
- In
AdditionalDataAirline
changedairlinePassengerTelephoneNumber
toairlinePassengerPhoneNumber
- In
New Features 💎
- Checkout:
- In
Split
addedTopUp
.
- In
- NegativeBalanceWarningWebhooks:
- Added
Amount
class. - Added
ModelInterface
class. - Added
NegativeBalanceCompensationWarningNotificationData
class. - Added
NegativeBalanceCompensationWarningNotificationRequest
class. - Added
ObjectSerializer
class. - Added
Resource
class. - Added
ResourceReference
class.
- Added
- Payments:
- In
Split
addedTopUp
.
- In
- Code generation: update services and models by @AdyenAutomationBot in #734
Other Changes 🖇️
- Add deprecation info - models by @ayodejidev in #735
- Add deprecation info for services by @ayodejidev in #737
- Fix deprecation info - remove extra new line by @ayodejidev in #738
- Release v25.0.0 by @AdyenAutomationBot in #736
Important
From January 1, 2025 POS Terminal Management API
is deprecated and support stops on April 1, 2025. To automate the management of your terminal fleet, use our Management API.
Full Changelog: v24.0.0...v25.0.0
Adyen PHP API Library v24.0.0
What's Changed
Breaking Changes 🛠
- Checkout API:
airlinePassengerTelephoneNumberchanged toairlinePassengerPhoneNumber
inAdditionalDataAirline
New Features 💎
- Checkout API:
- Added
AffirmDetails
payment method - Added
PayPayDetails
payment method - Added
autoRescue
inAdditionalDataCommon
- Set to true to enable Auto Rescue - Added
maxDaysToRescue
inAdditionalDataCommon
- Specify the rescue window for a transaction, in days, whenautoRescue
is set to true. You can specify a value between 1 and 48.
- Added
Other Changes 🖇️
- Code generation: update services and models by @AdyenAutomationBot in #733
- Release v24.0.0 by @AdyenAutomationBot in #729
- Enhanced Client and Region with support for Terminal Cloud LIVE regional endpoints by @DjoykeAbyah in #724
- fix assert for testGetCloudEndpointForTestEnvironment by @DjoykeAbyah in #727
Full Changelog: v23.2.1...v24.0.0
Adyen PHP API Library v23.2.0
What's Changed
New Features 💎
- BalancePlatform:
- Added
PriorityRestriction
class. - In
TransactionRuleRestrictions
addedpriority
. - In
VerificationDeadline
,VerificationError
andVerificationErrorRecursive
addedissueChargeCard
,issueChargeCardCommercial
,useChargeCard
anduseChargeCardCommercial
enum.
- Added
- ConfigurationWebhooks:
- In
VerificationDeadline
,VerificationError
andVerificationErrorRecursive
addedissueChargeCard
,issueChargeCardCommercial
,useChargeCard
anduseChargeCardCommercial
enum.
- In
- LegalEntityManagement:
- In
VerificationDeadline
,VerificationError
andVerificationErrorRecursive
addedissueChargeCard
,issueChargeCardCommercial
,useChargeCard
anduseChargeCardCommercial
enum.
- In
- ReportWebhooks:
- In
ReportNotificationData
addedid
- In
- Update all services by @AdyenAutomationBot in #722
Other Changes 🖇️
- Release v23.2.0 by @AdyenAutomationBot in #723
Full Changelog: v23.1.0...v23.2.0
Adyen PHP API Library v23.1.0
What's Changed
New Features 💎
- BalancePlatform:
- Added
CounterpartyTypesRestriction
andSourceAccountTypesRestriction
class - In
TransactionRuleRestrictions
addedcounterpartyTypes
andsourceAccountTypes
- Added
- ConfigurationWebhooks:
- In
AccountHolderNotificationRequest
,BalanceAccountNotificationRequest
,CardOrderNotificationRequest
,PaymentNotificationRequest
andSweepConfigurationNotificationRequest
addedtimestamp
- In
- Management:
- In
TerminalConnectivityCellular
addediccid2
- In
UpdatePaymentMethodInfo
addedstoreId
- In
- ManagementWebhooks:
- Added
TerminalAssignmentNotificationRequest
andTerminalAssignmentNotificationResponse
class
- Added
- ReportWebhooks:
- In
ReportNotificationRequest
addedtimestamp
- In
- Update all services by @AdyenAutomationBot in #719
Other Changes 🖇️
- Release v23.1.0 by @AdyenAutomationBot in #721
Full Changelog: v23.0.0...v23.1.0
Adyen PHP API Library v23.0.0
What's Changed
Breaking Changes 🛠
- LegalEntityManagament:
- In
Trust
removedsetTaxAbsent
attribute
- In
- Management:
- In
JCBInfo
removed serviceLevel null check
- In
New Features 💎
- AcsWebhooks:
- In
AuthenticationNotificationData
addedtimestamp
attribute
- In
- Checkout:
- In
CardDetails
andCardDonations
addedencryptedCard
attribute andclicktopay
enum - In
CheckoutPaymentMethod
addedPseDetails
- Added
PseDetails
class
- In
- DisputeWebhooks:
- Added
AbstractOpenApiSchema
class - Added
Amount
class - Added
BalancePlatformNotificationResponse
class - Added
DisputeEventNotification
- Added
DisputeNotificationRequest
class - Added
JSON
class
- Added
- LegalEntityManagament:
- In
PCIQuestionnairesApi
addedcalculatePciStatusOfLegalEntity
- Added
CalculatePciStatusRequest
class - Added
CalculatePciStatusResponse
class - In
LegalEntity
addedunincorporatedPartnership
attribute - In
LegalEntityAssociation
addedsecondaryPartner
andunincorporatedPartnership
attributes - In
LegalEntityInfo
andLegalEntityInfoRequiredType
addedunincorporatedPartnership
attribute - In
OnboardingLinkSettings
addedenforceLegalAge
attribute - In
PhoneNumber
added 'phoneCountryCode' attribute - In
Trust
addeddescription
,businessTrust
,charitableTrust
,discretionaryTrust
andfamilyTrust
attributes - Added
UnincorporatedPartnership
class
- In
- Management:
- Added
DinersInfo
class - In
PaymentMethod
andPaymentMethodSetupInfo
replaced import fromGenericPmWithTdinfo
toDinersInfo
- In
PaymentMetdhoResponse
addedaffirm
attribute
- Added
- TransactionWebhooks:
- In
TransactionNotificationRequestV4
addedtimestamp
attribute
- In
- TransferWebhooks:
- Added
Airline
class - Added
Leg
class - Added
MerchantPurchaseData
class - In
TransferData
addedeventId
attribute - In
TransferEvent
addedeventsData
- Added
TransferEventEventsDataInner
class - In
TransferNotificationRequest
addedtimestamp
- Added
- Transfers:
- Added
Airline
class - Added
Leg
class - Added
MerchantPurchaseData
class - In
Transfer
andTransferInfo
addedtopUp
- In
TransferData
addedeventId
attribute - In
TransferEvent
addedeventData
attribute - Added
TransferEventEventsDataInner
class
- Added
- Update all services by @AdyenAutomationBot in #714
Other Changes 🖇️
- Update Client.php by @seahshaocheng in #716
- added APSE to VALID_REGIONS by @DjoykeAbyah in #717
- Release v23.0.0 by @AdyenAutomationBot in #718
New Contributors
- @seahshaocheng made their first contribution in #716
Full Changelog: v22.1.0...v23.0.0