Open berkes opened 12 years ago
"I realize that this is a lot of work, but the core checkoutcontroller is rather inflexible, and violates REST already."
I think you've kind of summed up why it wasn't our (mine?) concern when developing this extension ;)
Would you prefer if I change the Payment.new into a Payment.find || Payment.new?
No idea. I plan to set-up a decent test suite for this extension (hopefully this week) before further modifications, should make work and decisions a lot easier in the future :)
In the controller_decorator, the
GET edit
is overridden. In that override we create and attach a new payment on each call:If you go back in the statemachine, or refresh that page, new payments will be added to the order. This violates the RESTfull "rules" where a get should never have a side-effect.
Should this paypal extension not simply insert a step in the checkout Order statemachine and act on that, instead of this?
I realize that this is a lot of work, but the core checkoutcontroller is rather inflexible, and violates REST already.