mollie / magento2

Mollie Payments for Magento 2
https://www.mollie.com
Other
101 stars 52 forks source link

Street and Housenumber with more than 100 characters blocks placing order with mollie payment method #589

Closed t-heuser closed 1 year ago

t-heuser commented 1 year ago

Describe the bug If you create a cart and set a street and housenumber with more than 100 characters (rare case, but happened in our online shop recently) it's not possible to create an order, the following error occurs: Error executing API call (422: Unprocessable Entity): The 'streetAndNumber' field should not be longer than 100 characters. Field: billingAddress.streetAndNumber. Documentation: https://docs.mollie.com/reference/v2/payments-api/create-payment.

Used versions

To Reproduce Steps to reproduce the behavior:

  1. Create a cart with atleast 1 item
  2. Set a billing address with more than 100 characters
  3. Select a mollie payment method
  4. Place the order

Expected behavior The order should be placed regardless of the length of the street field. If the limitation of 100 characters for the street of the mollie API cannot be removed, there should be a Plugin for the address validation which throws an error when trying to set the street field with more than 100 characters so that the error doesn't occur when trying to place the order.

Actual behavior The order cannot be placed.

Frank-Magmodules commented 1 year ago

Hi @oneserv-heuser ,

We are happy to share that we've just released the new 2.20.0 version where we have fixed this issue. Thank you for opening this request and for the detailed steps to reproduce. 

We are closing this issue now but please feel free to reopen the issue if you need any help on this.