Impossible to upload a Purchase order file only

Created on 8 August 2024, 4 months ago
Updated 25 August 2024, 3 months ago

Problem/Motivation

Is it currently impossible to upload a Purchase order number file only. When uploading just a file, we're currently getting the following error:

We encountered an error processing your payment method. Please verify your details and try again

I'm wondering whether this was done on purpose or if this is a mistake in the code.

Additionally, there is no validateConfigurationForm(), and as a consequence, the createPaymentMethod() method is invoked when both of those fields are empty and we end up with an "ugly" generic error message that highlights the billing profile as well (See the screenshot below):

We should instead implement our own validation that returns an error and highlights both the number & the file field if both aren't set, like the following:

No other fields are higlighted and it's possible to set either of those fields, patch to follow.

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇮🇱Israel jsacksick

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024