Skip to content

Releases: Adyen/adyen-php-api-library

Adyen PHP API Library v28.2.0

14 Aug 13:42
f444e75
Compare
Choose a tag to compare

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) in PaymentDetailsResponse
  • Added support for PayToPaymentMethod and UPIPaymentMethod
  • Added support for validateShopperId utility to validate the shopper id
  • Added enum RIVERTY_INSTALLMENTS in RivertyDetails
  • Added subtype attribute in RivertyDetails
  • Added EnhancedSchemeData (supporting Airline enhanced scheme data) in PaymentRequest
  • Added promoted attribute in PaymentMethod

BalancePlatform API

  • Add new service AuthorizedCardUsersApi to manage (add, get, delete and update) authorized users to a given card
  • In PaymentInstrumentsApi add methods createNetworkTokenActivationData and getNetworkTokenActivationData to create and retrieve network token activation data for a payment instrument.
  • In AdditionalBankIdentification add new enums auBsbCode and caRoutingNumber
  • Added support for AdditionalbankIdentificationRequirement: auBsbCode, caRoutingNumber, gbSortCode or usRoutingNumber.

  • In Card add new attribute threeDSecure
  • Added usage field to Card and CardInfo to specify how many times the card can be used: singleUse or multiUse.
  • Added approvalExpired ReasonEnum to CreateSweepConfigurationV2, UpdateSweepConfigurationV2 and SweepConfigurationV2
  • Add NetworkTokenRequestor to NetworkToken
  • New walletProviderAccountScore and walletProviderDeviceScore attributes in TransactionRuleRestrictions
  • Added support USInternationalAchPriorityRequirement
  • Add walletProviderDeviceType in TransactionRuleRestrictions
  • Add enum INTEREST in TransferRoute.CategoryEnum

LEM API

  • In AdditionalBankIdentification add new enums auBsbCode and caRoutingNumber

Transfers API

  • In AdditionalBankIdentification add new enums auBsbCode and caRoutingNumber
  • Add attribute executionDate in Transfer, TransferData and TransferInfo
  • In IssuedCard add new attribute threeDSecure
  • Added email and url to PartyIdentification and UltimatePartyIdentification
  • In Transfer add new attribute createdAt, deprecate creationDate (use instead createdAt)
  • In TransferData add new attribute createdAt and updatedAt, deprecate creationDate (use instead createdAt)

Management API

  • Add support for SepaDirectDebitInfo
  • Add support for AlipayPlus and MaestroUsa payment methods: see PaymentMethod and PaymentMethodSetupInfo classes
  • In PaymentMethodResponse, PaymentMethodSetupInfo and UpdatePaymentMethodInfo several TypesWithErrorsEnum enums have been added (alipay_plus, avancard, cooper, etc..
  • In Store, StoreCreationRequest, UpdateStoreRequest and StoreCreationWithMerchantCodeRequest add attribute subMerchantData

ACS Webhooks

  • Update deserialization to handle unknown enums
  • Add support for balancePlatform.authentication.relayed event
  • In RelayedAuthenticationRequest add new attributes threeDSRequestorAppURL, environment, timestamp, type

Report Webhooks

  • Update deserialization to handle unknown enums

Transaction Webhooks

  • Update deserialization to handle unknown enums
  • In IssuedCard add new attribute threeDSecure
  • In TransferViewCategoryData add new attribute threeDSecure

Tranfers Webhooks

  • Update deserialization to handle unknown enums
  • In IssuedCard add new attribute threeDSecure
  • In TransferViewCategoryData add new attribute threeDSecure
  • In AdditionalBankIdentification add new enums auBsbCode and caRoutingNumber
  • Add attribute executionDate in Transfer, TransferData and TransferInfo
  • Added email and url to PartyIdentification and UltimatePartyIdentification
  • In TransferData add new attribute createdAt and updatedAt, deprecate creationDate (use instead createdAt)
  • Added approvalExpired to TransferData and TransferEvent

Changes in this release:

Other Changes 🖇️

Full Changelog: v28.1.0...v28.2.0

Adyen PHP API Library v28.1.0

27 Jun 09:18
11456e0
Compare
Choose a tag to compare

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 and businessDayOnly attributes

Other Changes 🖇️

Full Changelog: v28.0.0...v28.1.0

Adyen PHP API Library v28.0.0

26 May 07:17
4e7adb3
Compare
Choose a tag to compare

What's Changed

Breaking Changes 🛠

Checkout API

- Remove `DotpayDetails` and `GiropayDetails`
- Remove enum `PAYSAFECARD` from `PaymentDetails`

Management API

  • Remove GiroPayInfo
  • Remove enum PAYSHOP from PaymentMethodResponse

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 RequestedTestAcquirerResponseCodeinAdditionalDataCommon`

Payment Classic API

* Add `fraudRiskLevel` in `ResponseAdditionalDataCommon`

Payout API

* Add `fraudRiskLevel` in `ResponseAdditionalDataCommon`

Management API

  • Add supportEmail field to the AfterpayTouchInfo
  • Add enum PAYMENTDESIGNATORCONTRACT in JCBInfo
  • Add PayByBankPlaidInfo
  • Add enum PAYBYBANK_PLAID in PaymentMethodResponse
  • Add domainSuffix field to Profile
  • In SplitConfigurationRule add enums CHARGED, DEFERRED_DEBIT and PREPAID (#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 ⛑️

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

Full Changelog: v27.0.0...v28.0.0

Adyen PHP API Library v27.0.0

04 Mar 14:21
38458a1
Compare
Choose a tag to compare

What's Changed

Breaking Changes 🛠

  • Management API:
    • In MeApiCredential the associatedMerchantAccounts string has been removed.
  • Management webhooks:
    • In PaymentMethodRequestRemovedNotificationRequest the event type has been renamed to paymentMethodRequest.removed
    • In PaymentMethodScheduledForRemovalNotificationRequest the event type has been renamed to paymentMethodRequest.scheduledForRemoval.

New Features 💎

  • Checkout:
    • New payment methods PixDetails and PixRecurring.
    • In PaymentRefundResponse add attribute capturePspReference (only available for PayPal refunds).
    • In ResponseAdditionalDataCommon:
      • ⚠️ the recurringRecurringDetailReference and recurringShopperReference are deprecated, use instead the new attribute tokenization.storedPaymentMethodId and tokenization.shopperReference.
      • add tokenizationStoreOperationType and tokenizationStoredPaymentMethodId attributes, add tokenizationStoreOperationType enum.
  • Management API:
    • In AndroidApp add STATUS_ARCHIVED, STATUS_ERROR, STATUS_INVALID, STATUS_PROCESSING, STATUS_READY to StatusAllowableValues enum.
    • Support AffirmInfo and PayToInfo payment methods.
    • in Surcharge class add attribuge excludeGratuityFromSurcharge.
  • Payout:
    • In ResponseAdditionalDataCommon:
      • ⚠️ the recurringRecurringDetailReference and recurringShopperReference are deprecated, use instead the new attribute tokenization.storedPaymentMethodId and tokenization.shopperReference.
      • add tokenizationStoreOperationType and tokenizationStoredPaymentMethodId attributes, add tokenizationStoreOperationType enum.
  • Classic Payments:
    • In ResponseAdditionalDataCommon:
      • ⚠️ the recurringRecurringDetailReference and recurringShopperReference are deprecated, use instead the new attribute tokenization.storedPaymentMethodId and tokenization.shopperReference.
      • add tokenizationStoreOperationType and tokenizationStoredPaymentMethodId attributes, add tokenizationStoreOperationType enum.

Full Changelog: v26.0.0...v27.0.0

Other Changes 🖇️

Full Changelog: v26.0.0...v27.0.0

Adyen PHP API Library v26.0.0

17 Feb 15:28
d8b3427
Compare
Choose a tag to compare

What's Changed

Breaking ⚒️

  • BalancePlatform:
    • Removed PriorityRestriction class.
    • In TransactionRuleRestriction removed priority.
  • BinLookup:
    • In CostEstimateResponse removed surchargeType.
    • TransferWebhook:
      • In TransferReview removed numberOfApprovalsCompleted and scaOnApproval.
  • Transfers:
    • In TransferReview removed numberOfApprovalsCompleted and scaOnApproval.

Features 💎

  • AcsWebhooks:

    • In ChallengeInfo broadening the range of CHALLENGE_CANCEL enums.
  • BalancePlatform:

    • Added AssociationDelegatedAuthenticationData, AssociationFinaliseRequest, AssociationFinaliseResponse, AssociationInitiateRequest, AssociationInitiateResponse and TokenRequestorsRestriction class.
    • In TransactionRuleRestriction added tokenRequestors.
  • Checkout:

    • In CardDetails, CardDonations, CheckoutPaymentMethod and DonationPaymentMethod added fastlaneData.
    • Added FastlaneDetails class.
  • LegalEntityManagement:

    • Added FinancialReport class.
    • In LegalEntityAssociation added nominee.
    • In Organization and SoleProprietorship added financialReports.
  • Code generation: update services and models by @AdyenAutomationBot in #741

  • Services:

    • BalancePlatform:
      • Deprecated GrantAccountsApi and GrantOffersApi.
      • In ManageSCADevicesApi added completeAssociationBetweenScaDeviceAndResource and initiateAssociationBetweenScaDeviceAndResource.
    • Transfers:
      • Deprecated CapitalApi.

Other Changes 🖇️

Full Changelog: v25.0.0...v26.0.0

Adyen PHP API Library v25.0.0

03 Feb 13:42
e457b18
Compare
Choose a tag to compare

What's Changed

Breaking Changes ⚒️

  • Payments:
    • In AdditionalDataAirline changed airlinePassengerTelephoneNumber to airlinePassengerPhoneNumber

New Features 💎

  • Checkout:
    • In Split added TopUp.
  • NegativeBalanceWarningWebhooks:
    • Added Amount class.
    • Added ModelInterface class.
    • Added NegativeBalanceCompensationWarningNotificationData class.
    • Added NegativeBalanceCompensationWarningNotificationRequest class.
    • Added ObjectSerializer class.
    • Added Resource class.
    • Added ResourceReference class.
  • Payments:
    • In Split added TopUp.
  • Code generation: update services and models by @AdyenAutomationBot in #734

Other Changes 🖇️

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

21 Jan 13:39
a51b050
Compare
Choose a tag to compare

What's Changed

Breaking Changes 🛠

  • Checkout API:
    • airlinePassengerTelephoneNumber changed to airlinePassengerPhoneNumber in AdditionalDataAirline

New Features 💎

  • Checkout API:
    • Added AffirmDetails payment method
    • Added PayPayDetails payment method
    • Added autoRescue in AdditionalDataCommon - Set to true to enable Auto Rescue
    • Added maxDaysToRescue in AdditionalDataCommon - Specify the rescue window for a transaction, in days, when autoRescue is set to true. You can specify a value between 1 and 48.

Other Changes 🖇️

Full Changelog: v23.2.1...v24.0.0

Adyen PHP API Library v23.2.0

06 Jan 13:30
1843759
Compare
Choose a tag to compare

What's Changed

New Features 💎

  • BalancePlatform:
    • Added PriorityRestriction class.
    • In TransactionRuleRestrictions added priority.
    • In VerificationDeadline, VerificationError and VerificationErrorRecursive added issueChargeCard, issueChargeCardCommercial , useChargeCard and useChargeCardCommercial enum.
  • ConfigurationWebhooks:
    • In VerificationDeadline, VerificationError and VerificationErrorRecursive added issueChargeCard, issueChargeCardCommercial , useChargeCard and useChargeCardCommercial enum.
  • LegalEntityManagement:
    • In VerificationDeadline, VerificationError and VerificationErrorRecursive added issueChargeCard, issueChargeCardCommercial , useChargeCard and useChargeCardCommercial enum.
  • ReportWebhooks:
    • In ReportNotificationData added id
  • Update all services by @AdyenAutomationBot in #722

Other Changes 🖇️

Full Changelog: v23.1.0...v23.2.0

Adyen PHP API Library v23.1.0

23 Dec 16:17
1543955
Compare
Choose a tag to compare

What's Changed

New Features 💎

  • BalancePlatform:
    • Added CounterpartyTypesRestriction and SourceAccountTypesRestriction class
    • In TransactionRuleRestrictions added counterpartyTypes and sourceAccountTypes
  • ConfigurationWebhooks:
    • In AccountHolderNotificationRequest, BalanceAccountNotificationRequest, CardOrderNotificationRequest, PaymentNotificationRequest and SweepConfigurationNotificationRequest added timestamp
  • Management:
    • In TerminalConnectivityCellular added iccid2
    • In UpdatePaymentMethodInfo added storeId
  • ManagementWebhooks:
    • Added TerminalAssignmentNotificationRequest and TerminalAssignmentNotificationResponse class
  • ReportWebhooks:
    • In ReportNotificationRequest added timestamp
  • Update all services by @AdyenAutomationBot in #719

Other Changes 🖇️

Full Changelog: v23.0.0...v23.1.0

Adyen PHP API Library v23.0.0

10 Dec 12:04
af262a7
Compare
Choose a tag to compare

What's Changed

Breaking Changes 🛠

  • LegalEntityManagament:
    • In Trust removed setTaxAbsent attribute
  • Management:
    • In JCBInfo removed serviceLevel null check

New Features 💎

  • AcsWebhooks:
    • In AuthenticationNotificationData added timestamp attribute
  • Checkout:
    • In CardDetails and CardDonations added encryptedCard attribute and clicktopay enum
    • In CheckoutPaymentMethod added PseDetails
    • Added PseDetails class
  • DisputeWebhooks:
    • Added AbstractOpenApiSchema class
    • Added Amount class
    • Added BalancePlatformNotificationResponse class
    • Added DisputeEventNotification
    • Added DisputeNotificationRequest class
    • Added JSON class
  • LegalEntityManagament:
    • In PCIQuestionnairesApi added calculatePciStatusOfLegalEntity
    • Added CalculatePciStatusRequest class
    • Added CalculatePciStatusResponse class
    • In LegalEntity added unincorporatedPartnership attribute
    • In LegalEntityAssociation added secondaryPartner and unincorporatedPartnership attributes
    • In LegalEntityInfo and LegalEntityInfoRequiredType added unincorporatedPartnership attribute
    • In OnboardingLinkSettings added enforceLegalAge attribute
    • In PhoneNumber added 'phoneCountryCode' attribute
    • In Trust added description , businessTrust, charitableTrust, discretionaryTrust and familyTrust attributes
    • Added UnincorporatedPartnership class
  • Management:
    • Added DinersInfo class
    • In PaymentMethod and PaymentMethodSetupInfo replaced import from GenericPmWithTdinfo to DinersInfo
    • In PaymentMetdhoResponse added affirm attribute
  • TransactionWebhooks:
    • In TransactionNotificationRequestV4 added timestamp attribute
  • TransferWebhooks:
    • Added Airline class
    • Added Leg class
    • Added MerchantPurchaseData class
    • In TransferData added eventId attribute
    • In TransferEvent added eventsData
    • Added TransferEventEventsDataInner class
    • In TransferNotificationRequest added timestamp
  • Transfers:
    • Added Airline class
    • Added Leg class
    • Added MerchantPurchaseData class
    • In Transfer and TransferInfo added topUp
    • In TransferData added eventId attribute
    • In TransferEvent added eventData attribute
    • Added TransferEventEventsDataInner class
  • Update all services by @AdyenAutomationBot in #714

Other Changes 🖇️

New Contributors

Full Changelog: v22.1.0...v23.0.0