PaymentProcessor.pay should bubble up the error returned from the processor
PaymentProcessor.pay
returns the same message - Payment Failed
- no matter the cause. This makes it impossible to tell the user why their credit card was declined.
Steps to Replicate
- Install the dummy processor.
- Submit
PaymentProcessor.pay
with an expiration date in 2021 or earlier. - Alternatively, create a Webform, install WFC, and submit your payment that way.
Expected Result
Invalid expiry date
Actual Result
Payment failed
I don't know if there's a good reason for this or not. @KarinG has expressed interest to me in bubbling up the message from the payment processor.