packagist mollie/mollie-api-php v3.16.0

4 hours ago

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 category and categories on OrderLine and in its factory. Use categories for payment and payment-link lines, and category for 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 requiredCustomerDetails support in request objects and factories, plus requiredCustomerDetails, profileId, createdAt, expiredAt, and completedAt on session resources. Customer-detail collection is a private-beta API feature (#931).
  • Guzzle 8 compatibility (#944).

Deprecated

  • Checkout Session cancelUrl and Session::getRedirectUrl() are documented as deprecated: the API does not accept a cancel URL and returns only a self link. Use clientAccessToken with Mollie's client-side components (#931).

Documentation and maintenance

  • Clarify that Google Pay payments use PaymentMethod::CREDITCARD, with googlePayPaymentToken for direct integration. PaymentMethod::GOOGLEPAY remains 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

Don't miss a new mollie-api-php release

NewReleases is sending notifications on new releases.