Version 6.3.0
Added
- Add typed response support for Online Payments v3.1 under the new
Paymentorder\V3namespace - Add
Client::setApiVersion()andgetApiVersion(); when an API version is set, theContent-Typeheader becomesapplication/json;version=<version>(default behaviour unchanged) - Add v3.1 request classes
Paymentorder\V3\Request\{Purchase, Verify, UnscheduledPurchase, UpdateOrder, GetPaymentorder, TransactionCapture, TransactionCancel, TransactionReversal} - Add top-level v3.1 response DTO
Paymentorder\V3\Resource\PaymentOrder(factory-resolved from thepaymentOrderJSON key) - Add post-purchase response wrapper
Paymentorder\V3\Resource\Response\PaymentorderResponsewithgetPaymentOrder(),getOperations(), and agetLatestFinancialTransaction()convenience helper - Add typed
Paidresource (withDetailssub-object) andFinancialTransactionsresource (withFinancialTransactionitems in aFinancialTransactionsListCollection) - Add link-only sub-resource DTOs:
OrderItems,Urls,PayeeInfo,Payer,History,Failed,Aborted,Cancelled,Reversed,FailedAttempts,PostPurchaseFailedAttempts,Metadata, all sharingLinkResourceTrait - Add
Paymentorder\V3\Resource\Response\CallbackPayloadfor typed parsing of v3.1 webhook bodies - Add the field
countryCodeto the classSwedbankPay\Api\Service\Paymentorder\Resource\PaymentorderPayerwith methodsPaymentorderPayer::setCountryCode()and::getCountryCode()to allow passing the customer's country code to the API.
Fixed
ResourceFactory::findFileByNamespace()now resolves resource classes via the active autoloader (class_exists) instead of a path-basedfile_existscheck, fixing resolution when the SDK is consumed through tooling that prefixes namespaces (e.g. PHP-Scoper) without rewriting the on-disk directory layout- Fix an issue where
SwedbankPay\Api\Service\Paymentorder\Resource\PaymentorderPayer::getLastName()was incorrectly returning the first name.