From @bojanz on slack:
The payment method add/edit form is broken on the user pages for 2.14, for any onsite gateway that uses jquery's form.submit, because that doesn't set the triggering element name.
see the 3-line fix in https://www.drupal.org/project/commerce_authnet/issues/3069640
This issue is just a reminder to check if the problem exists, and I added the meta issue in related issues to track all onsite payment gateways.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3078425-3.patch | 3.51 KB | mglaman |
Comments
Comment #2
mglamanAddressbook also breaks Square because we have to pass a postal code. This isn't available when re-using addresses.
Comment #3
mglamanHere is an initial patch, which fixes the form. However, it feels pretty rough with how we fetch the postal code.
Comment #5
mglamanComment #7
luongosb commentedThe typeof check for the customerPostalCode is returning as a string for me and the error for "Postal Code is not valid" is triggered for users who are not using a billing profile. Would it be better to check if the field is empty instead of typeof so it can fall through to using the value from the postal code field?
if (drupalSettings.commerceSquare.customerPostalCode.length > 0)