Throw a decline exception instead of an invalid argument exception when the PO number / upload are empty

Created on 11 March 2024, 9 months ago
Updated 30 April 2024, 7 months ago

Right now, it appears the purchase order payment method add form wants to catch exceptions thrown by the gateway's createPaymentMethod() function, but the exception types don't match. If you don't add a PO number or a file upload, you get a white screen and the invalid argument exception is logged to watchdog.

If I'm reading the code right, we just need to change this to a decline exception for the form to pick up on it properly and the page to rebuild.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rszrama

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