Ensure amendment error messages are JSON serialized
Problem
Currently we're passing the IronBank error message to the frontend and rendering it on failure.
There are quite a number of purchase routes that need to be covered here.
Steps to reproduce
- Navigate to Buy more CI minutes for an active subscription (bronze for example)
- Try to purchase with card that will decline:
4000 0000 0000 0002
note that this needs to be selected from the dropdown; adding a new credit card that will decline will not cause this bug - Note the error message
Proposal
Provide error message so that users know what's going on.
Result
Next steps (if any)
How will we measure success?
Customers know why they cannot continue with their purchase and able to proceed to corrective action (change/update credit card information) themselves without contacting support.
Edited by Ragnar Hardarson