Open ashleyfae opened 3 years ago
Somewhat related, but the 'state' field in the checkout JS is somewhat hard coded and near impossible to actually make unrequired due to this. It would be good if this was resolved too. A simpler checkout specifically aimed at digital stores would be better too, which only contains country, zip/postal code, and email/name fields.
That's a good point. Not sure if it will be covered in this issue specifically, but definitely related: I want to fundamentally redesign and simplify the entire checkout form. This issue is more for gateway processing logic and error handling, but overall I think our form is quite janky and messy and could do with a lot of polish and removal of unnecessary fields.
Some more thoughts:
Enhancement Request
Explain your enhancement (please be detailed)
Our checkout and payment processing flow is not in line with current payment processing standards. It was built when payment processing was a lot simpler:
These days, gateway logic is multi-step and has a lot more JavaScript.
Things on my dream list:
edd_process_purchase_form()
. Right now it's one big massive function. It would be better served as at least one class -- maybe more. In particular the validation logic should be separate from the actual processing logic.Justification or use case
Keeping our code DRY; less repetition and "reinventing x process" in individual gateways.
Related issues:
https://github.com/easydigitaldownloads/easy-digital-downloads/issues/7366 https://github.com/easydigitaldownloads/easy-digital-downloads/issues/7188 https://github.com/easydigitaldownloads/easy-digital-downloads/issues/4220 https://github.com/easydigitaldownloads/easy-digital-downloads/issues/2222