Mollie API 4.3.0.0
New features:
- Add support for the new Get PaymentLink Payments endpoint in the PaymentLink API client.
- Add support for the
BillingAddress
property onPaymentRequest
. - Add support for the
ShippingAddress
property onPaymentRequest
.
Technical improvements:
I've received feedback regarding the usage of the required
parameters I've added in version 4 of the library. In general, the reception has been positive. However, I've also received feedback from @martijnmelchers and @JoKeKt that it makes the library difficult to use when creating payment method specific PaymentRequest
objects. A common use-case is to create payment method specific PaymentRequest
objects using a switch statement on a payment method. However, since certain properties are now required, it was necessery to repeat these properties in the switch statement, resulting in a lot of duplicate code.
I've implemented a solution in the form of a constructor overload on all payment specific PaymentRequest
objects that you can use to avoid this code duplication. An example can be found here