* Solve issue with get request that breaks
* Still convert to post as it is better
* Make sure links keep working
* Add CSRF token to the api call before when submiting a form / link
* Keep backward support alive
* Update comments
Expanded the FormData Object a bit with 2 function
- serializeObject that convert any html form to a object that can be converted with JSON.stringify
- serializeJSON that runs the JSON.stringify for us
Usage:
```
const formData = new FormData(document.getElementById('form'));
formData.serializeJSON()
```
Object.formEnteries only return the last "value" when fieldname[] is used this behavoir is incorrect and this PR restores the behavoir by converting them to a array. After that reformatJSON should take care of it.
* BugFix: Renewal failures do not properly save in order history
Bugfixes found running regression tests of registering a domain (activate new order), followed by various sequences of renewing the domain order. Intentionally insert fatal exceptions in the renewal process demonstrated that you could renew a product and the order would update its length and status despite the underlying renewal action having failed. Additionally, renewal action failure reason was not getting captured and saved to the order history.
This corrects those behaviors to be in parity with what would happen on an activation failure. Also, minor javascript warning fixes when testing this workflow through the Stripe payment adapter.
* BugFix: Renewal failures do not properly save in order history
Bugfixes found running regression tests of registering a domain (activate new order), followed by various sequences of renewing the domain order. Intentionally insert fatal exceptions in the renewal process demonstrated that you could renew a product and the order would update its length and status despite the underlying renewal action having failed. Additionally, renewal action failure reason was not getting captured and saved to the order history.
This corrects those behaviors to be in parity with what would happen on an activation failure. Also, minor javascript warning fixes when testing this workflow through the Stripe payment adapter.
Adds the option to use {{ lang.name }} in place of {{ lang.title}} to return only the country name without the associated ISO code.
i.e.
{{ lang.title }} = Deutsch (de_DE)
{{ lang.name }} = Deutsch