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

Created on 11 March 2024, 4 months ago
Updated 30 April 2024, about 2 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.69.0 2024