This release backports the voucher category fix from v4.1.0 to the v3 line and includes the fixes and additions merged since v3.15.0. PHP 7.4 remains supported.
Fixed
- Voucher payments: preserve
categoryandcategoriesonOrderLineand in its factory. Usecategoriesfor payment and payment-link lines, andcategoryfor order lines. This is the PHP 7.4-compatible backport of #947. - Sales invoices: hydrate collections returned under
_embedded.invoices, retaining registry names and legacy response aliases (#943). - HTTP failures: classify network and request errors consistently with Guzzle 7 and 8. Preserve original exceptions, avoid retrying malformed requests, and do not treat incomplete transfers as completed HTTP responses (#944).
- Checkout Sessions: align request and resource models with the API specification (#931).
Added
- Checkout Session
requiredCustomerDetailssupport in request objects and factories, plusrequiredCustomerDetails,profileId,createdAt,expiredAt, andcompletedAton session resources. Customer-detail collection is a private-beta API feature (#931). - Guzzle 8 compatibility (#944).
Deprecated
- Checkout Session
cancelUrlandSession::getRedirectUrl()are documented as deprecated: the API does not accept a cancel URL and returns only aselflink. UseclientAccessTokenwith Mollie's client-side components (#931).
Documentation and maintenance
- Clarify that Google Pay payments use
PaymentMethod::CREDITCARD, withgooglePayPaymentTokenfor direct integration.PaymentMethod::GOOGLEPAYremains a wallet identifier for the Methods API, not a valid Create payment method (#933). - Keep legacy reflection access in tests only on PHP versions that need it (#946).
Full changelog: v3.15.0...v3.16.0